User=weewx
home directory for weewx is /etc/weewx 

On Friday, July 12, 2024 at 3:19:44 PM UTC+1 Tom Keffer wrote:

> 1. When you say "If I then enter ssh [email protected] it opens 
> up..." What user were you running as? Was it the same as the user weewxd is 
> running as?
>
> 2. You can determine the user weewxd is running as with the command:
>
> *systemctl show -p User weewx*
>
> 3. What is the home directory for that user?
>
>
>
>
> On Fri, Jul 12, 2024 at 4:20 AM [email protected] <[email protected]> 
> wrote:
>
>> Hi Tom
>> Im in /etc/weewx     Weewx Home directory
>> With ssh-keygen is entered it comes up with a file to save it in I put in 
>> /etc/weewx/.ssh/id_rsa
>> With nothing entered for either catchphase I then use ssh-copy-id with my 
>> server info
>> It then asks for the servers password which its happy with.
>> If I then enter ssh [email protected] it opens up in the server 
>> which is what I expect
>> Using rsync -a from cd /etc/weewx it works OK
>> I do have a raspi with weewx 4.10.2 which is working perfectly.
>> What am I doing wrong ??
>>
>>
>> On Thursday, July 11, 2024 at 2:32:28 PM UTC+1 Tom Keffer wrote:
>>
>>> From your log, you have two instances of weewxd running, one labeled 
>>> 'weewxd', the other 'weewxd-sunhours'. Both are running as user 'weewx'.
>>>
>>> So, the credentials should be put in ~weewx/.ssh. They should contain 
>>> credentials for user LushEr21 on host 192.168.1.157.
>>>
>>>
>>> On Thu, Jul 11, 2024 at 5:44 AM [email protected] <
>>> [email protected]> wrote:
>>>
>>>> Thanks Glenn and well spotted. 
>>>> But still fails.
>>>> It now has an extra line in the logs  " Host key verification failed"
>>>> Now the ssh keys have been added to my normal logon phil@raspberrypi, 
>>>> which is where weewx was loaded from, and from the prompt  rsync -a 
>>>> /etc/weewx/webpages/testcenter/ 
>>>> [email protected]:/volume1/web/SheringhamWeatherCenter works ok 
>>>> without 
>>>> password
>>>>
>>>> Have with sudo -i also added the ssh keygen at root@raspberrypi and 
>>>> rsync also works
>>>> in groups weewx and phil are both there so where do I load the ssh  
>>>> keygen ????
>>>> weewx was restarted when I changed the weewx.conf file.
>>>>
>>>> On Thursday, July 11, 2024 at 11:58:45 AM UTC+1 Glenn McKechnie wrote:
>>>>
>>>>> I'll try yet again. The SPAM folder must be working overtime?
>>>>>
>>>>> It looks very much like a typo. 
>>>>> In your command line it's 192.168. 
>>>>> In weewx.conf you have 192.68
>>>>>
>>>>> LushEr...(at)192.168.1.157
>>>>> vs
>>>>> server = 192.68.1.157
>>>>>
>>>>>
>>>>> On Thursday 11 July 2024 at 8:17:53 pm UTC+10 [email protected] 
>>>>> wrote:
>>>>>
>>>>>> Thanks Tom
>>>>>> Ive confused myself so any help is appreciated.
>>>>>> I loaded weewx via Debian on a new build if thats any help while 
>>>>>> logged on as phil@raspberrypi 
>>>>>> with groups at the prompt phil and weewx are both there.
>>>>>> txt file has 2 cycles in
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thursday, July 11, 2024 at 12:44:42 AM UTC+1 Tom Keffer wrote:
>>>>>>
>>>>>>> You didn't show enough of the log for a definitive answer, but most 
>>>>>>> likely the user under which weewxd is running does not have the proper 
>>>>>>> credentials. 
>>>>>>>
>>>>>>> You tested as user "phil". Is this the user weewxd is running as? 
>>>>>>> Or, is it running as weewx (the default for V5.x), root, LushEr21, or 
>>>>>>> something else?
>>>>>>>
>>>>>>> See the wiki *rsync troubleshooting 
>>>>>>> <https://github.com/weewx/weewx/wiki/rsync-troubleshooting>*.
>>>>>>>
>>>>>>> On Wed, Jul 10, 2024 at 7:57 AM [email protected] <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Ive built a new build on raspi 5 with weewx 5.02 and it all works 
>>>>>>>> ok apart from rsync to my local server . 
>>>>>>>> Ive set up ssh-keygen from the home directory and to the root withh 
>>>>>>>> sudo -i
>>>>>>>>
>>>>>>>> rsync works in a .sh file via crontab
>>>>>>>>
>>>>>>>> Ive tried the following 
>>>>>>>>
>>>>>>>> phil@raspberrypi:~ $ rsync -a /etc/weewx/webpages/testcenter/ 
>>>>>>>> [email protected]:/volume1/web/SheringhamWeatherCenter/
>>>>>>>> phil@raspberrypi:~ $ sudo -i
>>>>>>>> root@raspberrypi:~# rsync -a /etc/weewx/webpages/testcenter/ 
>>>>>>>> [email protected]:/volume1/web/SheringhamWeatherCenter/
>>>>>>>> root@raspberrypi:~#
>>>>>>>> and both work ok
>>>>>>>>
>>>>>>>> Now with the following in the rsync section of weewx.conf
>>>>>>>>     [[RSYNC]]
>>>>>>>>         skin = Rsync
>>>>>>>>         enable = true
>>>>>>>> HTML_ROOT = /etc/weewx/webpages/testcenter/
>>>>>>>>         server = 192.68.1.157
>>>>>>>>         user = LushEr21
>>>>>>>>         path = /volume1/web/SheringhamWeatherCenter/
>>>>>>>>
>>>>>>>> i get the following lines of erroes in the log  
>>>>>>>>
>>>>>>>> 2024-07-10T15:32:32.056993+01:00 raspberrypi weewxd[4788]: ERROR 
>>>>>>>> weeutil.rsyncupload: rsync reported errors. Original command: 
>>>>>>>> ['rsync', 
>>>>>>>> '--archive', '--stats', '-e', 'ssh', 
>>>>>>>> '/etc/weewx/webpages/testcenter/', 
>>>>>>>> '[email protected]:/volume1/web/SheringhamWeatherCenter']
>>>>>>>> 2024-07-10T15:32:32.057086+01:00 raspberrypi weewxd[4788]: ERROR 
>>>>>>>> weeutil.rsyncupload: **** ssh: connect to host 192.68.1.157 port 223: 
>>>>>>>> Connection timed out
>>>>>>>> 2024-07-10T15:32:32.057115+01:00 raspberrypi weewxd[4788]: ERROR 
>>>>>>>> weeutil.rsyncupload: **** rsync: connection unexpectedly closed (0 
>>>>>>>> bytes 
>>>>>>>> received so far) [sender]
>>>>>>>> 2024-07-10T15:32:32.057141+01:00 raspberrypi weewxd[4788]: ERROR 
>>>>>>>> weeutil.rsyncupload: **** rsync error: unexplained error (code 255) at 
>>>>>>>> io.c(231) [sender=3.2.7]
>>>>>>>>
>>>>>>>> The ssh port  223  is correct.
>>>>>>>>
>>>>>>>> Sending to my host from the home and the root is OK just wondered 
>>>>>>>> what else I need to set up for weewx to work ok.
>>>>>>>>
>>>>>>>> Thanks any help
>>>>>>>> P
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>  
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> 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/1e00dc38-38c2-4f94-8707-64a5930fac90n%40googlegroups.com
>>>>>>>>  
>>>>>>>> <https://groups.google.com/d/msgid/weewx-user/1e00dc38-38c2-4f94-8707-64a5930fac90n%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/0bb64d71-c6b3-4dde-8071-199b1cd6b20dn%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/0bb64d71-c6b3-4dde-8071-199b1cd6b20dn%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/fcfca1e7-f792-4dda-97a2-0e0cbcb1ea7fn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/fcfca1e7-f792-4dda-97a2-0e0cbcb1ea7fn%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/2852755c-7c20-4149-87fd-87bfc67b56ean%40googlegroups.com.

Reply via email to