Groups
Groups

Upload via rsync fails

87 views
Skip to first unread message

Jens-Jørgen Kjærgaard

unread,
Feb 25, 2023, 1:29:48 AM2/25/23
to weewx-user

I have given rsync a try, suggested by tk as a much better option than ftp.
However, I get

Feb 21 17:31:22 raspberrypi weewx[3741] DEBUG weewx.reportengine: Running report 'RSYNC'
Feb 21 17:31:22 raspberrypi weewx[3741] DEBUG weewx.reportengine: Found configuration file /home/jjk/weewx/skins/Rsync/skin.conf for report 'RSYNC'
Feb 21 17:31:22 raspberrypi weewx[3741] DEBUG weewx.reportengine: Cannot read localization file /home/jjk/weewx/skins/Rsync/lang/en.conf for report 'RSYNC': Config file not found: "/home/jjk/weewx/skins/Rsync/lang/en.conf".
Feb 21 17:31:22 raspberrypi weewx[3741] DEBUG weewx.reportengine: **** Using defaults instead.
Feb 21 17:31:22 raspberrypi weewx[3741] DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e', 'ssh', '/home/jjk/weewx/public_html/', 'jens...@linux83.unoeuro.com:/public_html/hytte']]
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: rsync reported errors. Original command: ['rsync', '--archive', '--stats', '-e', 'ssh', '/home/jjk/weewx/public_html/', 'jens...@linux83.unoeuro.com:/public_html/hytte']
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: **** Permission denied, please try again.
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: **** Permission denied, please try again.
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: **** jens...@linux83.unoeuro.com: Permission denied (password).
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: **** rsync: connection unexpectedly closed (0 bytes received so far) [sender]
Feb 21 17:31:22 raspberrypi weewx[3741] ERROR weeutil.rsyncupload: **** rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]
Feb 21 17:31:23 raspberrypi weewx[3741] DEBUG weewx.restx: StationRegistry: Failed upload attempt 3: b'FAIL: Server is undergoing maintenance\n'
Feb 21 17:31:23 raspberrypi weewx[3741] ERROR weewx.restx: StationRegistry: Failed to publish record 2023-02-21 17:30:00 CET (1676997000): Failed upload after 3 tries

Apparently, something is wrong with my permissions - I have the private and public keys in the right place for passwordless ssh - but nevertheless get: Permission denied (password).
Svar alle
Svar forfatteren
Videresen

vince

unread,
Feb 25, 2023, 2:11:17 AM2/25/23
to weewx-user
The keys have to be set up for the user weewx is configured to run as.  Typically this is 'root' but you have your weewx installed in an unusual place so I'm not certain what exactly your configuration is and if you are don't something else that is unusual.

Jens-Jørgen Kjærgaard

unread,
Feb 25, 2023, 8:55:09 AM2/25/23
to weewx...@googlegroups.com
Though I have my weewx installed in home/jjk/weewx, I am still root, and I can't see that has anything to do with using rsync?

Jens-Jørgen Kjærgaard
Tuenvej 818
9870 Sindal


Den lør. 25. feb. 2023 kl. 08.11 skrev vince <vince...@gmail.com>:
The keys have to be set up for the user weewx is configured to run as.  Typically this is 'root' but you have your weewx installed in an unusual place so I'm not certain what exactly your configuration is and if you are don't something else that is unusual.

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/boJQZ11VJok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/bc12bbe1-050f-4cff-90be-ec509f7e6f81n%40googlegroups.com.

vince

unread,
Feb 25, 2023, 12:19:43 PM2/25/23
to weewx-user
Your questions never provide a full description of your configuration, so we need to ask extra questions.

In your case here, the 'jens...@linux83.unoeuro.com:/public_html/hytte' path STILL looks incorrect.
You are likely getting a permission denied from trying to write to a directory /public_html that is not in your remote home directory

We provided suggestions previously for what to try.

(and please try to not open a new thread for every followup question)


Reply all
Reply to author
Forward
0 new messages
Search
Clear search
Close search
Google apps
Main menu