Hi Gary,
Thanks.
Yes I've confirmed rsync works on that port on the computer and from the 
account needed as well as other computers. I have a cronjob using it as 
well.
Here's the Debug with the command. It doesn't seem to mention any port so 
is it ignoring the config for some reason?
I wonder if this is an issue with the Weather34 skin as it appears to be 
the weather34 specific command that it is failing on. (Note I removed the 
IP address of my server from the command.

"Jan  1 16:58:03 weewx-pi weewx[17961] DEBUG weeutil.rsyncupload: 
rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e ssh', 
'/tmp/weather34/serverdata/', 
'[email protected]:/home/user/public_html/weather34/serverdata']] 

Jan  1 16:58:03 weewx-pi weewx[17961] ERROR weeutil.rsyncupload: [['rsync', 
'--archive', '--stats', '-e ssh', '/tmp/weather34/serverdata/', 
'[email protected]/home/user/public_html/weather34/serverdata']] 
reported errors: ssh: connect to host changed.ip.for.privacy port 22: 
Connection refused. rsync: connection unexpectedly closed (0 bytes received 
so far) [sender]. rsync error: unexplained error (code 255) at io.c(235) 
[sender=3.1.3]

On Saturday, January 1, 2022 at 4:20:01 PM UTC-8 gjr80 wrote:

> Hi,
>
> As far as WeeWX is concerned setting the port config option should be all 
> that's needed. Something like (untested):
>
> [StdReport]
>     ....
>     [[RSYNC]]
>         ....
>         port = 27
>
> If that is not working I suggest you edit weewx.conf and set debug = 1. 
> Save and restart WeeWX. Have a look at the log, the rsync command line 
> being used by WeeWX should appear in the log.
>
> If the log shows that port 27 is being used by WeeWX then I would be 
> looking elsewhere. Can you rsync with port 27 from the command line? From 
> another machine? Are there any firewalls blocking port 27?
>
> Gary
> On Sunday, 2 January 2022 at 09:43:48 UTC+10 [email protected] wrote:
>
>> Hello all,
>>
>> I just switched web hosts and they use port 27 for their SSH/RSYNC 
>> connections.  I dutifully entered port = 27 into my RSYNC section 
>> (previously there was no port line specified) put the log is reporting that 
>> it is trying on port 22.
>>
>> Thoughts?
>>
>> Cheers, and Happy New Year,
>> Chris
>>
>

-- 
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/1d922b4e-66d1-4a3e-a20c-1aed297fea1an%40googlegroups.com.

Reply via email to