Thanks for this, I can't FTP at the moment so turning to rsync. I have 
everything set up (instead of using www-data I am using the same user I use 
for FTP which has full access to /var/www/html/. I have set up the keys and 
can do a passwordless login from root on the local machine to the web user 
on the remote machine. When I run the command:

sudo rsync -arP /var/www/html/weewx/ 
user@my-remote-server:/var/www/html/weather

The files are correctly uploaded, however when Weewx preforms rsync I get:

Nov 23 12:22:15 weather weewx[1650762] ERROR weeutil.rsyncupload: rsync 
reported errors. Original command: ['rsync', '--archive', '--stats', '-e', 
'ssh', '/var/www/html/weewx/', 
'user@my-remote-server:/var/www/html/weather']
Nov 23 12:22:15 weather weewx[1650762] ERROR weeutil.rsyncupload: **** 
kex_exchange_identification: Connection closed by remote host
Nov 23 12:22:15 weather weewx[1650762] ERROR weeutil.rsyncupload: **** 
Connection closed by my-remote-server port 22
Nov 23 12:22:15 weather weewx[1650762] ERROR weeutil.rsyncupload: **** 
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
Nov 23 12:22:15 weather weewx[1650762] ERROR weeutil.rsyncupload: **** 
rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.3]

Any ideas? The fact it works from the shell points to something going on 
with Weewx that I'm not seeing.

Thanks,

Rory
On Thursday, December 22, 2022 at 2:34:32 AM UTC scratchypants wrote:

> Thanks for this. One tidbit - my hosting service does not listen on the 
> standard port, 22. This gave me fits, but I logged a support call and got 
> the port number. Edited /etc/ssh/ssh_config, removed the '#' from the 'Port 
> 22' line and changed the number to match.
>
> On Saturday, February 19, 2022 at 5:57:01 PM UTC-5 [email protected] wrote:
>
>>
>> I recently setup rsync with weewx. This took a couple of hours, and help 
>> from my friends, so I wrote out all the steps I used to make it work.
>> This is not the only way to make rsync work, but a single set of 
>> instructions.
>> Liz
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/285ef38d-11f5-4576-9493-1f39629a779an%40googlegroups.com.

Reply via email to