WeeWX version 4.5.1 - debian install
MQTT
GW1000 API
also running neowx-material skin
--
rsync works perfectly on the command line but it does not work in weewx.
The web host uses port 2222 for SSH.
I've tried all types of things with ~.ssh/config but whether or not I even use the config file or not, I get the exact same error:
2022-01-12 2:39 P.M. weewx.service weewx[19782] ERROR weeutil.rsyncupload: [['rsync', '--archive', '--stats', '-e ssh -p 2222', '/var/www/html/weewx/belchertown/', 'remote_user@mydomainca:public_html/glenns/belchertown']] reported errors: Host key verification failed.. rsync: connection unexpectedly closed (0 bytes received so far) [sender]. rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]
I did see Chri's's Jan 2 thread about his port problem for rsync but in my case adding port = 2222 in the RSYNC section appears to work as I see -p 2222 in the error message above.
note: if you add a "/" slash in front of public_html for the target directory on the remote host, rsync does not work on the command line.
note: I don't "git" git - could not see a way to download Tom's patched rsyncupload.py - so i just did a cut and paste of his code with notepad++ and duplicated the permissions. Hopefully it worked..at least I get the same error with the patched file! I have attached a copy of the patched file..just in case i didn't get the right one. I also have attached a debug=1 file along with weewx.conf.
Any help with this rsync problem would be greatly appreciated!