I think I've determined the issue. The rsync command being generated is missing the quotes: I am working with the weather34 folks and they added some debug in the code so we could see the port being issued, which it does but when I issue the command at the command line I get: sudo rsync --archive --stats -e ssh -p 27 /var/www/html/weewx/ [email protected]:/home/user/public_html
It is incorrect, the port needs to be in quotes or it ignores -e and uses 22. The correct command should be: sudo rsync --archive --stats -e 'ssh -p 27' /var/www/html/weewx/ [email protected]:/home/user/public_html On Saturday, January 1, 2022 at 5:25:27 PM UTC-8 [email protected] wrote: > I just tried setting port = 27 and it worked. > > Either you are using a different weewx.conf than you think you are using, > or it was not set correctly in the [[RSYNC]] section > > It would really help if you posted the full log. It will tell you which > copy of weewx.conf it is using. > > On Sat, Jan 1, 2022 at 5:10 PM Chris Alemany <[email protected]> wrote: > >> 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 >> >> <https://groups.google.com/d/msgid/weewx-user/1d922b4e-66d1-4a3e-a20c-1aed297fea1an%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/0bcdf64e-4777-4e91-b0f4-1b6710d92361n%40googlegroups.com.
