I thought that was the problem also, but I believe I have it correct with:

/etc/passwd:
weewx:x:988:984::/var/lib/weewx:/sbin/nologin

[root@weewx weewx]# sudo -u weewx /usr/bin/bash
bash-4.4$ pwd
/var/www/html/weewx
bash-4.4$ cd
bash-4.4$ pwd
/var/lib/weewx
bash-4.4$ ls -la
total 156828
drwxrwsr-x.  4 weewx weewx      131 May 24 02:00 .
drwxr-xr-x. 45 root  root      4096 Feb  3 21:19 ..
-rw-------   1 weewx weewx     2468 May 23 20:52 .bash_history
-rw-rw-r--   1 weewx weewx  2850816 May 23 23:05 forecast.sdb
-rw-------   1 weewx weewx       43 Apr  6 09:47 .lesshst
drwxr-sr-x   2 weewx weewx       69 Apr  5 19:06 .ssh
drwxrwsr-x   8 weewx weewx      139 Apr  6 20:40 weewx-data
-rw-rw-r--.  1 weewx weewx 83189760 May 24 02:00 weewx.sdb
-rw-r--r--   1 weewx weewx 74530816 Apr  6 14:56 weewx.sdb_new
bash-4.4$ ls -la .ssh/
total 16
drwxr-sr-x  2 weewx weewx  69 Apr  5 19:06 .
drwxrwsr-x. 4 weewx weewx 131 May 24 02:00 ..
-rw-r--r--  1 weewx weewx  99 Mar 18 20:41 config
-rw-r--r--  1 weewx weewx 190 Apr  5 19:06 known_hosts
-rwx------  1 weewx weewx 634 Mar 18 20:39 weewx
-rw-r--r--  1 weewx weewx 231 Mar 18 20:39 weewx.pub

If there's something I'm missing, I'm all ears...

Thanks,
 - chris
On Friday, May 24, 2024 at 7:02:26 AM UTC-5 geoff...@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
>>>>
>>>> On Thu, May 23, 2024 at 6:11 PM Chris Eidem <cei...@gmail.com> 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 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
>>>>>  
>>>>> <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 weewx-user+...@googlegroups.com.
>>>>
>>>> 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/44182d07-c44e-47c1-ba9a-6b826fa75a10n%40googlegroups.com.

Reply via email to