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
>>
>> On Thu, May 23, 2024 at 6:11 PM Chris Eidem <[email protected]> wrote:
>>
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/a6d8be5f-39ae-44f6-8e89-dadb5b745d3bn%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/weewx-user/a6d8be5f-39ae-44f6-8e89-dadb5b745d3bn%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/CAPq0zEDRfnEahC5aUd2e%3DNRTQ9x%2B3e3a_xrM6V1mcwgFjaMV9g%40mail.gmail.com
>>
>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEDRfnEahC5aUd2e%3DNRTQ9x%2B3e3a_xrM6V1mcwgFjaMV9g%40mail.gmail.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/13715a1b-534a-4a86-9673-8c5328f3b130n%40googlegroups.com.