Just did a little more digging. The user is now weewx, with its home directory as /var/lib/weex. You need to put the SSH keys for your rsync server in a subdirectory .ssh under that.
Took me a while to find that!
Kind regards Geoff 17 Westcroft Road Holsworthy, EX22 6BY Phone: +44 (0)1409 254330 Mobile: +44 (0)7976 285950 Web: http://www.cusick.org.uk On 24 May 2024, at 13:08, geoff...@gmail.com <geoffcus...@gmail.com> wrote:
I think I had this problem when I updated to v5. IIRC, the weewx user has changed, and I needed to put the SSH keys into the home directory for that user.
HTH Geoff Cusick On Friday 24 May 2024 at 12:56:10 UTC+1 Chris Eidem wrote:
I failed to include it in my snippet. Here is the entire, non-edited RSYNC section in my weewx.conf:
[[RSYNC]] # rsync'ing to a webserver is treated as just another report skin = Rsync
# If you wish to use rsync, you must configure passwordless ssh using # public/private key authentication from the user account that weewx # runs to the user account on the remote machine where the files # will be copied. # # If you wish to use rsync, set "enable" to "true", then # fill out server, user, and path. # The server should appear in your .ssh/config file. # The user is the username used in the identity file. # The path is the destination directory, such as /var/www/html/weather. # Be sure that the user has write permissions on the destination! enable = true server = www user = weewx path = /var/www/htdocs/wx
# To upload files from something other than what HTML_ROOT is set # to above, specify a different HTML_ROOT here. #HTML_ROOT = /var/www/html/weewx
# Rsync can be configured to remove files from the remote server if # they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you # make a mistake in the remote path, you could could unintentionally # cause unrelated files to be deleted. Set to 1 to enable remote file # deletion, zero to allow files to accumulate remotely. delete = 0
####
On Friday, May 24, 2024 at 2:00:07 AM UTC-5 vince wrote:
Unless I missed it, I see nothing rsync related in your logfile snippet.
For starters, I think you need "skin = Rsync" in your [[RSYNC]] section. If you edited weewx.conf be sure to restart weewx afterward so it takes effect.
Also add "log_failure = true" and "log_success = true" to your RSYNC section at least temporarily to have it tell you what it's doing (or not). On Thursday, May 23, 2024 at 7:08:24 PM UTC-7 Chris Eidem wrote:
I'm assuming the
[[RSYNC]] section behaves like ssh normally would - the "server"
line in the RSYNC section is contacting the host "www" as
listed in the .ssh/config below it. I can connect to the remote
server with a 'sudo -u weewx /usr/bin/bash -i' and then
'ssh www'
On 5/23/24 20:43, Tom Keffer wrote:
Is the
option "server = www" correct? Or, did you just use a
placeholder for your post?
Assuming
it's actually set to the true host...
I know
you did not see anything in the log, but it would still be
useful to see it. Set debug=1, restart weewxd, let it run
through the first reporting cycle, then post the log.
-tk
I'm
not getting reports sent to my web site on another machine.
rsync was working before upgrading to weewx 5, but now I can't
seem to figure out why nothing is getting sent. I have the
public and private keys along with the config file in the new
home dir (/var/lib/weewx/.ssh) and if I do a sudo -u weewx
/usr/bin/bash -i to get a shell, I can connect without a
password and get a remote shell on the web server.
[[RSYNC]] section:
enable = true
server = www
user = weewx
path = /var/www/htdocs/wx
/var/lib/weewx/.ssh/config:
Host www
Hostname wx.example.com
User weewx
IdentityFile ~/.ssh/weewx
StrictHostKeyChecking no
How would I go about troubleshooting this? I don't see
anything in the journal stating any connection issues and
again, I can connect to the remote service passwordlessly
(is that a word?).
Thank you for any hints,
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a6d8be5f-39ae-44f6-8e89-dadb5b745d3bn%40googlegroups.com.
--
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 weewx-user+...@googlegroups.com.
--
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/7HXsEOlaaIU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/63f9c413-198f-4089-b7ae-16e257998752n%40googlegroups.com.
--
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/B7F41939-12A1-4FD8-BF9A-777291BB5A2C%40gmail.com.
|