Hey all,

I installed (DEB package install) and configured weewx on RPi last week and 
after enjoying it on my LAN, I am now trying to set-up rsync to send it to 
a website.

I called myself following the rsync guide 
at http://www.weewx.com/docs/usersguide.htm#config_RSYNC and setting up 
passwordless SSH using the link provided there 
(https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/)
 
but I cannot get it to successfully sync when wee_reports runs 
automatically. In syslog I get the following:

May 28 07:41:31 raspberrypi weewx[698] ERROR weeutil.rsyncupload: 
> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/', 
> '[email protected]:/home4/USER/public_html']] reported errors: Permission 
> denied, please try again.. Received disconnect from XX.XX.XX.XX port 22:2: 
> Too many authentication failures for USER. Disconnected from XX.XX.XX.XX 
> port 22. rsync: connection unexpectedly closed (0 bytes received so far) 
> [sender]. rsync error: unexplained error (code 255) at io.c(235) 
> [sender=3.1.3]
>

My weewx.conf is as follows:

   [[RSYNC]]


>         skin = Rsync

        enable = true

        server = mydomain.com

        user = USER

        path = /home4/USER/public_html/

        HTML_ROOT = /var/www/html/

        delete = 0


Strangely, whenever I run the following commands manually, rsync works and 
my site updates:
 

> sudo wee_reports 

rsync --archive -e ssh /var/www/html/ 
> [email protected]:/home4/USER/public_html/ 

sudo rsync --archive -e ssh /var/www/html/ 
> [email protected]:/home4/USER/public_html/ 
>
 
sudo wee_reports simply generates

May 28 11:15:39 raspberrypi wee_reports[8119] INFO weeutil.rsyncupload: 
> rsync'd 81 files (1,174,239 bytes) in 5.17 seconds
>

Also, I haven't made any changes to the default configuration of weewx in 
terms of the user account it runs with.

I appreciate any advice or troubleshooting steps that you all can point me 
towards.

Thank you,
Trey 



 


-- 
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/3e564e92-ae8e-43fe-9b71-cd38915d463f%40googlegroups.com.

Reply via email to