Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-12 Thread vince
It is in an unusual place, yes, but rsync over ssh works like it always 
does.  You put the .ssh tree for the user under that user's $HOME whatever 
it is.

On Friday, July 12, 2024 at 10:44:05 AM UTC-7 philip@gmail.com wrote:

> Welll thank you Vince It worked
> I did try and ssh-keygen and changed the file name to /var/lib/weewx/.ssh 
> and it did produce the files but it still didnt work
> So I copied and paste from my home/phil/.ssh folder and it worked
> So again thank you
> Plus I also learnt where the $HOME directory is for user weewx which I 
> most admit still feels odd but perhaps I can read up on.
> Phil
>
> On Friday, July 12, 2024 at 5:56:13 PM UTC+1 vince wrote:
>
>> Sorry, you do have it wrong.
>>
>> You need to put the .ssh tree under the $HOME of the user weewx runs as 
>> ('weewx' for a dpkg installation) per the /etc/password file definition of 
>> its home directory, so it would be /var/lib/weewx
>>
>>
>> On Friday, July 12, 2024 at 9:32:05 AM UTC-7 philip@gmail.com wrote:
>>
>>> Vince
>>> I thought weewx $Home directory is where the bin/init.d folders are 
>>> which is in /etc/weewx
>>> var/lib/weewx only has the database in
>>> Have a got that wrong
>>>
>>> On Friday, July 12, 2024 at 5:09:17 PM UTC+1 vince wrote:
>>>
 A dpkg installation sets weewx $HOME to /var/lib/weewx unless you've 
 manually changed things

 (from my /etc/passwd in a clean 5.1.0-4 installation)
 weewx:x:104:109::/var/lib/weewx:/usr/sbin/nologin


 On Friday, July 12, 2024 at 8:05:04 AM UTC-7 philip@gmail.com 
 wrote:

> 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 Lush...@192.168.1.157 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 philip@gmail.com <
>> philip@gmail.com> 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 Lush...@192.168.1.157 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 philip@gmail.com <
 philip@gmail.com> 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/ 
> Lush...@192.168.1.157:/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 
>> philip@gmail.com 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 b

Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-12 Thread philip....@gmail.com
Welll thank you Vince It worked
I did try and ssh-keygen and changed the file name to /var/lib/weewx/.ssh 
and it did produce the files but it still didnt work
So I copied and paste from my home/phil/.ssh folder and it worked
So again thank you
Plus I also learnt where the $HOME directory is for user weewx which I most 
admit still feels odd but perhaps I can read up on.
Phil

On Friday, July 12, 2024 at 5:56:13 PM UTC+1 vince wrote:

> Sorry, you do have it wrong.
>
> You need to put the .ssh tree under the $HOME of the user weewx runs as 
> ('weewx' for a dpkg installation) per the /etc/password file definition of 
> its home directory, so it would be /var/lib/weewx
>
>
> On Friday, July 12, 2024 at 9:32:05 AM UTC-7 philip@gmail.com wrote:
>
>> Vince
>> I thought weewx $Home directory is where the bin/init.d folders are which 
>> is in /etc/weewx
>> var/lib/weewx only has the database in
>> Have a got that wrong
>>
>> On Friday, July 12, 2024 at 5:09:17 PM UTC+1 vince wrote:
>>
>>> A dpkg installation sets weewx $HOME to /var/lib/weewx unless you've 
>>> manually changed things
>>>
>>> (from my /etc/passwd in a clean 5.1.0-4 installation)
>>> weewx:x:104:109::/var/lib/weewx:/usr/sbin/nologin
>>>
>>>
>>> On Friday, July 12, 2024 at 8:05:04 AM UTC-7 philip@gmail.com wrote:
>>>
 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 Lush...@192.168.1.157 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 philip@gmail.com <
> philip@gmail.com> 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 Lush...@192.168.1.157 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 philip@gmail.com <
>>> philip@gmail.com> 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/ 
 Lush...@192.168.1.157:/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 philip@gmail.com 
> 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. 
>>>
>>>

Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-12 Thread vince
Sorry, you do have it wrong.

You need to put the .ssh tree under the $HOME of the user weewx runs as 
('weewx' for a dpkg installation) per the /etc/password file definition of 
its home directory, so it would be /var/lib/weewx


On Friday, July 12, 2024 at 9:32:05 AM UTC-7 philip@gmail.com wrote:

> Vince
> I thought weewx $Home directory is where the bin/init.d folders are which 
> is in /etc/weewx
> var/lib/weewx only has the database in
> Have a got that wrong
>
> On Friday, July 12, 2024 at 5:09:17 PM UTC+1 vince wrote:
>
>> A dpkg installation sets weewx $HOME to /var/lib/weewx unless you've 
>> manually changed things
>>
>> (from my /etc/passwd in a clean 5.1.0-4 installation)
>> weewx:x:104:109::/var/lib/weewx:/usr/sbin/nologin
>>
>>
>> On Friday, July 12, 2024 at 8:05:04 AM UTC-7 philip@gmail.com wrote:
>>
>>> 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 Lush...@192.168.1.157 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 philip@gmail.com <
 philip@gmail.com> 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 Lush...@192.168.1.157 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 philip@gmail.com <
>> philip@gmail.com> 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/ 
>>> Lush...@192.168.1.157:/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 philip@gmail.com 
 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 
>> *.
>>
>> On Wed, Jul 10, 2024 at 7:57 AM philip@gmail.com <
>> philip@gmail.com> wrote:
>>
>>> Ive built a new build on raspi 5 with weewx 5.02 and it all 
>>> works ok apart from rsync to my local se

Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-12 Thread philip....@gmail.com
Vince
I thought weewx $Home directory is where the bin/init.d folders are which 
is in /etc/weewx
var/lib/weewx only has the database in
Have a got that wrong

On Friday, July 12, 2024 at 5:09:17 PM UTC+1 vince wrote:

> A dpkg installation sets weewx $HOME to /var/lib/weewx unless you've 
> manually changed things
>
> (from my /etc/passwd in a clean 5.1.0-4 installation)
> weewx:x:104:109::/var/lib/weewx:/usr/sbin/nologin
>
>
> On Friday, July 12, 2024 at 8:05:04 AM UTC-7 philip@gmail.com wrote:
>
>> 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 Lush...@192.168.1.157 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 philip@gmail.com <
>>> philip@gmail.com> 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 Lush...@192.168.1.157 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 philip@gmail.com <
> philip@gmail.com> 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/ 
>> Lush...@192.168.1.157:/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 philip@gmail.com 
>>> 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 
> *.
>
> On Wed, Jul 10, 2024 at 7:57 AM philip@gmail.com <
> philip@gmail.com> 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/ 
>> Lush...@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
>> phil@raspberrypi:~ $ sudo -i
>> root@raspberrypi:~# rsync -a /etc/weewx/w

Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-12 Thread vince
A dpkg installation sets weewx $HOME to /var/lib/weewx unless you've 
manually changed things

(from my /etc/passwd in a clean 5.1.0-4 installation)
weewx:x:104:109::/var/lib/weewx:/usr/sbin/nologin


On Friday, July 12, 2024 at 8:05:04 AM UTC-7 philip@gmail.com wrote:

> 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 Lush...@192.168.1.157 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 philip@gmail.com <
>> philip@gmail.com> 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 Lush...@192.168.1.157 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 philip@gmail.com <
 philip@gmail.com> 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/ 
> Lush...@192.168.1.157:/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 philip@gmail.com 
>> 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 
 *.

 On Wed, Jul 10, 2024 at 7:57 AM philip@gmail.com <
 philip@gmail.com> 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/ 
> Lush...@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
> phil@raspberrypi:~ $ sudo -i
> root@raspberrypi:~# rsync -a /etc/weewx/webpages/testcenter/ 
> Lush...@192.168.1.157:/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/testce

Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-12 Thread philip....@gmail.com
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 Lush...@192.168.1.157 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 philip@gmail.com  
> 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 Lush...@192.168.1.157 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 philip@gmail.com <
>>> philip@gmail.com> 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/ 
 Lush...@192.168.1.157:/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 philip@gmail.com 
> 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 
>>> *.
>>>
>>> On Wed, Jul 10, 2024 at 7:57 AM philip@gmail.com <
>>> philip@gmail.com> 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/ 
 Lush...@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
 phil@raspberrypi:~ $ sudo -i
 root@raspberrypi:~# rsync -a /etc/weewx/webpages/testcenter/ 
 Lush...@192.168.1.157:/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', 

Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-12 Thread Tom Keffer
1. When you say "If I then enter ssh LushEr21@192.168.1.157 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 philip@gmail.com <
philip.c.ow...@gmail.com> 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 LushEr21@192.168.1.157 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 philip@gmail.com <
>> philip@gmail.com> 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/ 
>>> Lush...@192.168.1.157:/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 philip@gmail.com
 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
>> *.
>>
>> On Wed, Jul 10, 2024 at 7:57 AM philip@gmail.com <
>> philip@gmail.com> 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/
>>> Lush...@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
>>> phil@raspberrypi:~ $ sudo -i
>>> root@raspberrypi:~# rsync -a /etc/weewx/webpages/testcenter/
>>> Lush...@192.168.1.157:/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/',
>>> 'Lush...@192.68.1.157:/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:
>>> Connec

Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-12 Thread philip....@gmail.com
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 LushEr21@192.168.1.157 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 philip@gmail.com  
> 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/ 
>> Lush...@192.168.1.157:/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 philip@gmail.com 
>>> 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 
> *.
>
> On Wed, Jul 10, 2024 at 7:57 AM philip@gmail.com <
> philip@gmail.com> 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/ 
>> Lush...@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
>> phil@raspberrypi:~ $ sudo -i
>> root@raspberrypi:~# rsync -a /etc/weewx/webpages/testcenter/ 
>> Lush...@192.168.1.157:/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/', 
>> 'Lush...@192.68.1.157:/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 
>>>

Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-11 Thread Tom Keffer
>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 philip@gmail.com <
philip.c.ow...@gmail.com> 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/ 
> Lush...@192.168.1.157:/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 philip@gmail.com 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
 *.

 On Wed, Jul 10, 2024 at 7:57 AM philip@gmail.com <
 philip@gmail.com> 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/
> Lush...@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
> phil@raspberrypi:~ $ sudo -i
> root@raspberrypi:~# rsync -a /etc/weewx/webpages/testcenter/
> Lush...@192.168.1.157:/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/',
> 'Lush...@192.68.1.157:/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 weewx-user+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/1e00dc38-38c2-4f94-8707-64a5930fac90n%40googlegroups.com
> 
> .
>
 --
> You received this message beca

Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-11 Thread philip....@gmail.com
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/ 
Lush...@192.168.1.157:/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 philip@gmail.com 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 
>>> *.
>>>
>>> On Wed, Jul 10, 2024 at 7:57 AM philip@gmail.com <
>>> philip@gmail.com> 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/ 
 Lush...@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
 phil@raspberrypi:~ $ sudo -i
 root@raspberrypi:~# rsync -a /etc/weewx/webpages/testcenter/ 
 Lush...@192.168.1.157:/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/', 
 'Lush...@192.68.1.157:/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 weewx-user+...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/1e00dc38-38c2-4f94-8707-64a5930fac90n%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/0bb64d71-c6b3-4dde-8071-199b1cd6b20dn%40googlegroups.com.


Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-11 Thread Glenn McKechnie
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 philip@gmail.com 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 
>> *.
>>
>> On Wed, Jul 10, 2024 at 7:57 AM philip@gmail.com <
>> philip@gmail.com> 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/ 
>>> Lush...@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
>>> phil@raspberrypi:~ $ sudo -i
>>> root@raspberrypi:~# rsync -a /etc/weewx/webpages/testcenter/ 
>>> Lush...@192.168.1.157:/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/', 
>>> 'Lush...@192.68.1.157:/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 weewx-user+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/1e00dc38-38c2-4f94-8707-64a5930fac90n%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/4fcc2531-cb30-42d6-bb36-a8189394daa1n%40googlegroups.com.


Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-11 Thread philip....@gmail.com
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 
> *.
>
> On Wed, Jul 10, 2024 at 7:57 AM philip@gmail.com  
> 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/ 
>> Lush...@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
>> phil@raspberrypi:~ $ sudo -i
>> root@raspberrypi:~# rsync -a /etc/weewx/webpages/testcenter/ 
>> Lush...@192.168.1.157:/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/', 
>> 'Lush...@192.68.1.157:/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 weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/1e00dc38-38c2-4f94-8707-64a5930fac90n%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/e6b381bf-6401-4fba-b12d-d9b17cfc66bbn%40googlegroups.com.
2024-07-11T10:39:49.041391+01:00 raspberrypi weewxd-sunhours[2189]: INFO 
weewx.engine: StdConvert target unit is 0x1
2024-07-11T10:39:49.042353+01:00 raspberrypi weewxd-sunhours[2189]: INFO 
weewx.wxservices: StdWXCalculate will use data binding wx_binding
2024-07-11T10:39:49.050663+01:00 raspberrypi weewxd-sunhours[2189]: INFO 
weewx.engine: Archive will use data binding wx_binding
2024-07-11T10:39:49.050762+01:00 raspberrypi weewxd-sunhours[2189]: INFO 
weewx.engine: Record generation will be attempted in 'hardware'
2024-07-11T10:39:49.050800+01:00 raspberrypi weewxd-sunhours[2189]: INFO 
weewx.engine: Using archive interval of 300 seconds (specified by hardware)
2024-07-11T10:39:49.077787+01:00 raspberrypi weewxd-sunhours[2189]: INFO 
weewx.restx: StationRegistry: Registration not requested.
2024-07-11T10:39:49.081740+01:00 raspberrypi weewxd-sunhours[2189]: INFO 
weewx.engine: 'pyephem' detected, extended almanac data is available
2024-07-11T10:39:49.081818+01:00 raspberrypi weewxd-sunhours[2189]: INFO 
__main__: Starting up weewx version 5.1.0
2024-07-11T10:39:49.601229+01:00 raspberrypi weewxd-sunhours[2189]: INFO 
weewx.engine: Clock error is -1.60 seconds (positive is fast)
2024-07-11T10:39:49.601318+01:00 raspberrypi weewxd-sunhours[2189]: INFO 
weewx.engine: Using binding 'wx_binding

Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-10 Thread Tom Keffer
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
*.

On Wed, Jul 10, 2024 at 7:57 AM philip@gmail.com <
philip.c.ow...@gmail.com> 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/
> LushEr21@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
> phil@raspberrypi:~ $ sudo -i
> root@raspberrypi:~# rsync -a /etc/weewx/webpages/testcenter/
> LushEr21@192.168.1.157:/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/',
> 'LushEr21@192.68.1.157:/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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/1e00dc38-38c2-4f94-8707-64a5930fac90n%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/CAPq0zEDf0hBqhrL9_oRRDgWo%2BAKxe69LZ%2BqPfdktV2NOhT0iuA%40mail.gmail.com.


Re: [weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-10 Thread Glenn McKechnie
typo...

LushEr21@192.168.1.157
vs
server = 192.68.1.157

On Thu, 11 Jul 2024 at 00:57, philip@gmail.com 
wrote:

> [...]
>
> phil@raspberrypi:~ $ rsync -a /etc/weewx/webpages/testcenter/
> LushEr21@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
>
>
> 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/',
> 'LushEr21@192.68.1.157:/volume1/web/SheringhamWeatherCenter']
>
>

Cheers
 Glenn

Various WeeWx addons at
https://github.com/glennmckechnie

-- 
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/CAAraAzik4akGugxfsjX51d5kuFS7OROaNxgTmvx5PCwM5AfcZQ%40mail.gmail.com.


[weewx-user] Rsync on V5..0.2 not working and alos on v5.1

2024-07-10 Thread philip....@gmail.com
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/ 
LushEr21@192.168.1.157:/volume1/web/SheringhamWeatherCenter/
phil@raspberrypi:~ $ sudo -i
root@raspberrypi:~# rsync -a /etc/weewx/webpages/testcenter/ 
LushEr21@192.168.1.157:/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/', 
'LushEr21@192.68.1.157:/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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1e00dc38-38c2-4f94-8707-64a5930fac90n%40googlegroups.com.


[weewx-user] Rsync - how to prevent directory from deletion

2024-05-26 Thread 'Tomasz Lewicki' via weewx-user
Dear Weewx users.

I'd like to ask how can I prevent Rsync called by Weewx from deleting a 
directory or file on a remote server when refreshing the site with weather 
observations?

The problem is: I wrote short documentation for people visiting my PWS 
site. It is in directory called 'docs'. I put it manually to the main 
directory of remote WWW server (public_html). When my Weewx updates files 
and is sending them by Rsync, 'docs' directory is being deleted from 
server. I can't protect it by 'chatrr +i' in Linux because this is hosted 
server and I can't use all normal Linux system tools.

Some hints...? 

-- 
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/64c3f516-d468-4957-ad16-4810ee735b3fn%40googlegroups.com.


Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-25 Thread vince
See the wiki section (link 
) for how to find 
your logs with journalctl.

At this point we'd need to see all the logs from weewx startup through a 
couple report cycles 'and' your weewx.conf file.   Be sure to obfuscate any 
usernames/passwords therein before posting.

On Saturday, May 25, 2024 at 6:39:09 AM UTC-7 Chris Eidem wrote:

> I can rsync files with that user, so it's there and it works. I changed 
> the server name in the weewx.conf file and restarted weewx. 
>
> One mention of rsync at all in the logs (jounalctl -b -e, is there another 
> place to look?): 
> DEBUG weewx.reportengine: Found configuration file 
> /etc/weewx/skins/Rsync/skin.conf for report 'RSYNC'
>
> rsync is enabled (output from weectl report list):
> Using configuration file /etc/weewx/weewx.confNo
>
>   Report  Skin Enabled   Units   Language
>SeasonsReport  neowx-materialYUS  N/A   
> SmartphoneReport  Smartphone  YUS  N/A   
> MobileReport  Mobile  YUS  N/A   
>   StandardReport  neowx-materialYUS  N/A   
> forecast  forecastYUS  N/A   
>  FTP  Ftp NUS  N/A   
>RSYNC  Rsync   YUS  N/A  
>
> On Friday, May 24, 2024 at 11:42:56 AM UTC-5 vince wrote:
>
>> You should see 'something' related to rsync in your logs unless you 
>> massively messed up your RSYNC section or its location in weewx.conf
>>
>> For example - I took a clean system and enabled RSYNC then added the 
>> log_failure and log_success lines to make it explicitly log 
>> failure/success..
>>
>> [StdReport]
>> ...many lines omitted for brevity...
>> [[RSYNC]]
>> skin = Rsync
>> enable = true
>> server = replace_me### <=== it'll fail on hostname resolution
>> user = replace_me
>> path = replace_me
>> log_failure = true
>> log_success = true
>>
>> It logs the expected failures showing weewx at least ran the uploader.
>>
>> 2024-05-24T09:27:32.412737-07:00 deb12pkgtwo weewxd[3052]: INFO 
>> weewx.engine: Starting main packet loop.
>> 2024-05-24T09:30:14.923691-07:00 deb12pkgtwo weewxd[3052]: INFO 
>> weewx.manager: Added record 2024-05-24 09:30:00 PDT (1716568200) to 
>> database 'weewx.sdb'
>> 2024-05-24T09:30:14.932831-07:00 deb12pkgtwo weewxd[3052]: INFO 
>> weewx.manager: Added record 2024-05-24 09:30:00 PDT (1716568200) to daily 
>> summary in 'weewx.sdb'
>> 2024-05-24T09:30:15.216464-07:00 deb12pkgtwo weewxd[3052]: INFO 
>> weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.24 
>> seconds
>> 2024-05-24T09:30:15.507333-07:00 deb12pkgtwo weewxd[3052]: INFO 
>> weewx.imagegenerator: Generated 56 images for report SeasonsReport in 0.27 
>> seconds
>> 2024-05-24T09:30:15.508311-07:00 deb12pkgtwo weewxd[3052]: INFO 
>> weewx.reportengine: Copied 5 files to /var/www/html/weewx
>> 2024-05-24T09:30:16.021060-07:00 deb12pkgtwo weewxd[3052]: ERROR 
>> weeutil.rsyncupload: rsync reported errors. Original command: ['rsync', 
>> '--archive', '--stats', '-e', 'ssh', '/var/www/html/weewx/', 
>> 'replace_me@replace_me:replace_me']
>> 2024-05-24T09:30:16.021132-07:00 deb12pkgtwo weewxd[3052]: ERROR 
>> weeutil.rsyncupload:  ssh: Could not resolve hostname replace_me: Name 
>> or service not known
>> 2024-05-24T09:30:16.021153-07:00 deb12pkgtwo weewxd[3052]: ERROR 
>> weeutil.rsyncupload:  rsync: connection unexpectedly closed (0 bytes 
>> received so far) [sender]
>> 2024-05-24T09:30:16.021170-07:00 deb12pkgtwo weewxd[3052]: ERROR 
>> weeutil.rsyncupload:  rsync error: unexplained error (code 255) at 
>> io.c(231) [sender=3.2.7]
>>
>>
>> Another example from one of my weewx instances that rsyncs a skin that 
>> has literally one file in it:
>> May 24 09:35:28 pi4 weewxd-ecowitt[27898]: INFO weewx.manager: Added 
>> record 2024-05-24 09:35:00 PDT (1716568500) to database 'ecowitt.sdb'
>> May 24 09:35:28 pi4 weewxd-ecowitt[27898]: INFO weewx.manager: Added 
>> record 2024-05-24 09:35:00 PDT (1716568500) to daily summary in 
>> 'ecowitt.sdb'
>> May 24 09:35:29 pi4 weewxd-ecowitt[27898]: INFO weewx.cheetahgenerator: 
>> Generated 1 files for report ecowitt in 0.03 seconds
>> May 24 09:35:29 pi4 weewxd-ecowitt[27898]: INFO weewx.reportengine: 
>> Copied 0 files to /home/pi/weewx-data/public_html/ecowitt
>> May 24 09:35:29 pi4 weewxd-ecowitt[27898]: INFO weeutil.rsyncupload: 
>> rsync'd 1 files (3,962 bytes) in 0.69 seconds
>>
>> On Friday, May 24, 2024 at 5:41:43 AM UTC-7 Graham Eddy wrote:
>>
>>> run the command as user weewx on the weewx box, i hasten to clarify
>>> *⊣GE⊢*
>>>
>>> On 24 May 2024, at 10:39 PM, Graham Eddy  wrote:
>>>
>>> on source box running weewx, run $ ssh websvr hostname (where websvr is 
>>> rsync target host)
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Goog

Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-25 Thread Chris Eidem
I can rsync files with that user, so it's there and it works. I changed the 
server name in the weewx.conf file and restarted weewx. 

One mention of rsync at all in the logs (jounalctl -b -e, is there another 
place to look?): 
DEBUG weewx.reportengine: Found configuration file 
/etc/weewx/skins/Rsync/skin.conf for report 'RSYNC'

rsync is enabled (output from weectl report list):
Using configuration file /etc/weewx/weewx.confNo

  Report  Skin Enabled   Units   Language
   SeasonsReport  neowx-materialYUS  N/A   
SmartphoneReport  Smartphone  YUS  N/A   
MobileReport  Mobile  YUS  N/A   
  StandardReport  neowx-materialYUS  N/A   
forecast  forecastYUS  N/A   
 FTP  Ftp NUS  N/A   
   RSYNC  Rsync   YUS  N/A  

On Friday, May 24, 2024 at 11:42:56 AM UTC-5 vince wrote:

> You should see 'something' related to rsync in your logs unless you 
> massively messed up your RSYNC section or its location in weewx.conf
>
> For example - I took a clean system and enabled RSYNC then added the 
> log_failure and log_success lines to make it explicitly log 
> failure/success..
>
> [StdReport]
> ...many lines omitted for brevity...
> [[RSYNC]]
> skin = Rsync
> enable = true
> server = replace_me### <=== it'll fail on hostname resolution
> user = replace_me
> path = replace_me
> log_failure = true
> log_success = true
>
> It logs the expected failures showing weewx at least ran the uploader.
>
> 2024-05-24T09:27:32.412737-07:00 deb12pkgtwo weewxd[3052]: INFO 
> weewx.engine: Starting main packet loop.
> 2024-05-24T09:30:14.923691-07:00 deb12pkgtwo weewxd[3052]: INFO 
> weewx.manager: Added record 2024-05-24 09:30:00 PDT (1716568200) to 
> database 'weewx.sdb'
> 2024-05-24T09:30:14.932831-07:00 deb12pkgtwo weewxd[3052]: INFO 
> weewx.manager: Added record 2024-05-24 09:30:00 PDT (1716568200) to daily 
> summary in 'weewx.sdb'
> 2024-05-24T09:30:15.216464-07:00 deb12pkgtwo weewxd[3052]: INFO 
> weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.24 
> seconds
> 2024-05-24T09:30:15.507333-07:00 deb12pkgtwo weewxd[3052]: INFO 
> weewx.imagegenerator: Generated 56 images for report SeasonsReport in 0.27 
> seconds
> 2024-05-24T09:30:15.508311-07:00 deb12pkgtwo weewxd[3052]: INFO 
> weewx.reportengine: Copied 5 files to /var/www/html/weewx
> 2024-05-24T09:30:16.021060-07:00 deb12pkgtwo weewxd[3052]: ERROR 
> weeutil.rsyncupload: rsync reported errors. Original command: ['rsync', 
> '--archive', '--stats', '-e', 'ssh', '/var/www/html/weewx/', 
> 'replace_me@replace_me:replace_me']
> 2024-05-24T09:30:16.021132-07:00 deb12pkgtwo weewxd[3052]: ERROR 
> weeutil.rsyncupload:  ssh: Could not resolve hostname replace_me: Name 
> or service not known
> 2024-05-24T09:30:16.021153-07:00 deb12pkgtwo weewxd[3052]: ERROR 
> weeutil.rsyncupload:  rsync: connection unexpectedly closed (0 bytes 
> received so far) [sender]
> 2024-05-24T09:30:16.021170-07:00 deb12pkgtwo weewxd[3052]: ERROR 
> weeutil.rsyncupload:  rsync error: unexplained error (code 255) at 
> io.c(231) [sender=3.2.7]
>
>
> Another example from one of my weewx instances that rsyncs a skin that has 
> literally one file in it:
> May 24 09:35:28 pi4 weewxd-ecowitt[27898]: INFO weewx.manager: Added 
> record 2024-05-24 09:35:00 PDT (1716568500) to database 'ecowitt.sdb'
> May 24 09:35:28 pi4 weewxd-ecowitt[27898]: INFO weewx.manager: Added 
> record 2024-05-24 09:35:00 PDT (1716568500) to daily summary in 
> 'ecowitt.sdb'
> May 24 09:35:29 pi4 weewxd-ecowitt[27898]: INFO weewx.cheetahgenerator: 
> Generated 1 files for report ecowitt in 0.03 seconds
> May 24 09:35:29 pi4 weewxd-ecowitt[27898]: INFO weewx.reportengine: Copied 
> 0 files to /home/pi/weewx-data/public_html/ecowitt
> May 24 09:35:29 pi4 weewxd-ecowitt[27898]: INFO weeutil.rsyncupload: 
> rsync'd 1 files (3,962 bytes) in 0.69 seconds
>
> On Friday, May 24, 2024 at 5:41:43 AM UTC-7 Graham Eddy wrote:
>
>> run the command as user weewx on the weewx box, i hasten to clarify
>> *⊣GE⊢*
>>
>> On 24 May 2024, at 10:39 PM, Graham Eddy  wrote:
>>
>> on source box running weewx, run $ ssh websvr hostname (where websvr is 
>> rsync target host)
>>
>>
>>

-- 
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/75c0cd8e-6a70-40e5-8b68-c4df69022415n%40googlegroups.com.


Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-25 Thread Chris Eidem
It works as expected:

bash-4.4$ ssh www hostname
www


On Friday, May 24, 2024 at 7:41:43 AM UTC-5 Graham Eddy wrote:

> run the command as user weewx on the weewx box, i hasten to clarify
> *⊣GE⊢*
>
> On 24 May 2024, at 10:39 PM, Graham Eddy  wrote:
>
> on source box running weewx, run $ ssh websvr hostname (where websvr is 
> rsync target host)
>
>
>

-- 
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/3525ee51-eeeb-44e1-af64-5c23410771e8n%40googlegroups.com.


Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-24 Thread vince
You should see 'something' related to rsync in your logs unless you 
massively messed up your RSYNC section or its location in weewx.conf

For example - I took a clean system and enabled RSYNC then added the 
log_failure and log_success lines to make it explicitly log 
failure/success..

[StdReport]
...many lines omitted for brevity...
[[RSYNC]]
skin = Rsync
enable = true
server = replace_me### <=== it'll fail on hostname resolution
user = replace_me
path = replace_me
log_failure = true
log_success = true

It logs the expected failures showing weewx at least ran the uploader.

2024-05-24T09:27:32.412737-07:00 deb12pkgtwo weewxd[3052]: INFO 
weewx.engine: Starting main packet loop.
2024-05-24T09:30:14.923691-07:00 deb12pkgtwo weewxd[3052]: INFO 
weewx.manager: Added record 2024-05-24 09:30:00 PDT (1716568200) to 
database 'weewx.sdb'
2024-05-24T09:30:14.932831-07:00 deb12pkgtwo weewxd[3052]: INFO 
weewx.manager: Added record 2024-05-24 09:30:00 PDT (1716568200) to daily 
summary in 'weewx.sdb'
2024-05-24T09:30:15.216464-07:00 deb12pkgtwo weewxd[3052]: INFO 
weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.24 
seconds
2024-05-24T09:30:15.507333-07:00 deb12pkgtwo weewxd[3052]: INFO 
weewx.imagegenerator: Generated 56 images for report SeasonsReport in 0.27 
seconds
2024-05-24T09:30:15.508311-07:00 deb12pkgtwo weewxd[3052]: INFO 
weewx.reportengine: Copied 5 files to /var/www/html/weewx
2024-05-24T09:30:16.021060-07:00 deb12pkgtwo weewxd[3052]: ERROR 
weeutil.rsyncupload: rsync reported errors. Original command: ['rsync', 
'--archive', '--stats', '-e', 'ssh', '/var/www/html/weewx/', 
'replace_me@replace_me:replace_me']
2024-05-24T09:30:16.021132-07:00 deb12pkgtwo weewxd[3052]: ERROR 
weeutil.rsyncupload:  ssh: Could not resolve hostname replace_me: Name 
or service not known
2024-05-24T09:30:16.021153-07:00 deb12pkgtwo weewxd[3052]: ERROR 
weeutil.rsyncupload:  rsync: connection unexpectedly closed (0 bytes 
received so far) [sender]
2024-05-24T09:30:16.021170-07:00 deb12pkgtwo weewxd[3052]: ERROR 
weeutil.rsyncupload:  rsync error: unexplained error (code 255) at 
io.c(231) [sender=3.2.7]


Another example from one of my weewx instances that rsyncs a skin that has 
literally one file in it:
May 24 09:35:28 pi4 weewxd-ecowitt[27898]: INFO weewx.manager: Added record 
2024-05-24 09:35:00 PDT (1716568500) to database 'ecowitt.sdb'
May 24 09:35:28 pi4 weewxd-ecowitt[27898]: INFO weewx.manager: Added record 
2024-05-24 09:35:00 PDT (1716568500) to daily summary in 'ecowitt.sdb'
May 24 09:35:29 pi4 weewxd-ecowitt[27898]: INFO weewx.cheetahgenerator: 
Generated 1 files for report ecowitt in 0.03 seconds
May 24 09:35:29 pi4 weewxd-ecowitt[27898]: INFO weewx.reportengine: Copied 
0 files to /home/pi/weewx-data/public_html/ecowitt
May 24 09:35:29 pi4 weewxd-ecowitt[27898]: INFO weeutil.rsyncupload: 
rsync'd 1 files (3,962 bytes) in 0.69 seconds

On Friday, May 24, 2024 at 5:41:43 AM UTC-7 Graham Eddy wrote:

> run the command as user weewx on the weewx box, i hasten to clarify
> *⊣GE⊢*
>
> On 24 May 2024, at 10:39 PM, Graham Eddy  wrote:
>
> on source box running weewx, run $ ssh websvr hostname (where websvr is 
> rsync target host)
>
>
>

-- 
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/a6355588-6034-49cb-9b7e-e3ff587e7514n%40googlegroups.com.


Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-24 Thread Graham Eddy
run the command as user weewx on the weewx box, i hasten to clarify
⊣GE⊢

> On 24 May 2024, at 10:39 PM, Graham Eddy  wrote:
> 
> on source box running weewx, run $ ssh websvr hostname (where websvr is rsync 
> target host)

-- 
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/60F7305D-3DBB-4987-9725-ED7E395C4287%40geddy.au.


Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-24 Thread Graham Eddy
verify that ssh passwordless login is actually working:
on source box running weewx, run $ ssh websvr hostname (where websvr is rsync 
target host)
and you should see it print websvr’s hostname
but it might prompt you interactively to update known_hosts, if they are new 
keys...
⊣GE⊢

> On 24 May 2024, at 10:25 PM, Chris Eidem  wrote:
> 
> I thought that was the problem also, but I believe I have it correct with:

-- 
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/07E27200-CC19-4668-9224-B92918BB198C%40geddy.au.


Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-24 Thread Chris Eidem
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  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 serv

Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-24 Thread Geoff Cusick
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 regardsGeoff17 Westcroft Road Holsworthy, EX22 6BYPhone: +44 (0)1409 254330Mobile: +44 (0)7976 285950Web: http://www.cusick.org.ukOn 24 May 2024, at 13:08, 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.HTHGeoff 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 
  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 "wee

Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-24 Thread geoff...@gmail.com

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  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
  
 
 .

>>> -- 
>>> 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.
>>>

Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-24 Thread Chris Eidem
Here is the skin.conf file for good measure:

[weewx@weewx Rsync]# pwd
/etc/weewx/skins/Rsync
[weewx@weewx Rsync]# cat skin.conf 
###
# Copyright (c) 2012 Will Page
   #
# With credit to Tom Keffer  
  #
#   
  #
# RSYNC CONFIGURATION FILE 
   #
#   This 'report' does not generate any files. Instead, we use the report   
  #
#   engine to invoke rsync, which synchronizes files between two locations. 
  #
###

SKIN_NAME = Rsync
SKIN_VERSION = 5.0.2

[Generators]
generator_list = weewx.reportengine.RsyncGenerator

[weewx@weewx Rsync]# 
On Friday, May 24, 2024 at 6:56:10 AM UTC-5 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  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 "

Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-24 Thread Chris Eidem
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  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
>>>  
>>> 
>>> .
>>>
>> -- 
>> 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
>>  
>> 
>> .
>>
>>

-- 
You received this message because you are subscribed to the Go

Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-24 Thread vince
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  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
>>  
>> 
>> .
>>
> -- 
> 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
>  
> 
> .
>
>

-- 
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/78594107-73b5-4fe7-8f5b-b68f759684bfn%40googlegroups.com.


Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-23 Thread Chris Eidem
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  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+unsubscr...@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+unsubscr...@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 
.


--
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/f92bac51-0edb-4350-b029-4216c9cf7091%40gmail.com.


Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-23 Thread Chris Eidem
May 23 20:55:28 rocky1.example.com weewxd[763]: INFO weewx.manager: 
Added record 2024-05-23 20:55:00 CDT (1716515700) to database 'weewx.sdb'
May 23 20:55:28 rocky1.example.com weewxd[763]: INFO weewx.manager: 
Added record 2024-05-23 20:55:00 CDT (1716515700) to daily summary in 
'weewx.sdb'
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
MainThread: Zambretti: starting thread
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
ZambrettiThread: Zambretti: generating forecast for 2024-05-23 09:00:00 
CDT (1716472800)
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
ZambrettiThread: Zambretti: using winddir from 2024-05-23 08:30:00 CDT 
(1716471000) to 2024-05-23 09:00:00 CDT (1716472800)
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
ZambrettiThread: Zambretti: using pressure from 2024-05-23 06:00:00 CDT 
(1716462000) to 2024-05-23 09:00:00 CDT (1716472800)
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
MainThread: NWS: not yet time to do the forecast
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
MainThread: WU: not yet time to do the forecast
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
MainThread: OWM: not yet time to do the forecast
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
MainThread: Aeris: not yet time to do the forecast
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG 
weewx.reportengine: Running reports for latest time in the database.
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG weewx.restx: 
StationRegistry: wait interval (8400 < 86400) has not passed for record 
2024-05-23 20:55:00 CDT (1716515700)
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG 
weewx.reportengine: Running report 'SeasonsReport'
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG weewx.manager: 
Daily summary version is 4.0
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG 
weewx.reportengine: Found configuration file 
/etc/weewx/skins/neowx-material/skin.conf for report 'SeasonsReport'
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG 
weewx.reportengine: Running generators for report 'SeasonsReport' in 
directory '/etc/weewx/skins/neowx-material'
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG 
weewx.cheetahgenerator: Using search list 
['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Current', 
'weewx.cheetahgenerator.DisplayOptions', 
'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 
'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 
'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
ZambrettiThread: Zambretti: units=1 winddir=None pressure=None 
first_p=None last_p=None
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
ZambrettiThread: Zambretti: pressure=None month=4 winddir=None 
trend=None north=True
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
ZambrettiThread: Zambretti: code is None
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG user.forecast: 
ZambrettiThread: Zambretti: terminating thread
May 23 20:55:28 rocky1.example.com weewxd[763]: DEBUG weewx.manager: 
Daily summary version is 4.0
May 23 20:55:36 rocky1.example.com weewxd[763]: INFO 
weewx.cheetahgenerator: Generated 12 files for report SeasonsReport in 
7.43 seconds
May 23 20:55:36 rocky1.example.com weewxd[763]: INFO weewx.reportengine: 
Copied 0 files to /var/www/html/weewx
May 23 20:55:36 rocky1.example.com weewxd[763]: DEBUG 
weewx.reportengine: Running report 'SmartphoneReport'
May 23 20:55:36 rocky1.example.com weewxd[763]: DEBUG 
weewx.reportengine: Cannot read skin configuration file 
/etc/weewx/skins/Smartphone/skin.conf for report 'SmartphoneReport': 
Config file not found: "/etc/weewx/skins/Smartphone/skin.conf".
May 23 20:55:48 rocky1.example.com weewxd[763]: DEBUG user.gw1000: Next 
update in 20 seconds
May 23 20:56:09 rocky1.example.com weewxd[763]: DEBUG user.gw1000: Next 
update in 20 seconds
May 23 20:56:29 rocky1.example.com weewxd[763]: DEBUG user.gw1000: Next 
update in 20 seconds
May 23 20:56:49 rocky1.example.com weewxd[763]: DEBUG user.gw1000: Next 
update in 20 seconds
May 23 20:57:09 rocky1.example.com weewxd[763]: DEBUG user.gw1000: Next 
update in 20 seconds
May 23 20:57:29 rocky1.example.com weewxd[763]: DEBUG user.gw1000: Next 
update in 20 seconds
May 23 20:57:49 rocky1.example.com weewxd[763]: DEBUG user.gw1000: Next 
update in 20 seconds
May 23 20:58:09 rocky1.example.com weewxd[763]: DEBUG user.gw1000: Next 
update in 20 seconds
May 23 20:58:29 rocky1.example.com weewxd[763]: DEBUG user.gw1000: Next 
update in 20 seconds
May 23 20:58:49 rocky1.example.com weewxd[763]: DEBUG user.gw1000: Next 
update in 20 seconds
May 23 20:59:10 rocky1.example.com weewxd[76

Re: [weewx-user] rsync not sending to remote web site after upgrade

2024-05-23 Thread Tom Keffer
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  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+unsubscr...@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+unsubscr...@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.


[weewx-user] rsync not sending to remote web site after upgrade

2024-05-23 Thread Chris Eidem
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+unsubscr...@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.


[weewx-user] rsync does not work after upgrade to v5

2024-03-01 Thread teq...@gmail.com
Hello,
first I messed up with the normal upgrade from 4 to 5 via apt upgrade. 
After that I created a complete new installation but keep my weewx.conf 
file.

So,  weewx 5 works now and generated all information. Unfortunately the 
rsync "skin" does not do anything. If I execute the rsync command manually 
it works fine.

After that I enabled the debug mode and saw that the command seems to be 
executed, but without any output.

2024-03-01T10:30:35.062186+01:00 weewx weewxd[392]: DEBUG 
weewx.reportengine: Running report 'RSYNC'
2024-03-01T10:30:35.062694+01:00 weewx weewxd[392]: DEBUG 
weewx.reportengine: Found configuration file 
/etc/weewx/skins/Rsync/skin.conf for report 'RSYNC'
2024-03-01T10:30:35.065311+01:00 weewx weewxd[392]: DEBUG 
weewx.reportengine: Running generators for report 'RSYNC' in directory 
'/etc/weewx/skins/Rsync'
2024-03-01T10:30:35.065483+01:00 weewx weewxd[392]: DEBUG 
weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', '--stats', 
'-e', 'ssh', '/var/www/html/weewx/', 
'u...@vps01.example.com:/home/user/webseiten/website/html']]

Because of the working weewx.conf in version 4 I don't see any issues. I 
read many comments about host key verification, but I don't have this issue 
here. So maybe someone could help.

Thanks.

-- 
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/5ccb45c1-9e25-4043-a5a1-7faa65833e51n%40googlegroups.com.


[weewx-user] RSYNC Errors

2023-10-26 Thread Tom -KQ5S
I am getting the following error from time to time.  Rsync will work fine 
for a while and then I get the error.  I might get the error for a couple 
of cycles then it will work again, then the error again.  I have included 
the reply from my internet host as well.  Ideas?

Oct 26 07:50:26 raspberrypi weewx[30090] DEBUG weewx.reportengine: Running 
report 'RSYNC'

Oct 26 07:50:26 raspberrypi weewx[30090] DEBUG weewx.reportengine: Found 
configuration file /home/weewx/skins/Rsync/skin.conf for report 'RSYNC'

Oct 26 07:50:26 raspberrypi weewx[30090] DEBUG weewx.reportengine: Cannot 
read localization file /home/weewx/skins/Rsync/lang/en.conf for report 
'RSYNC': Config file not found: "/home/weewx/skins/Rsync/lang/en.conf".

Oct 26 07:50:26 raspberrypi weewx[30090] DEBUG weewx.reportengine:  
Using defaults instead.

Oct 26 07:50:26 raspberrypi weewx[30090] DEBUG weeutil.rsyncupload: 
rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e', 'ssh -p ', 
'/home/weewx/public_html/', ‘x...@kq5s.com]]

Oct 26 07:50:27 raspberrypi weewx[30090] ERROR weeutil.rsyncupload: rsync 
reported errors. Original command: ['rsync', '--archive', '--stats', '-e', 
'ssh -p ', '/home/weewx/public_html/', ‘xxx...@kq5s.com:’]

Oct 26 07:50:27 raspberrypi weewx[30090] ERROR weeutil.rsyncupload:  
kex_exchange_identification: Connection closed by remote host

Oct 26 07:50:27 raspberrypi weewx[30090] ERROR weeutil.rsyncupload:  
Connection closed by 199.250.194.206 port 

Oct 26 07:50:27 raspberrypi weewx[30090] ERROR weeutil.rsyncupload:  
rsync: connection unexpectedly closed (0 bytes received so far) [sender]

Oct 26 07:50:27 raspberrypi weewx[30090] ERROR weeutil.rsyncupload:  
rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.3]


==
>From Internet host.  I'm not sure where the user weewx is coming from.  It 
is not the user set in my config file for rsync.

Regarding SSH, a review of the server's logs shows two repeated occurrences 
for your user ID "weewx". I've copied an example of each error below:

*Oct 11 15:37:17 ecbiz246 sshd[55604]: Invalid user weewx from 
xxx.xx.xxx.xx port 60374*
*Oct 11 15:37:17 ecbiz246 sshd[55604]: Received disconnect from *
*xxx.xx.xxx.xx** port 60374:11: Bye Bye [preauth]*
*Oct 11 15:37:17 ecbiz246 sshd[55604]: Disconnected from **xxx.xx.xxx.xx** port 
60374 [preauth]*
 

*Oct 11 06:46:23 ecbiz246 sshd[3762]: drop connection #28 
 from 
[**xxx.xx.xxx.xx**]:42380 
on [**xxx.xx.xxx.xx**]: past MaxStartups*
*...*
*Oct 11 09:30:20 ecbiz246 sshd[3762]: drop connection #27 
 from 
[x**xxx.xx.xxx.xx**]:47222 
on [**xxx.xx.xxx.xx**]: past MaxStartups*

It appears your Pi is intermittently trying to connect with an incorrect 
SSH user string, and subsequent connections are maxing the limit for 
concurrent SSH connections (MaxStartups), so the excess connections are 
simply dropped by the server. I suggest reviewing the SSH connection string 
for the PI, as well as ensuring it is closing connections correctly. 
Additionally, you will want to ensure you are not opening too many 
concurrent connections for transfer. If the issue persists you may want to 
increase the amount of time between uploads, as we are unable to increase 
the MaxStartups setting on shared server.



-- 
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/0a76aa54-c0f7-4159-8f35-806cc3c46f5bn%40googlegroups.com.


[weewx-user] Rsync error after updating to Ubuntu 22.04

2023-08-22 Thread Jon B
I recently updated the operating system on which I'm running weewx to 
Ubuntu 22.04 and now Rsync to my web server is no longer working. I'm 
pretty sure it's because the version of ssh in Ubuntu 22.04 is newer than 
the previous version and I've tried various fixes but haven't been able to 
solve it.

The error in the logs is:

Unable to negotiate with ***.***.**.** port 22: no matching host key type 
found. Their offer: ssh-rsa,ssh-dss
ERROR weeutil.rsyncupload:  rsync: connection unexpectedly closed (0 
bytes received so far) [sender]
ERROR weeutil.rsyncupload:  rsync error: unexplained error (code 255) 
at io.c(231) [sender=3.2.7]

>From searching online I've tried adding various things to different ssh 
config files but none has worked. I'm sure it must be a fairly simple 
solution though - can anyone point me in the right direction?

Thanks!

-- 
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/a2bc03f3-888a-4bd0-8fd4-5ac836106876n%40googlegroups.com.


Re: [weewx-user] rsync: host key verification failed - problem

2023-07-20 Thread Warren Gill
I took all the file transfer bits out of weewx and just run the rsync
command in a crontab. It seems more reliable, and easier to troubleshoot.

On Thu, Jul 20, 2023 at 3:06 PM Tomasz Lewicki 
wrote:

> rsync: host key verification failed
>
> Dear Weewx users.
>
> I'm trying to send files generated by Weewx to external webserver (paid
> hosting) with rsync. I'm familiar with rsync, ssh and Linux. Weewx is
> running on Raspberry Pi as 'pi' user. Here are my configs:
>
> /home/pi/.ssh/config
>
> Host CF
> #HostName external.domain.com <- here of course is real web address
> HostName 10.20.30.40 <- here of course is real IP
> Port 222
> User acetone <- this is my username on remote webserver (hosting)
>
> /etc/weewx/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 = external.domain.com
> port = 222
> user = acetone
> path = domains/external.domain.com/private_html/meteo/
>
> # 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
>
> (...)
>
> I can log in to external server with ssh (passwordless) with command:
>
> $ ssh -p 222 acet...@external.domain.com
>
> or just
>
> $ ssh CF <- this is host from .ssh/config
>
> I got error message from weewx:
>
> Jul 20 21:36:04 WeewxFR24 weewx[28079] DEBUG weeutil.rsyncupload:
> rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e', 'ssh -p 222',
> '/var/www/html/weewx/', 'acet...@external.domain.com:~/domains/
> external.domain.com/private_html/meteo']]
> Jul 20 21:36:04 WeewxFR24 weewx[28079] ERROR weeutil.rsyncupload: rsync
> reported errors. Original command: ['rsync', '--archive', '--stats', '-e',
> 'ssh -p 222', '/var/www/html/weewx/', 'acet...@external.domain.com:
> ~/domains/external.domain.com/private_html/meteo']
> Jul 20 21:36:04 WeewxFR24 weewx[28079] ERROR weeutil.rsyncupload: 
> Host key verification failed.
> Jul 20 21:36:04 WeewxFR24 weewx[28079] ERROR weeutil.rsyncupload: 
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> Jul 20 21:36:04 WeewxFR24 weewx[28079] ERROR weeutil.rsyncupload: 
> rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]
>
> I can send single file or whole directory with this command applied
> directly from CLI:
>
> $ rsync --archive --stats -e 'ssh external.domain.com -p 222 -l acetone'
> /var/www/html/weewx/ CF:domains/external.domain.com/private_html/meteo/
>
> I can also send files with simpler command (no additional options for -e
> ssh because they are in .ssh/config):
>
> $ rsync --archive --stats -e ssh /var/www/html/weewx/ CF:domains/
> external.domain.com/private_html/meteo/
>
> But *not* with:
>
> rsync --archive --stats -e ssh /var/www/html/weewx/
> acet...@external.domain.com:domains/external.domain.com/private_html/meteo
>
> And *not* with:
>
> rsync --archive --stats -e ssh /var/www/html/weewx/ external.domain.com:
> domains/external.domain.com/private_html/meteo
>
> As you can see, if .ssh/config is properly filled with data, it is much
> simpler to 'do' rsync. But why it works when executed manually but not from
> inside Weewx? Keys are valid if I can log in without password from CLI.
> Maybe you could do [[RSYNC]] option more flexible and use .ssh/config?
>
> --
> 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/4616524f-f3dd-4485-aa98-5ba3a97a7adcn%40googlegroups.com
> 

[weewx-user] rsync: host key verification failed - problem

2023-07-20 Thread Tomasz Lewicki
rsync: host key verification failed

Dear Weewx users.

I'm trying to send files generated by Weewx to external webserver (paid 
hosting) with rsync. I'm familiar with rsync, ssh and Linux. Weewx is 
running on Raspberry Pi as 'pi' user. Here are my configs:

/home/pi/.ssh/config

Host CF
#HostName external.domain.com <- here of course is real web address
HostName 10.20.30.40 <- here of course is real IP
Port 222
User acetone <- this is my username on remote webserver (hosting)

/etc/weewx/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 = external.domain.com
port = 222
user = acetone
path = domains/external.domain.com/private_html/meteo/

# 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

(...)

I can log in to external server with ssh (passwordless) with command:

$ ssh -p 222 acet...@external.domain.com

or just

$ ssh CF <- this is host from .ssh/config

I got error message from weewx:

Jul 20 21:36:04 WeewxFR24 weewx[28079] DEBUG weeutil.rsyncupload: 
rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e', 'ssh -p 222', 
'/var/www/html/weewx/', 
'acet...@external.domain.com:~/domains/external.domain.com/private_html/meteo']]
Jul 20 21:36:04 WeewxFR24 weewx[28079] ERROR weeutil.rsyncupload: rsync 
reported errors. Original command: ['rsync', '--archive', '--stats', '-e', 
'ssh -p 222', '/var/www/html/weewx/', 
'acet...@external.domain.com:~/domains/external.domain.com/private_html/meteo']
Jul 20 21:36:04 WeewxFR24 weewx[28079] ERROR weeutil.rsyncupload:  Host 
key verification failed.
Jul 20 21:36:04 WeewxFR24 weewx[28079] ERROR weeutil.rsyncupload:  
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
Jul 20 21:36:04 WeewxFR24 weewx[28079] ERROR weeutil.rsyncupload:  
rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]

I can send single file or whole directory with this command applied 
directly from CLI:

$ rsync --archive --stats -e 'ssh external.domain.com -p 222 -l acetone' 
/var/www/html/weewx/ CF:domains/external.domain.com/private_html/meteo/

I can also send files with simpler command (no additional options for -e 
ssh because they are in .ssh/config):

$ rsync --archive --stats -e ssh /var/www/html/weewx/ 
CF:domains/external.domain.com/private_html/meteo/

But *not* with:

rsync --archive --stats -e ssh /var/www/html/weewx/ 
acet...@external.domain.com:domains/external.domain.com/private_html/meteo

And *not* with:

rsync --archive --stats -e ssh /var/www/html/weewx/ 
external.domain.com:domains/external.domain.com/private_html/meteo

As you can see, if .ssh/config is properly filled with data, it is much 
simpler to 'do' rsync. But why it works when executed manually but not from 
inside Weewx? Keys are valid if I can log in without password from CLI. 
Maybe you could do [[RSYNC]] option more flexible and use .ssh/config?

-- 
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/4616524f-f3dd-4485-aa98-5ba3a97a7adcn%40googlegroups.com.


[weewx-user] RSync using NFS

2023-03-02 Thread Mark Fraser
I have set up file sharing between 2 devices using NFS so that I don't have
to store passwords. Is it possible to have weewx rsync over this connection
as it seems to want a server name and port as part of the configuration?

-- 
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/CAPSrEdnDtq9mHHAVGoNFCfoLvpWOEjAJn-1oe1b4FDgMKbrXQg%40mail.gmail.com.


[weewx-user] Rsync Help or User Help :o)

2022-11-14 Thread FIA Ranch
Is WeeWX Rsync buggy or am I!!  Likely me, and I just haven't found the 
right bug spray to kill it!!  :o)

About ready to just run a crontab job! Yes I understand WeeWX and crontab 
being/getting out of sync.

I have been fighting this for a couple of days.  So now I am looking for 
hints.  I have run out!

I apologize for this being a long post!  I hope I have covered all the 
"have you tried.."

What DOES work.

I can sign into the server, move around, add, delete files, etc.

NOTE:  It is a shared server with a shared IP address.  All of the 
following have been tried both ways.  Using the domain and the shared IP.


fiaranch@weather:~$ ssh fiara...@fiaranch.com (Enter)
Last login: Mon Nov 14 07:52:14 2022 from 166.sub-174-212-228.myvzw.com
fiara...@fiaranch.com [~]# exit (Hit Enter)
logout
Connection to fiaranch.com closed.
fiaranch@weather:~$ 


I can rsync from the command line
-
fiaranch@weather:~$ rsync -avhze ssh --progress --update --stats 
 /var/www/html/ --delete 
fiara...@fiaranch.com:/home3/fiaranch/public_html/weather/
(Hit Enter)
sending incremental file list
./
#FTP.last
 26.05K 100%   23.51MB/s0:00:00 (xfr#1, to-chk=200/202)
belchertown-dark.min.css
|
|
blah-blah-blah
|
Number of files: 202 (reg: 185, dir: 17)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 57
Total file size: 1.91M bytes
Total transferred file size: 1.15M bytes
Literal data: 280.85K bytes
Matched data: 872.30K bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 171.97K
Total bytes received: 11.16K

sent 171.97K bytes  received 11.16K bytes  73.25K bytes/sec
total size is 1.91M  speedup is 10.44
-

Immediately run it again..
--
fiaranch@weather:~$ rsync -avhze ssh --progress --update --stats 
 /var/www/html/ --delete 
fiara...@fiaranch.com:/home3/fiaranch/public_html/weather/
(Hit Enter)
sending incremental file list
./
#FTP.last
 26.05K 100%   23.51MB/s0:00:00 (xfr#1, to-chk=200/202)
belchertown-dark.min.css
|
|
blah-blah-blah
|
Number of files: 202 (reg: 185, dir: 17)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 0
Total file size: 1.91M bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 5.31K
Total bytes received: 35

sent 5.31K bytes  received 35 bytes  2.14K bytes/sec
total size is 1.91M  speedup is 357.60
---

All of the above tells me that the ssh keys are set and working.  Also says 
that Rsync is working between client and server. 

Now we go to WeeWX !!!

Following are the file setups as they currently exist.

First the external files

The .ssh directory
fiaranch@weather:~$ dir ~/.ssh (Hit Enter)

configid_rsaknown_hosts

Three files - config, key file, known hosts

Config File Content
--
HostName fiaranch.com
IdentityFile ~/.ssh/id_rsa
StrictHostKeyChecking no
User fiaranch
ServerAliveInterval 30
ServerAliveCountMax 6
-
NOTE: The ServerAlive entries are from researching one of the debug errors. 
 Same with the StrictHost That info coming up.

The known_hosts file (without all the key stuff

|1|lz75l---
|1|lMA4Y..
fiaranch.com

NOTE: Added the domain from another research finding

Now the WeeWX config file - Again omitting everything except relevant parts


-
[[RSYNC]]
skin = Rsync
enable = true
server = fiaranch.com
user = fiaranch
path = /home3/fiaranch/public_html/weather/
HTML_ROOT = /var/www/html
delete = 1
---
NOTE:  Yes, HTML_ROOT is a different directory

Now we get to the terminal tail output using - sudo tail -f /var/log/syslog

NOTE:  In the config file all debug options are on. I have left all the 
timestamps in the list to show it is a fast fail. I added the line breaks 
and line numbers to make it easier to read and note

1) Nov 14 08:42:30 weather weewx[71342] DEBUG weewx.reportengine: Running 
report 'RSYNC'

2) Nov 14 08:42:30 weather weewx[71342] DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/Rsync/skin.conf for report 'RSYNC'

3) Nov 14 08:42:30 weather weewx[71342] DEBUG weewx.reportengine: Cannot 
read localization file /etc/weewx/skins/Rsync/lang/en.conf for report 
'RSYNC': Config file not found: "/etc/weewx/skins/Rsync/lang/en.conf".

4) Nov 14 08:42:30 weather weewx[71342] DEBUG weewx.reportengine:  
Using defaults instead.

5) Nov 14 08:42:30 weather weewx[71342] DEBUG weeutil.rsyncupload: 
rsyncupload: cmd: [['rsync', '--archive', '--stats', '--delete', '-e', 
'ssh', '/var/www/html/', 
'fiara...@fiaranch.com:/home3/fiaranch/public_html/weather']]

6) Nov 14 08:42:31 weather weewx[71342] ERROR weeutil.rsyncupload: rsync 
reported errors. Original command: ['rsync', '--arc

Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread Dan Jones
Well the things you learn!

Thanks, that worked.

I didnt realise you could have ip address and hostname in the config like
that, but it has done the trick

On Tue, 9 Aug 2022 at 19:41, vince  wrote:

> Not understanding why you're doing it that way.
>
> Just add the identity file to the stanza in your /root/.ssh/config
>
> Host awsbox 1.2.3.4
>  IdentityFile ~/.ssh/id_rsa_my_remote_username
>  user my_remote_username
>  hostname 1.2.3.4
>
> The stanza above lets you use either name or address.
> FWIW, I use address on my aws lightsail stanza just in case my local DNS
> bounces (which is very rare)
>
> --
> 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/TGswy_m8yq0/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/9d13bb14-2a04-451f-b46e-ee18759faa24n%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/CAPj91zkG22BLH8RYcUeczT76hRjUZz11WXsO3%2BxR9uqVLu5AjQ%40mail.gmail.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread vince
Not understanding why you're doing it that way.

Just add the identity file to the stanza in your /root/.ssh/config

Host awsbox 1.2.3.4
 IdentityFile ~/.ssh/id_rsa_my_remote_username
 user my_remote_username
 hostname 1.2.3.4

The stanza above lets you use either name or address.
FWIW, I use address on my aws lightsail stanza just in case my local DNS 
bounces (which is very rare)

-- 
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/9d13bb14-2a04-451f-b46e-ee18759faa24n%40googlegroups.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread Dan Jones
[[RSYNC]]
skin = Rsync
HTML_ROOT = /var/www/html
server = awsbox
user = www-data
path = /var/www/html
ssh_options = -i /root/.ssh/aws
delete = 0

On Tuesday, August 9, 2022 at 6:44:45 PM UTC+1 jo...@johnkline.com wrote:

> I just examined the code in /bin/weeutil/rsyncupload.py
> It contains:
> if self.ssh_options:
> rsyncsshstring = rsyncsshstring + " " + self.ssh_options
>
> I don’t see a how this couldn’t be including options.  Would you send your 
> entire RSYNC stanza again?
>
> On Aug 9, 2022, at 10:32 AM, John Kline  wrote:
>
> 
>
> Did you restart weewx after changing weewx.conf?
>
> On Aug 9, 2022, at 10:05 AM, Dan Jones  wrote:
>
> ssh stanza removed
>
> debug on 1
>
> output still the same:
>
> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
> 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]
>
>
> Still ignoring ssh_options and still using IP address rather than host 
> name.
>
> Surely ssh_options wouldn't be needed if it used the host name, and then 
> rsync would use .ssh/config with the correct host name configuration?
>
>
> On Tuesday, August 9, 2022 at 5:09:51 PM UTC+1 jo...@johnkline.com wrote:
>
>> Oh, I didn’t notice the SSH stanza, remove that line.  ssh_options should 
>> be directly under RSYNC.
>>
>> On Aug 9, 2022, at 9:01 AM, bell...@gmail.com  wrote:
>>
>> I don’t have a [[SSH]] stanza. Try removing that.
>>
>> rich
>>
>> On Tuesday, 9 August 2022 at 11:53:57 UTC-4 dan.rh...@gmail.com wrote:
>>
>>> Yep, correct, its the private key. 
>>>
>>> But it looks like that whole ssh_options bit is being ignored. I can't 
>>> see it in the logs when I tail them. 
>>>
>>> On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com 
>>> wrote:
>>>
 -i should refer to a file that contains a private key.  Is that the 
 case?

 On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:

 My weewx.conf contains this:


 [[RSYNC]]
 skin = Rsync
 HTML_ROOT = /var/www/html
 server = awsbox
 user = www-data
 path = /var/www/html
 delete = 0
 ssh_options = -i /root/.ssh/aws
 [[SSH]]
ssh_options = -i /root/.ssh/aws

 I have awsbox in my host file, pointing to the correct ip address

 in my .ssh/config I have:

 Host awsbox
 user www-data
 IdentityFile /root/.ssh/aws


 when I start the Weewx server, I get this error 

 DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
 '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]

 (IP changed for security)

 I can't see where the ip address is coming from. Is weewx or rsync 
 converting it from the host file?

 Also, It seems to be ignoring the ssh_options parameter (though I could 
 be using the wrong) But I hope that it isn't required, as I guess that 
 rsync should be using the config in .ssh/config

 Any help would be greatly appreciated

 This is all on the latest version of Weewx

 -- 
 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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.
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/7a2e36e8-00fe-491e-acd7-01fca28be7a0n%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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/6ce83cde-458e-4058-917c-f8b6b10d44d6n%40googlegroups.com
>  
> 
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.

Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread 'John Kline' via weewx-user
I just examined the code in /bin/weeutil/rsyncupload.py
It contains:
if self.ssh_options:
rsyncsshstring = rsyncsshstring + " " + self.ssh_options

I don’t see a how this couldn’t be including options.  Would you send your 
entire RSYNC stanza again?

> On Aug 9, 2022, at 10:32 AM, John Kline  wrote:
> 
> 
> Did you restart weewx after changing weewx.conf?
> 
>>> On Aug 9, 2022, at 10:05 AM, Dan Jones  wrote:
>>> 
>> ssh stanza removed
>> 
>> debug on 1
>> 
>> output still the same:
>> 
>> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
>> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
>> 'www-data@123.123.123.123:/var/www/html/weather34/serverdata']]
>> 
>> 
>> Still ignoring ssh_options and still using IP address rather than host name.
>> 
>> Surely ssh_options wouldn't be needed if it used the host name, and then 
>> rsync would use .ssh/config with the correct host name configuration?
>> 
>> 
>>> On Tuesday, August 9, 2022 at 5:09:51 PM UTC+1 jo...@johnkline.com wrote:
>>> Oh, I didn’t notice the SSH stanza, remove that line.  ssh_options should 
>>> be directly under RSYNC.
>>> 
> On Aug 9, 2022, at 9:01 AM, bell...@gmail.com  wrote:
> 
 I don’t have a [[SSH]] stanza. Try removing that.
>>> 
 rich
 
> On Tuesday, 9 August 2022 at 11:53:57 UTC-4 dan.rh...@gmail.com wrote:
> Yep, correct, its the private key. 
> 
> But it looks like that whole ssh_options bit is being ignored. I can't 
> see it in the logs when I tail them. 
> 
>> On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com wrote:
>> -i should refer to a file that contains a private key.  Is that the case?
>> 
 On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:
 
>>> My weewx.conf contains this:
>> 
>>> 
>>> [[RSYNC]]
>>> skin = Rsync
>>> HTML_ROOT = /var/www/html
>>> server = awsbox
>>> user = www-data
>>> path = /var/www/html
>>> delete = 0
>>> ssh_options = -i /root/.ssh/aws
>>> [[SSH]]
>>>ssh_options = -i /root/.ssh/aws
>>> 
>>> I have awsbox in my host file, pointing to the correct ip address
>>> 
>>> in my .ssh/config I have:
>>> 
>>> Host awsbox
>>> user www-data
>>> IdentityFile /root/.ssh/aws
>>> 
>>> 
>>> when I start the Weewx server, I get this error 
>>> 
>>> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
>>> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
>>> 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]
>>> 
>>> (IP changed for security)
>>> 
>>> I can't see where the ip address is coming from. Is weewx or rsync 
>>> converting it from the host file?
>>> 
>>> Also, It seems to be ignoring the ssh_options parameter (though I could 
>>> be using the wrong) But I hope that it isn't required, as I guess that 
>>> rsync should be using the config in .ssh/config
>>> 
>>> Any help would be greatly appreciated
>>> 
>>> This is all on the latest version of Weewx
>>> 
>> 
>>> -- 
>>> 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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.
>>> 
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/7a2e36e8-00fe-491e-acd7-01fca28be7a0n%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/6ce83cde-458e-4058-917c-f8b6b10d44d6n%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/540444EA-03F2-4A72-BCD0-D36E73A5D5F4%40johnkline.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread Dan Jones
Yep. I did 

On 9 Aug 2022, at 18:32, 'John Kline' via weewx-user 
 wrote:


Did you restart weewx after changing weewx.conf?

> On Aug 9, 2022, at 10:05 AM, Dan Jones  wrote:
> 
> ssh stanza removed
> 
> debug on 1
> 
> output still the same:
> 
> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
> 'www-data@123.123.123.123:/var/www/html/weather34/serverdata']]
> 
> 
> Still ignoring ssh_options and still using IP address rather than host name.
> 
> Surely ssh_options wouldn't be needed if it used the host name, and then 
> rsync would use .ssh/config with the correct host name configuration?
> 
> 
> On Tuesday, August 9, 2022 at 5:09:51 PM UTC+1 jo...@johnkline.com wrote:
>> Oh, I didn’t notice the SSH stanza, remove that line.  ssh_options should be 
>> directly under RSYNC.
>> 
>>> On Aug 9, 2022, at 9:01 AM, bell...@gmail.com  wrote:
>>> 
>>> I don’t have a [[SSH]] stanza. Try removing that.
>> 
>>> rich
>>> 
>>> On Tuesday, 9 August 2022 at 11:53:57 UTC-4 dan.rh...@gmail.com wrote:
 Yep, correct, its the private key. 
 
 But it looks like that whole ssh_options bit is being ignored. I can't see 
 it in the logs when I tail them. 
 
 On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com wrote:
> -i should refer to a file that contains a private key.  Is that the case?
> 
>> On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:
>> 
>> My weewx.conf contains this:
> 
>> 
>> [[RSYNC]]
>> skin = Rsync
>> HTML_ROOT = /var/www/html
>> server = awsbox
>> user = www-data
>> path = /var/www/html
>> delete = 0
>> ssh_options = -i /root/.ssh/aws
>> [[SSH]]
>>ssh_options = -i /root/.ssh/aws
>> 
>> I have awsbox in my host file, pointing to the correct ip address
>> 
>> in my .ssh/config I have:
>> 
>> Host awsbox
>> user www-data
>> IdentityFile /root/.ssh/aws
>> 
>> 
>> when I start the Weewx server, I get this error 
>> 
>> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
>> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
>> 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]
>> 
>> (IP changed for security)
>> 
>> I can't see where the ip address is coming from. Is weewx or rsync 
>> converting it from the host file?
>> 
>> Also, It seems to be ignoring the ssh_options parameter (though I could 
>> be using the wrong) But I hope that it isn't required, as I guess that 
>> rsync should be using the config in .ssh/config
>> 
>> Any help would be greatly appreciated
>> 
>> This is all on the latest version of Weewx
>> 
> 
>> -- 
>> 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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.
>> 
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/7a2e36e8-00fe-491e-acd7-01fca28be7a0n%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/6ce83cde-458e-4058-917c-f8b6b10d44d6n%40googlegroups.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/TGswy_m8yq0/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/AE34A74C-F383-4D53-9A98-DE0812E22BDD%40johnkline.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/A0C0BA0C-1E64-412D-8787-5E1C419BCCE2%40gmail.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread 'John Kline' via weewx-user
Did you restart weewx after changing weewx.conf?

> On Aug 9, 2022, at 10:05 AM, Dan Jones  wrote:
> 
> ssh stanza removed
> 
> debug on 1
> 
> output still the same:
> 
> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
> 'www-data@123.123.123.123:/var/www/html/weather34/serverdata']]
> 
> 
> Still ignoring ssh_options and still using IP address rather than host name.
> 
> Surely ssh_options wouldn't be needed if it used the host name, and then 
> rsync would use .ssh/config with the correct host name configuration?
> 
> 
>> On Tuesday, August 9, 2022 at 5:09:51 PM UTC+1 jo...@johnkline.com wrote:
>> Oh, I didn’t notice the SSH stanza, remove that line.  ssh_options should be 
>> directly under RSYNC.
>> 
 On Aug 9, 2022, at 9:01 AM, bell...@gmail.com  wrote:
 
>>> I don’t have a [[SSH]] stanza. Try removing that.
>> 
>>> rich
>>> 
 On Tuesday, 9 August 2022 at 11:53:57 UTC-4 dan.rh...@gmail.com wrote:
 Yep, correct, its the private key. 
 
 But it looks like that whole ssh_options bit is being ignored. I can't see 
 it in the logs when I tail them. 
 
> On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com wrote:
> -i should refer to a file that contains a private key.  Is that the case?
> 
>>> On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:
>>> 
>> My weewx.conf contains this:
> 
>> 
>> [[RSYNC]]
>> skin = Rsync
>> HTML_ROOT = /var/www/html
>> server = awsbox
>> user = www-data
>> path = /var/www/html
>> delete = 0
>> ssh_options = -i /root/.ssh/aws
>> [[SSH]]
>>ssh_options = -i /root/.ssh/aws
>> 
>> I have awsbox in my host file, pointing to the correct ip address
>> 
>> in my .ssh/config I have:
>> 
>> Host awsbox
>> user www-data
>> IdentityFile /root/.ssh/aws
>> 
>> 
>> when I start the Weewx server, I get this error 
>> 
>> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
>> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
>> 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]
>> 
>> (IP changed for security)
>> 
>> I can't see where the ip address is coming from. Is weewx or rsync 
>> converting it from the host file?
>> 
>> Also, It seems to be ignoring the ssh_options parameter (though I could 
>> be using the wrong) But I hope that it isn't required, as I guess that 
>> rsync should be using the config in .ssh/config
>> 
>> Any help would be greatly appreciated
>> 
>> This is all on the latest version of Weewx
>> 
> 
>> -- 
>> 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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.
>> 
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/7a2e36e8-00fe-491e-acd7-01fca28be7a0n%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/6ce83cde-458e-4058-917c-f8b6b10d44d6n%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/AE34A74C-F383-4D53-9A98-DE0812E22BDD%40johnkline.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread Dan Jones
ssh stanza removed

debug on 1

output still the same:

DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
'--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
'www-data@123.123.123.123:/var/www/html/weather34/serverdata']]


Still ignoring ssh_options and still using IP address rather than host name.

Surely ssh_options wouldn't be needed if it used the host name, and then 
rsync would use .ssh/config with the correct host name configuration?


On Tuesday, August 9, 2022 at 5:09:51 PM UTC+1 jo...@johnkline.com wrote:

> Oh, I didn’t notice the SSH stanza, remove that line.  ssh_options should 
> be directly under RSYNC.
>
> On Aug 9, 2022, at 9:01 AM, bell...@gmail.com  wrote:
>
> I don’t have a [[SSH]] stanza. Try removing that.
>
> rich
>
> On Tuesday, 9 August 2022 at 11:53:57 UTC-4 dan.rh...@gmail.com wrote:
>
>> Yep, correct, its the private key. 
>>
>> But it looks like that whole ssh_options bit is being ignored. I can't 
>> see it in the logs when I tail them. 
>>
>> On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com wrote:
>>
>>> -i should refer to a file that contains a private key.  Is that the case?
>>>
>>> On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:
>>>
>>> My weewx.conf contains this:
>>>
>>>
>>> [[RSYNC]]
>>> skin = Rsync
>>> HTML_ROOT = /var/www/html
>>> server = awsbox
>>> user = www-data
>>> path = /var/www/html
>>> delete = 0
>>> ssh_options = -i /root/.ssh/aws
>>> [[SSH]]
>>>ssh_options = -i /root/.ssh/aws
>>>
>>> I have awsbox in my host file, pointing to the correct ip address
>>>
>>> in my .ssh/config I have:
>>>
>>> Host awsbox
>>> user www-data
>>> IdentityFile /root/.ssh/aws
>>>
>>>
>>> when I start the Weewx server, I get this error 
>>>
>>> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
>>> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
>>> 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]
>>>
>>> (IP changed for security)
>>>
>>> I can't see where the ip address is coming from. Is weewx or rsync 
>>> converting it from the host file?
>>>
>>> Also, It seems to be ignoring the ssh_options parameter (though I could 
>>> be using the wrong) But I hope that it isn't required, as I guess that 
>>> rsync should be using the config in .ssh/config
>>>
>>> Any help would be greatly appreciated
>>>
>>> This is all on the latest version of Weewx
>>>
>>> -- 
>>> 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/7a2e36e8-00fe-491e-acd7-01fca28be7a0n%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/6ce83cde-458e-4058-917c-f8b6b10d44d6n%40googlegroups.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread 'John Kline' via weewx-user
Oh, I didn’t notice the SSH stanza, remove that line.  ssh_options should be 
directly under RSYNC.

> On Aug 9, 2022, at 9:01 AM, bell...@gmail.com  wrote:
> 
> I don’t have a [[SSH]] stanza. Try removing that.
> rich
> 
>> On Tuesday, 9 August 2022 at 11:53:57 UTC-4 dan.rh...@gmail.com wrote:
>> Yep, correct, its the private key. 
>> 
>> But it looks like that whole ssh_options bit is being ignored. I can't see 
>> it in the logs when I tail them. 
>> 
>>> On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com wrote:
>>> -i should refer to a file that contains a private key.  Is that the case?
>>> 
> On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:
> 
 My weewx.conf contains this:
>>> 
 
 [[RSYNC]]
 skin = Rsync
 HTML_ROOT = /var/www/html
 server = awsbox
 user = www-data
 path = /var/www/html
 delete = 0
 ssh_options = -i /root/.ssh/aws
 [[SSH]]
ssh_options = -i /root/.ssh/aws
 
 I have awsbox in my host file, pointing to the correct ip address
 
 in my .ssh/config I have:
 
 Host awsbox
 user www-data
 IdentityFile /root/.ssh/aws
 
 
 when I start the Weewx server, I get this error 
 
 DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
 '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]
 
 (IP changed for security)
 
 I can't see where the ip address is coming from. Is weewx or rsync 
 converting it from the host file?
 
 Also, It seems to be ignoring the ssh_options parameter (though I could be 
 using the wrong) But I hope that it isn't required, as I guess that rsync 
 should be using the config in .ssh/config
 
 Any help would be greatly appreciated
 
 This is all on the latest version of Weewx
 
>>> 
 -- 
 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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/7a2e36e8-00fe-491e-acd7-01fca28be7a0n%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/CBB32A30-AB6D-4EEC-934E-1485CD416627%40johnkline.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread bell...@gmail.com
I don’t have a [[SSH]] stanza. Try removing that.
rich

On Tuesday, 9 August 2022 at 11:53:57 UTC-4 dan.rh...@gmail.com wrote:

> Yep, correct, its the private key. 
>
> But it looks like that whole ssh_options bit is being ignored. I can't see 
> it in the logs when I tail them. 
>
> On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com wrote:
>
>> -i should refer to a file that contains a private key.  Is that the case?
>>
>> On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:
>>
>> My weewx.conf contains this:
>>
>>
>> [[RSYNC]]
>> skin = Rsync
>> HTML_ROOT = /var/www/html
>> server = awsbox
>> user = www-data
>> path = /var/www/html
>> delete = 0
>> ssh_options = -i /root/.ssh/aws
>> [[SSH]]
>>ssh_options = -i /root/.ssh/aws
>>
>> I have awsbox in my host file, pointing to the correct ip address
>>
>> in my .ssh/config I have:
>>
>> Host awsbox
>> user www-data
>> IdentityFile /root/.ssh/aws
>>
>>
>> when I start the Weewx server, I get this error 
>>
>> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
>> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
>> 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]
>>
>> (IP changed for security)
>>
>> I can't see where the ip address is coming from. Is weewx or rsync 
>> converting it from the host file?
>>
>> Also, It seems to be ignoring the ssh_options parameter (though I could 
>> be using the wrong) But I hope that it isn't required, as I guess that 
>> rsync should be using the config in .ssh/config
>>
>> Any help would be greatly appreciated
>>
>> This is all on the latest version of Weewx
>>
>> -- 
>> 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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/7a2e36e8-00fe-491e-acd7-01fca28be7a0n%40googlegroups.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread 'John Kline' via weewx-user
Also, add:
debug = 1
In your weewx.conf file and restart WeeWX.

Your log will then contain output of the form:
rsyncupload: cmd: 

That will tell you if -i is being passed (likely it is) and also let you try it 
from the command line.

> On Aug 9, 2022, at 8:55 AM, John Kline  wrote:
> 
> 
> Just to double check, it’s the private key and not the directory that 
> contains the private key?
> 
>>> On Aug 9, 2022, at 8:54 AM, Dan Jones  wrote:
>>> 
>> Yep, correct, its the private key. 
>> 
>> But it looks like that whole ssh_options bit is being ignored. I can't see 
>> it in the logs when I tail them. 
>> 
>>> On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com wrote:
>>> -i should refer to a file that contains a private key.  Is that the case?
>>> 
> On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:
> 
 My weewx.conf contains this:
>>> 
 
 [[RSYNC]]
 skin = Rsync
 HTML_ROOT = /var/www/html
 server = awsbox
 user = www-data
 path = /var/www/html
 delete = 0
 ssh_options = -i /root/.ssh/aws
 [[SSH]]
ssh_options = -i /root/.ssh/aws
 
 I have awsbox in my host file, pointing to the correct ip address
 
 in my .ssh/config I have:
 
 Host awsbox
 user www-data
 IdentityFile /root/.ssh/aws
 
 
 when I start the Weewx server, I get this error 
 
 DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
 '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]
 
 (IP changed for security)
 
 I can't see where the ip address is coming from. Is weewx or rsync 
 converting it from the host file?
 
 Also, It seems to be ignoring the ssh_options parameter (though I could be 
 using the wrong) But I hope that it isn't required, as I guess that rsync 
 should be using the config in .ssh/config
 
 Any help would be greatly appreciated
 
 This is all on the latest version of Weewx
 
>>> 
 -- 
 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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/2240d22e-6787-4ac6-a6ba-7a4fb231da96n%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/9C7EF1B6-814D-4009-99B6-F3090A869D49%40johnkline.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread Dan Jones
Yep it’s the actual private key and not the directory. 

On 9 Aug 2022, at 16:55, 'John Kline' via weewx-user 
 wrote:


Just to double check, it’s the private key and not the directory that contains 
the private key?

> On Aug 9, 2022, at 8:54 AM, Dan Jones  wrote:
> 
> Yep, correct, its the private key. 
> 
> But it looks like that whole ssh_options bit is being ignored. I can't see it 
> in the logs when I tail them. 
> 
> On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com wrote:
>> -i should refer to a file that contains a private key.  Is that the case?
>> 
>>> On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:
>>> 
>>> My weewx.conf contains this:
>> 
>>> 
>>> [[RSYNC]]
>>> skin = Rsync
>>> HTML_ROOT = /var/www/html
>>> server = awsbox
>>> user = www-data
>>> path = /var/www/html
>>> delete = 0
>>> ssh_options = -i /root/.ssh/aws
>>> [[SSH]]
>>>ssh_options = -i /root/.ssh/aws
>>> 
>>> I have awsbox in my host file, pointing to the correct ip address
>>> 
>>> in my .ssh/config I have:
>>> 
>>> Host awsbox
>>> user www-data
>>> IdentityFile /root/.ssh/aws
>>> 
>>> 
>>> when I start the Weewx server, I get this error 
>>> 
>>> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
>>> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
>>> 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]
>>> 
>>> (IP changed for security)
>>> 
>>> I can't see where the ip address is coming from. Is weewx or rsync 
>>> converting it from the host file?
>>> 
>>> Also, It seems to be ignoring the ssh_options parameter (though I could be 
>>> using the wrong) But I hope that it isn't required, as I guess that rsync 
>>> should be using the config in .ssh/config
>>> 
>>> Any help would be greatly appreciated
>>> 
>>> This is all on the latest version of Weewx
>>> 
>> 
>>> -- 
>>> 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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/2240d22e-6787-4ac6-a6ba-7a4fb231da96n%40googlegroups.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/TGswy_m8yq0/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/DF74191E-EC21-495C-A048-DCB46C1A205C%40johnkline.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/E084FDCE-AE02-4666-B68F-CA470FB5A8AC%40gmail.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread 'John Kline' via weewx-user
Just to double check, it’s the private key and not the directory that contains 
the private key?

> On Aug 9, 2022, at 8:54 AM, Dan Jones  wrote:
> 
> Yep, correct, its the private key. 
> 
> But it looks like that whole ssh_options bit is being ignored. I can't see it 
> in the logs when I tail them. 
> 
>> On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com wrote:
>> -i should refer to a file that contains a private key.  Is that the case?
>> 
 On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:
 
>>> My weewx.conf contains this:
>> 
>>> 
>>> [[RSYNC]]
>>> skin = Rsync
>>> HTML_ROOT = /var/www/html
>>> server = awsbox
>>> user = www-data
>>> path = /var/www/html
>>> delete = 0
>>> ssh_options = -i /root/.ssh/aws
>>> [[SSH]]
>>>ssh_options = -i /root/.ssh/aws
>>> 
>>> I have awsbox in my host file, pointing to the correct ip address
>>> 
>>> in my .ssh/config I have:
>>> 
>>> Host awsbox
>>> user www-data
>>> IdentityFile /root/.ssh/aws
>>> 
>>> 
>>> when I start the Weewx server, I get this error 
>>> 
>>> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
>>> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
>>> 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]
>>> 
>>> (IP changed for security)
>>> 
>>> I can't see where the ip address is coming from. Is weewx or rsync 
>>> converting it from the host file?
>>> 
>>> Also, It seems to be ignoring the ssh_options parameter (though I could be 
>>> using the wrong) But I hope that it isn't required, as I guess that rsync 
>>> should be using the config in .ssh/config
>>> 
>>> Any help would be greatly appreciated
>>> 
>>> This is all on the latest version of Weewx
>>> 
>> 
>>> -- 
>>> 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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/2240d22e-6787-4ac6-a6ba-7a4fb231da96n%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/DF74191E-EC21-495C-A048-DCB46C1A205C%40johnkline.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread Dan Jones
Yep, correct, its the private key. 

But it looks like that whole ssh_options bit is being ignored. I can't see 
it in the logs when I tail them. 

On Tuesday, August 9, 2022 at 4:52:18 PM UTC+1 jo...@johnkline.com wrote:

> -i should refer to a file that contains a private key.  Is that the case?
>
> On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:
>
> My weewx.conf contains this:
>
>
> [[RSYNC]]
> skin = Rsync
> HTML_ROOT = /var/www/html
> server = awsbox
> user = www-data
> path = /var/www/html
> delete = 0
> ssh_options = -i /root/.ssh/aws
> [[SSH]]
>ssh_options = -i /root/.ssh/aws
>
> I have awsbox in my host file, pointing to the correct ip address
>
> in my .ssh/config I have:
>
> Host awsbox
> user www-data
> IdentityFile /root/.ssh/aws
>
>
> when I start the Weewx server, I get this error 
>
> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
> 'www-...@123.123.123.123:/var/www/html/weather34/serverdata']]
>
> (IP changed for security)
>
> I can't see where the ip address is coming from. Is weewx or rsync 
> converting it from the host file?
>
> Also, It seems to be ignoring the ssh_options parameter (though I could be 
> using the wrong) But I hope that it isn't required, as I guess that rsync 
> should be using the config in .ssh/config
>
> Any help would be greatly appreciated
>
> This is all on the latest version of Weewx
>
> -- 
> 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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/2240d22e-6787-4ac6-a6ba-7a4fb231da96n%40googlegroups.com.


Re: [weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread 'John Kline' via weewx-user
-i should refer to a file that contains a private key.  Is that the case?

> On Aug 9, 2022, at 8:14 AM, Dan Jones  wrote:
> 
> My weewx.conf contains this:
> 
> [[RSYNC]]
> skin = Rsync
> HTML_ROOT = /var/www/html
> server = awsbox
> user = www-data
> path = /var/www/html
> delete = 0
> ssh_options = -i /root/.ssh/aws
> [[SSH]]
>ssh_options = -i /root/.ssh/aws
> 
> I have awsbox in my host file, pointing to the correct ip address
> 
> in my .ssh/config I have:
> 
> Host awsbox
> user www-data
> IdentityFile /root/.ssh/aws
> 
> 
> when I start the Weewx server, I get this error 
> 
> DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
> '--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
> 'www-data@123.123.123.123:/var/www/html/weather34/serverdata']]
> 
> (IP changed for security)
> 
> I can't see where the ip address is coming from. Is weewx or rsync converting 
> it from the host file?
> 
> Also, It seems to be ignoring the ssh_options parameter (though I could be 
> using the wrong) But I hope that it isn't required, as I guess that rsync 
> should be using the config in .ssh/config
> 
> Any help would be greatly appreciated
> 
> This is all on the latest version of Weewx
> 
> -- 
> 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/e84797ff-e452-4099-bac1-e032a1f6d903n%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/D5F33A7E-51AF-49CD-A195-F5B3D154A2A7%40johnkline.com.


[weewx-user] RSYNC is using IP address and not host name

2022-08-09 Thread Dan Jones
My weewx.conf contains this:

[[RSYNC]]
skin = Rsync
HTML_ROOT = /var/www/html
server = awsbox
user = www-data
path = /var/www/html
delete = 0
ssh_options = -i /root/.ssh/aws
[[SSH]]
   ssh_options = -i /root/.ssh/aws

I have awsbox in my host file, pointing to the correct ip address

in my .ssh/config I have:

Host awsbox
user www-data
IdentityFile /root/.ssh/aws


when I start the Weewx server, I get this error 

DEBUG weeutil.rsyncupload: rsyncupload: cmd: [['rsync', '--archive', 
'--stats', '-e', 'ssh', '/tmp/weather34/serverdata/', 
'www-data@123.123.123.123:/var/www/html/weather34/serverdata']]

(IP changed for security)

I can't see where the ip address is coming from. Is weewx or rsync 
converting it from the host file?

Also, It seems to be ignoring the ssh_options parameter (though I could be 
using the wrong) But I hope that it isn't required, as I guess that rsync 
should be using the config in .ssh/config

Any help would be greatly appreciated

This is all on the latest version of Weewx

-- 
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/e84797ff-e452-4099-bac1-e032a1f6d903n%40googlegroups.com.


[weewx-user] rsync not working (weewx-Belchertown skin)

2022-01-13 Thread gszla...@gmail.com
WeeWX version 4.5.1 - debian install
MQTT
GW1000 API
also running neowx-material skin
--
rsync works perfectly on the command line but it does not work in weewx.
The web host uses port  for SSH.
I've tried all types of things with ~.ssh/config but whether or not I even 
use the config file or not, I get the exact same error:

2022-01-12 2:39 P.M.weewx.serviceweewx[19782] ERROR 
weeutil.rsyncupload: [['rsync', '--archive', '--stats', '-e ssh -p ', 
'/var/www/html/weewx/belchertown/', 
'remote_user@mydomainca:public_html/glenns/belchertown']] reported errors: 
Host key verification failed.. rsync: connection unexpectedly closed (0 
bytes received so far) [sender]. rsync error: unexplained error (code 255) 
at io.c(235) [sender=3.1.3]

I did see Chri's's Jan 2 thread about his port problem for rsync but in my 
case adding port =  in the RSYNC section appears to work as I see -p 
 in the error message above.

note: if you add a "/" slash in front of public_html for the target 
directory on the remote host, rsync does not work on the command line.

note: I don't "git" git - could not see a way to download Tom's patched 
rsyncupload.py - so i just did a cut and paste of his code with notepad++ 
and duplicated the permissions. Hopefully it worked..at least I get the 
same error with the patched file! I have attached a copy of the patched  
file..just in case i didn't get the right one. I also have attached a 
debug=1 file  along with weewx.conf.

Any help with this rsync problem would be greatly appreciated!

-- 
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/86d849c3-304a-48fd-9436-ed7f727360a9n%40googlegroups.com.
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2021 Tom Keffer 
# See the file LICENSE.txt for your rights.

##

# This section is for general configuration information.

# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 0

# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /

# Whether to log successful operations
log_success = True

# Whether to log unsuccessful operations
log_failure = True

# How long to wait before timing out a socket (FTP, HTTP) connection
socket_timeout = 20

# Do not modify this. It is used when installing and updating weewx.
version = 4.5.1

# Whether to try indefinitely to load the driver
loop_on_init = 1

##

#   This section is for information about the station.

[Station]

# Description of the station location
location = "Manitoulin Island"

# Latitude in decimal degrees. Negative for southern hemisphere
latitude = 45
# Longitude in decimal degrees. Negative for western hemisphere.
longitude = -82

# Altitude of the station, with unit it is in. This is downloaded from
# from the station if the hardware supports it.
altitude = 191, meter

# Set to type of station hardware. There must be a corresponding stanza
# in this file with a 'driver' parameter indicating the driver to be used.
station_type = GW1000

# If you have a website, you may specify an URL
station_url = 

# The start of the rain year (1=January; 10=October, etc.). This is
# downloaded from the station if the hardware supports it.
rain_year_start = 1

# Start of week (0=Monday, 6=Sunday)
week_start = 6

##

[GW1000]
# This section is for the GW1000 API driver.

# How often to poll the GW1000 API, default is every 20 seconds:
poll_interval = 20

# The driver to use:
driver = user.gw1000
ip_address = 192.168.1.15
port = 45000

##

[Simulator]
# This section is for the weewx weather station simulator

# The time (in seconds) between LOOP packets.
loop_interval = 2.5

# The simulator mode can be either 'simulator' or 'generator'.
# Real-time simulator. Sleep between each LOOP packet.
mode = simulator
# Generator.  Emit LOOP packets as fast as possible (useful for testing).
#mode = generator

# The start time. Format is -mm-ddTHH:MM. If not specified, the default
# is to use the present time.
#start = 2011-01-01T00:00

# The driver to use:
driver = weewx.drivers.simulator

##

#   This section is for uploading data to Internet sites

[StdRESTful]

[[StationRegistry]]
# To register this weather station with weewx, set this to t

[weewx-user] RSYNC port not working in weewx.conf ?

2022-01-01 Thread Chris Alemany
Hello all,

I just switched web hosts and they use port 27 for their SSH/RSYNC 
connections.  I dutifully entered port = 27 into my RSYNC section 
(previously there was no port line specified) put the log is reporting that 
it is trying on port 22.

Thoughts?

Cheers, and Happy New Year,
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b20a4a24-ccd7-4775-b4d7-82a3db2ff5d6n%40googlegroups.com.


[weewx-user] Rsync connection to remote server

2021-04-13 Thread Dun Mac
Hi, 
I have established a direct connection to a web server (GreenGeeks) with 
the SSH keys added to the remote server. I can log on to the remote server 
via 
"ssh usern...@170.x.xxx.xx" and it logs on with no passwords. 
When I set weewx.conf,  Rsync to true I get the following error message in 
syslog;

Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weewx.reportengine: Running 
report 'RSYNC'
Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/Rsync/skin.conf for report 'RSYNC'
Apr 14 12:00:36 RPi-weather weewx[29143] DEBUG weeutil.rsyncupload: 
rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e ssh', 
'/var/www/html/weewx/', 
'...@107.x.xxx.xx:/home//weewx/wx_standard_report']]
Apr 14 12:00:39 RPi-weather weewx[29143] ERROR weeutil.rsyncupload: 
[['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/weewx/', 
'...@107.x.1xxx.xx:Permission denied 
(publickey,gssapi-keyex,gssapi-with-mic,password).. rsync: connection 
unexpectedly closexxxd (0 bytes received so far) [sender]. rsync error: 
unexplained error (code 255) /home/xxx/weewx/wx_standard_report']] 
reported errors: ...@107.x.xx.xx: at io.c(235) [sender=3.1.3]
Apr 14 12:00:39 RPi-weather weewx[29143] INFO weeutil.rsyncupload: rsync 
executed in 2.62 seconds

Would someone be kind enough to post their ~/.ssh/config and their 
/etc/ssh/ssh_config and /etc/ssh/sshd_config files so I can see if I have 
an error in one of these files with my setup, please. Any other feedback 
would also be very welcome.
Duncan

-- 
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/66767d0f-e335-4876-8dd3-5dbe6a87ec37n%40googlegroups.com.


Re: [weewx-user] Rsync/FTP uploads skipped

2020-08-28 Thread Philipp
I'm seeing some other strange behaviour. I've now completely disabled all 
other reports except the Belchertown one. Even rsync is disabled. After a 
fresh restart weewx is (succesfully!) running all reports and when the 
second run is about to start I get the message that an existing report is 
still running:

ug 28 19:18:06 raspberrypi systemd[1]: Starting LSB: weewx weather system...
Aug 28 19:18:11 raspberrypi weewx[1204]: INFO __main__: Initializing weewx 
version 4.1.1
Aug 28 19:18:11 raspberrypi weewx[1204]: INFO __main__: Using Python 3.7.3 
(default, Jul 25 2020, 13:03:44) #012[GCC 8.3.0]
Aug 28 19:18:11 raspberrypi weewx[1204]: INFO __main__: Platform 
Linux-5.4.51+-armv6l-with-debian-10.4
Aug 28 19:18:11 raspberrypi weewx[1204]: INFO __main__: Locale is 
'en_US.UTF-8'
Aug 28 19:18:11 raspberrypi weewx[1204]: INFO __main__: PID file is 
/var/run/weewx.pid
Aug 28 19:18:12 raspberrypi weewx[1188]: Starting weewx weather system: 
weewx.
Aug 28 19:18:12 raspberrypi systemd[1]: Started LSB: weewx weather system.
Aug 28 19:18:13 raspberrypi weewx[1225]: INFO __main__: Using configuration 
file /etc/weewx/weewx.conf
Aug 28 19:18:13 raspberrypi weewx[1225]: INFO __main__: Debug is 0
Aug 28 19:18:13 raspberrypi weewx[1225]: INFO weewx.engine: Loading station 
type SDR (user.sdr)
Aug 28 19:18:14 raspberrypi weewx[1225]: INFO user.sdr: driver version is 
0.77
Aug 28 19:18:14 raspberrypi weewx[1225]: INFO user.sdr: sensor map is 
{'extraTemp1': 'temperature.1:185.NexusTemperaturePacket', 'outBatterySt
atus': 'battery.1:185.NexusTemperaturePacket', 'outTemp': 
'temperature.239.Bresser5in1Packet', 'outHumidity': 
'humidity.239.Bresser5in1Packet'
, 'windDir': 'wind_dir.239.Bresser5in1Packet', 'rain_total': 
'rain_total.239.Bresser5in1Packet', 'windSpeed': 
'wind_speed.239.Bresser5in1Packe
t', 'windGust': 'gust_speed.239.Bresser5in1Packet'}
Aug 28 19:18:14 raspberrypi weewx[1225]: INFO user.sdr: deltas is {'rain': 
'rain_total'}
Aug 28 19:18:14 raspberrypi weewx[1225]: INFO user.sdr: startup process 
'rtl_433 -M utc -f 86830 -f 433M -H 60 -F json'
Aug 28 19:18:14 raspberrypi weewx[1225]: INFO weewx.engine: StdConvert 
target unit is 0x1
Aug 28 19:18:15 raspberrypi weewx[1225]: INFO weewx.wxservices: The 
following values will be calculated: pressure=prefer_hardware, altimeter=p
refer_hardware, appTemp=prefer_hardware, barometer=prefer_hardware, 
beaufort=prefer_hardware, cloudbase=prefer_hardware, dewpoint=prefer_hardw
are, ET=prefer_hardware, heatindex=prefer_hardware, 
humidex=prefer_hardware, inDewpoint=prefer_hardware, 
maxSolarRad=prefer_hardware, rainRate
=prefer_hardware, windchill=prefer_hardware, windrun=prefer_hardware
Aug 28 19:18:15 raspberrypi weewx[1225]: INFO weewx.wxservices: The 
following algorithms will be used for calculations: altimeter=aaASOS, maxS
olarRad=RS
Aug 28 19:18:15 raspberrypi weewx[1225]: INFO weewx.engine: Archive will 
use data binding wx_binding
Aug 28 19:18:15 raspberrypi weewx[1225]: INFO weewx.engine: Record 
generation will be attempted in 'hardware'
Aug 28 19:18:15 raspberrypi weewx[1225]: INFO weewx.engine: Using archive 
interval of 300 seconds (specified in weewx configuration)
Aug 28 19:18:17 raspberrypi weewx[1225]: INFO weewx.restx: StationRegistry: 
Registration not requested.
Aug 28 19:18:17 raspberrypi weewx[1225]: INFO weewx.restx: 
Wunderground-PWS: Data for station ICOLOG110 will be posted
Aug 28 19:18:17 raspberrypi weewx[1225]: INFO weewx.restx: PWSweather: 
Posting not enabled.
Aug 28 19:18:17 raspberrypi weewx[1225]: INFO weewx.restx: CWOP: Posting 
not enabled.
Aug 28 19:18:17 raspberrypi weewx[1225]: INFO weewx.restx: WOW: Posting not 
enabled.
Aug 28 19:18:18 raspberrypi weewx[1225]: INFO weewx.restx: AWEKAS: Data 
will be uploaded for user phk
Aug 28 19:18:19 raspberrypi weewx[1225]: INFO user.influx: service version 
is 0.15
Aug 28 19:18:19 raspberrypi weewx[1225]: INFO user.influx: database is 
wetter
Aug 28 19:18:19 raspberrypi weewx[1225]: INFO user.influx: tags None
Aug 28 19:18:19 raspberrypi weewx[1225]: INFO user.influx: binding is 
archive
Aug 28 19:18:19 raspberrypi weewx[1225]: INFO user.influx: Data will be 
uploaded to http://192.168.8.10:8086
Aug 28 19:18:20 raspberrypi weewx[1225]: INFO user.mqtt: service version is 
0.23
Aug 28 19:18:20 raspberrypi weewx[1225]: INFO user.mqtt: binding to 
['archive', 'loop']
Aug 28 19:18:20 raspberrypi weewx[1225]: INFO user.mqtt: topic is 
weathersyslinx
Aug 28 19:18:20 raspberrypi weewx[1225]: INFO user.mqtt: desired unit 
system is METRIC
Aug 28 19:18:20 raspberrypi weewx[1225]: INFO user.mqtt: data will be 
uploaded to mqtt://test.mosquitto.org:1883
Aug 28 19:18:20 raspberrypi weewx[1225]: INFO __main__: Starting up weewx 
version 4.1.1
Aug 28 19:18:20 raspberrypi weewx[1225]: INFO weewx.engine: Using binding 
'wx_binding' to database 'weewx.sdb'
Aug 28 19:18:20 raspberrypi weewx[1225]: INFO weewx.manager: Starting 
backfill of daily summaries
Aug 28 19:18:20 raspberrypi weewx[1225]: INFO weewx.

Re: [weewx-user] Rsync/FTP uploads skipped

2020-08-28 Thread Philipp
Upload speed shouldn't be an issue since I'm transferring inside my local 
network (my webserver is hosted on my NAS).

Just for reference, here's the rsync part of 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 = 192.168.8.10*
*user = phil*
*path = /volume2/web/wetter*
*# 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*

I changed the reporting cycle back to 300 since 600 didn't seem to make a 
difference. Anyway, here's the full log with debug = 1. In this particular 
part, the rsync process didn't start at all.

*Aug 28 14:54:36 raspberrypi systemd[1]: Starting LSB: weewx weather 
system...*
*Aug 28 14:54:39 raspberrypi weewx[5909] INFO __main__: Initializing weewx 
version 4.1.1*
*Aug 28 14:54:39 raspberrypi weewx[5909] INFO __main__: Using Python 3.7.3 
(default, Jul 25 2020, 13:03:44) #012[GCC 8.3.0]*
*Aug 28 14:54:39 raspberrypi weewx[5909] INFO __main__: Platform 
Linux-5.4.51+-armv6l-with-debian-10.4*
*Aug 28 14:54:39 raspberrypi weewx[5909] INFO __main__: Locale is 
'en_US.UTF-8'*
*Aug 28 14:54:39 raspberrypi weewx[5909] INFO __main__: PID file is 
/var/run/weewx.pid*
*Aug 28 14:54:40 raspberrypi weewx[5898]: Starting weewx weather system: 
weewx.*
*Aug 28 14:54:40 raspberrypi systemd[1]: Started LSB: weewx weather system.*
*Aug 28 14:54:40 raspberrypi weewx[5913] INFO __main__: Using configuration 
file /etc/weewx/weewx.conf*
*Aug 28 14:54:40 raspberrypi weewx[5913] INFO __main__: Debug is 0*
*Aug 28 14:54:41 raspberrypi weewx[5913] INFO weewx.engine: Loading station 
type SDR (user.sdr)*
*Aug 28 14:54:41 raspberrypi weewx[5913] INFO user.sdr: driver version is 
0.77*
*Aug 28 14:54:41 raspberrypi weewx[5913] INFO user.sdr: sensor map is 
{'extraTemp1': 'temperature.1:185.NexusTemperaturePacket', 
'outBatteryStatus': 'battery.1:185.NexusTemperaturePacket', 'outTemp': 
'temperature.239.Bresser5in1Packet', 'outHumidity': 
'humidity.239.Bresser5in1Packet', 'windDir': 
'wind_dir.239.Bresser5in1Packet', 'rain_total': 
'rain_total.239.Bresser5in1Packet', 'windSpeed': 
'wind_speed.239.Bresser5in1Packet', 'windGust': 
'gust_speed.239.Bresser5in1Packet'}*
*Aug 28 14:54:41 raspberrypi weewx[5913] INFO user.sdr: deltas is {'rain': 
'rain_total'}*
*Aug 28 14:54:41 raspberrypi weewx[5913] INFO user.sdr: startup process 
'rtl_433 -M utc -f 86830 -f 433M -H 60 -F json'*
*Aug 28 14:54:41 raspberrypi weewx[5913] INFO weewx.engine: StdConvert 
target unit is 0x1*
*Aug 28 14:54:42 raspberrypi weewx[5913] INFO weewx.wxservices: The 
following values will be calculated: pressure=prefer_hardware, 
altimeter=prefer_hardware, appTemp=prefer_hardware, 
barometer=prefer_hardware, beaufort=prefer_hardware, 
cloudbase=prefer_hardware, dewpoint=prefer_hardware, ET=prefer_hardware, 
heatindex=prefer_hardware, humidex=prefer_hardware, 
inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, 
rainRate=prefer_hardware, windchill=prefer_hardware, 
windrun=prefer_hardware*
*Aug 28 14:54:42 raspberrypi weewx[5913] INFO weewx.wxservices: The 
following algorithms will be used for calculations: altimeter=aaASOS, 
maxSolarRad=RS*
*Aug 28 14:54:42 raspberrypi weewx[5913] INFO weewx.engine: Archive will 
use data binding wx_binding*
*Aug 28 14:54:42 raspberrypi weewx[5913] INFO weewx.engine: Record 
generation will be attempted in 'hardware'*
*Aug 28 14:54:42 raspberrypi weewx[5913] INFO weewx.engine: Using archive 
interval of 300 seconds (specified in weewx configuration)*
*Aug 28 14:54:43 raspberrypi weewx[5913] INFO weewx.restx: StationRegistry: 
Registration not requested.*
*Aug 28 14:54:43 raspberrypi weewx[5913] INFO weewx.restx: 
Wunderground-PWS: Data for station ICOLOG110 will be posted*
*Aug 28 14:54:43 raspberrypi weewx[5913] INFO weewx.restx: PWSweather: 
Posting not enabled.*
*Aug 28 14:54:43 raspberrypi weewx[5913] INFO weewx.restx: CWOP: Posting 
not enabled.*
*Aug 28 14:54:43 raspberrypi weewx[5913] INFO weew

Re: [weewx-user] Rsync/FTP uploads skipped

2020-08-28 Thread Tom Keffer
A lot easier to just fix the problem.

But, it's impossible to say what's happening without seeing the logs. Set
debug=1, restart weewx, let it run through the first reporting cycle
(600s). Then post the log from start up.

What sort of upload speed does your internet connection support?

-tk

On Fri, Aug 28, 2020 at 4:24 AM Philipp  wrote:

> Hi everyone,
>
> I have some trouble understanding the inner workings behind the
> loop-mechanism in weewx. Right now I have a archive_interval of 600s. This
> seems long enough for my reports to be generated and they end up fine
> inside the /var/www/html/weewx directory on my Pi.
> What doesn't work though is the transfer to my server, no matter if I
> transfer the files via ftp or rsync. Sometimes the reports get transferred
> to my server within the 600s archive_interval, sometimes weewx seems to
> skip the rsync/ftp-report and the files on my server end up being one or
> two or even more hours old.
> I have done some research on the mailing list archive and I found a thread
> where someone explained that the above problem could be due to rsync
> failing or running for too long. I can't really see why this would be the
> reason for my problems since rsync only runs for about 1-2sec, which in my
> opinion shouldn't cause a problem for the loop.
>
> In other words: How can I make sure that my files get rsynced/ftped
> everytime the loop is run? I have read another thread where someone
> suggested running rsync as a service but I haven't found any examples of
> how to do that. Or are there any other ways to solve that problem?
>
> Thanks in advance!
> Philipp
>
> --
> 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/337d6729-ebf4-4e72-bb16-646ccf6c2141n%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/CAPq0zECsxvTkUCvAqHg_eCW%2BGpQtDrCJJVDQ9nP-Mdk_0vPeaA%40mail.gmail.com.


[weewx-user] Rsync/FTP uploads skipped

2020-08-28 Thread Philipp
Hi everyone,

I have some trouble understanding the inner workings behind the 
loop-mechanism in weewx. Right now I have a archive_interval of 600s. This 
seems long enough for my reports to be generated and they end up fine 
inside the /var/www/html/weewx directory on my Pi. 
What doesn't work though is the transfer to my server, no matter if I 
transfer the files via ftp or rsync. Sometimes the reports get transferred 
to my server within the 600s archive_interval, sometimes weewx seems to 
skip the rsync/ftp-report and the files on my server end up being one or 
two or even more hours old.
I have done some research on the mailing list archive and I found a thread 
where someone explained that the above problem could be due to rsync 
failing or running for too long. I can't really see why this would be the 
reason for my problems since rsync only runs for about 1-2sec, which in my 
opinion shouldn't cause a problem for the loop.

In other words: How can I make sure that my files get rsynced/ftped 
everytime the loop is run? I have read another thread where someone 
suggested running rsync as a service but I haven't found any examples of 
how to do that. Or are there any other ways to solve that problem?

Thanks in advance!
Philipp

-- 
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/337d6729-ebf4-4e72-bb16-646ccf6c2141n%40googlegroups.com.


Re: [weewx-user] Rsync issue

2020-06-15 Thread Ossian
Awesome, thanks so much for being so patient and providing crystal clear 
instrustions. I believe I was 99% there, but had not reset the permissions 
on roots ssh folder.
In the meantime I have found that following the instructions for systemd to 
https://github.com/weewx/weewx/wiki/systemd
with a bit of additional permsission changing got me running weewx as a non 
root user, then the next part of creating the ssh keys and ssh-copy-id etc 
was very easy and it just worked.
I have been doing this on a test virtual machine to make sure all is good 
before I touch the live system.
Thanks again!
Oz


On Sunday, 14 June 2020 19:59:37 UTC+2, mwall wrote:
>
> On Sunday, June 14, 2020 at 12:18:28 PM UTC-4, Ossian wrote:
>>
>> I am having a similar issue. I keep seeing mention of the need or 
>> possibility to provide correct keys etc for root to use, but have not found 
>> anything concrete to go on.
>>
>
> there are many ways to do this, for example, one approach is with 
> command-line arguments, while another approach is to use the ssh config 
> file.
>
> lets say that you connect to the server 'server.example.com' via rsync as 
> the user 'weewx' using the credentials in these files:
>
> /home/pi/.ssh/id_rsa_weewx
> /home/pi/.ssh/id_rsa_weewx.pub
>
> lets say that you are running weewx as the the user 'root', whose home 
> directory is /root
>
> 1) ensure that root has an ssh directory
>
> sudo mkdir -p /root/.ssh
>
> 2) copy the credential files into root's ssh space
>
> sudo cp /home/pi/.ssh/id_rsa_weewx /root/.ssh
> sudo cp /home/pi/.ssh/id_rsa_weewx.pub /root/.ssh
>
> 3) create the ssh configuration file /home/root/.ssh/config with these 
> contents:
>
> Host server.example.com
> User weewx  # this is the username used to connect to the server
> IdentityFile /home/root/.ssh/id_rsa_weewx  # credentials used to 
> connect to the server
>
> 4) finally, ensure that permissions are correct:
>
> sudo chown root.root /home/root/.ssh
> sudo chmod 700 /home/root/.ssh
> sudo chmod 600 /home/root/.ssh/config
> sudo chmod 600 /home/root/.ssh/id_rsa*
>
> now when the user 'root' attempts a connection to server.example.com, it 
> will use the correct credentials, no matter how ssh, scp, or rsync is 
> invoked
>
> if you run weewx as some other, user say 'pi' or 'weewx', then put the 
> files into that user's .ssh directory instead of root's .ssh directory.
>
> m
>

-- 
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/b9596ca1-8b6c-4c1c-84f8-3284993b6974o%40googlegroups.com.


Re: [weewx-user] Rsync issue

2020-06-14 Thread mwall
On Sunday, June 14, 2020 at 12:18:28 PM UTC-4, Ossian wrote:
>
> I am having a similar issue. I keep seeing mention of the need or 
> possibility to provide correct keys etc for root to use, but have not found 
> anything concrete to go on.
>

there are many ways to do this, for example, one approach is with 
command-line arguments, while another approach is to use the ssh config 
file.

lets say that you connect to the server 'server.example.com' via rsync as 
the user 'weewx' using the credentials in these files:

/home/pi/.ssh/id_rsa_weewx
/home/pi/.ssh/id_rsa_weewx.pub

lets say that you are running weewx as the the user 'root', whose home 
directory is /root

1) ensure that root has an ssh directory

sudo mkdir -p /root/.ssh

2) copy the credential files into root's ssh space

sudo cp /home/pi/.ssh/id_rsa_weewx /root/.ssh
sudo cp /home/pi/.ssh/id_rsa_weewx.pub /root/.ssh

3) create the ssh configuration file /home/root/.ssh/config with these 
contents:

Host server.example.com
User weewx  # this is the username used to connect to the server
IdentityFile /home/root/.ssh/id_rsa_weewx  # credentials used to 
connect to the server

4) finally, ensure that permissions are correct:

sudo chown root.root /home/root/.ssh
sudo chmod 700 /home/root/.ssh
sudo chmod 600 /home/root/.ssh/config
sudo chmod 600 /home/root/.ssh/id_rsa*

now when the user 'root' attempts a connection to server.example.com, it 
will use the correct credentials, no matter how ssh, scp, or rsync is 
invoked

if you run weewx as some other, user say 'pi' or 'weewx', then put the 
files into that user's .ssh directory instead of root's .ssh directory.

m

-- 
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/9870cfe2-bc51-4e1d-aba1-faa8ba2fd752o%40googlegroups.com.


Re: [weewx-user] Rsync issue

2020-06-14 Thread Ossian
Hi All,

I am having a similar issue. I keep seeing mention of the need or 
possibility to provide correct keys etc for root to use, but have not found 
anything concrete to go on.

default installation of weewx:
weewx running as root (ps aux) shows this root   17898  0.3  1.0 
123032 40900 ?S15:41   0:01 python3 /usr/share/weewx/weewxd 
--daemo

ssh passwordless works perfectly for my user

i have tried by coping id_rsa to /root/.ssh
i have modified /etc/ssh/ssh_conf to point to /home/me/.ssh/id_rsa
i copied id_rsa to /etc/ssh
i pointed /etc/ssh/ssh_conf to use /etc/ssh/id_rsa
i even tried to paste id_rsa.pub contents to /root/.ssh/authorized_keys

im going mad. I keep seeing it stated that it is possible to tell root to 
use other keys, but so far no joy.
i have searched and searched, 

Running on Ubuntu 20.4 server, local and target

Jun 14 15:56:16 local weewx[17898] DEBUG weeutil.rsyncupload: rsyncupload: 
cmd: [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/weewx/', 
'user@192.168.0.252:var/www/html/weather']]
Jun 14 15:56:16 local weewx[17898] ERROR weeutil.rsyncupload: [['rsync', 
'--archive', '--stats', '-e ssh', '/var/www/html/weewx/', 
'user@192.168.0.252:var/www/html/weather']] reported errors: Host key 
verification failed.. rsync: connection unexpectedly closed (0 bytes 
received so far) [sender]. rsync error: error in rsync protocol data stream 
(code 12) at io.c(235) [sender=3.1.3]
Jun 14 15:56:16 local weewx[17898] INFO weeutil.rsyncupload: rsync executed 
in 0.03 seconds

[[RSYNC]]
skin = Rsync
enable = true
server = 192.168.0.252
user = user
path = /var/www/html/weather/

I have changed the username and server name to user and local for this post

I can create content in the target folder using that user


any help very gratefully received, Thanks!





On Friday, 29 May 2020 00:47:30 UTC+2, Tom Keffer wrote:
>
> That's basically what I do. The process weewxd gets run as user 'weewx', 
> with the .ssh subdirectory in its home directory. See the wiki article *Run 
> as a non-root user 
> *.
>
> But, you can do it as root. Just make sure the proper credentials are in 
> the home directory for root.
>
> -tk
>
> On Thu, May 28, 2020 at 3:16 PM Benjamin Trey Blue  > wrote:
>
>> Hey Tom,
>>
>> I haven't made any changes to the user account that weewx uses by default 
>> - I had assumed from my reading that it defaults to root. The only two 
>> non-system accounts on the RPi are root and pi.
>>
>> Sudo wee_reports works from the terminal though, so there has to be some 
>> discrepancy with my assumptions, but I'm too Linux-dumb to have figured it 
>> out yet and I'm not really sure how to go about even troubleshooting it 
>> further. 
>>
>> Should I maybe consider setting-up weewx to run as a non-root user and 
>> then reconfigure the passwordless SSH, assuming I can get that bit restored 
>> to a blank slate?
>>
>> Thank you,
>> Trey
>>
>> On Thursday, May 28, 2020 at 3:58:49 PM UTC-4, Tom Keffer wrote:
>>>
>>> Are you running wee_reports as the same user as weewxd? Perhaps the 
>>> latter does not have access to the keys?
>>>
>>> On Thu, May 28, 2020 at 10:01 AM Benjamin Trey Blue  
>>> wrote:
>>>
 Ahhh, got it - thank you. Added it there and I can see it being passed, 
 but the result is the same:


 May 28 12:51:17 raspberrypi weewx[10689] ERROR weeutil.rsyncupload: 
> [['rsync', '--archive', '--stats', '-e ssh -o IdentitiesOnly=yes', 
> '/var/www/html/', 'u...@mydomain.com:/home4/USER/public_html']] reported 
> errors: Permission denied, please try again.. Received disconnect from 
> XX.XX.XX.XX port 22:2: Too many authentication failures for USER. 
> Disconnected from XX.XX.XX.XX port 22. rsync: connection unexpectedly 
> closed (0 bytes received so far) [sender]. rsync error: unexplained error 
> (code 255) at io.c(235) [sender=3.1.3]


 Manually invoked with sudo wee_reports again and it worked:

 May 28 12:57:23 raspberrypi wee_reports[10914] INFO 
> weeutil.rsyncupload: rsync'd 112 files (1,461,848 bytes) in 7.24 seconds 


  

 On Thursday, May 28, 2020 at 12:43:45 PM UTC-4, John Kline wrote:
>
> Oops, I meant the [[RSYNC]] section.
>
> [[RSYNC]]
> ssh_options = -o IdentitiesOnly=yes
>
> [[SSH]]
>> ssh_options = -o IdentitiesOnly=yes
>>
>
> On May 28, 2020, at 8:56 AM, Benjamin Trey Blue  
> wrote:
>
> 
> Thanks for the reply - I do not see a section for [[SSH]] in my 
> weewx.conf - do I nest that under the same [StdReport] section where 
> [[RSYNC]] is found? I pasted it just below the end of [[RSYNC]] but can't 
> see where the option was passed along:
>
> May 28 11:45:58 raspberrypi weewx[8853] ERROR weeutil.rsyncupload: 
>> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/

[weewx-user] RSYNC

2020-06-10 Thread gjr80
Hi,

By default the WeeWX daemon runs as root, so unless you have changed this root 
needs passwordless ssh access to the server to which you wish to sync your 
files. Did you give root passwordless ssh access or was it some other account? 
If this is the problem you have two choices; either change WeeWX to run as the 
user you have given passwordless ssh access or keep WeeWX running as root and 
give root passwordless ssh access.

The wiki article ‘Run WeeWX as a non-root user’ 
(https://github.com/weewx/weewx/wiki/Run-as-a-non-root-user) provides 
instructions on how to run WeeWX as a user other than root.

Gary

-- 
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/aa4a1030-9112-441e-b981-62baf5b615d2o%40googlegroups.com.


[weewx-user] RSYNC

2020-06-10 Thread Jose
Hi


I want to send copy from raspberrypi to a remote server with rsync to 
update my website with last changes.
I have verified that I can connect via ssh passwordless using public and 
private keys with no problem to server (ssh user@server)
The problem comes when I try to do the same with rsync; an error message 
says that the remote host cannot be authenticated and connection fails.
I have modified the / etc / ssh / ssh_config file adding the Host, User and 
Identityfile (path to .ssh keys) but nothing changes. 

What can I do?

-- 
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/8813726f-e7d3-47db-8395-5ea673278485o%40googlegroups.com.


Re: [weewx-user] Rsync issue

2020-05-29 Thread Benjamin Trey Blue
Thank you, Tom - I decided to clean-up all the SSH configs on the webhost's 
server and my RPi and then worked back through the process - it's working 
now!


On Thursday, May 28, 2020 at 6:47:30 PM UTC-4, Tom Keffer wrote:
>
> That's basically what I do. The process weewxd gets run as user 'weewx', 
> with the .ssh subdirectory in its home directory. See the wiki article *Run 
> as a non-root user 
> *.
>
> But, you can do it as root. Just make sure the proper credentials are in 
> the home directory for root.
>
> -tk
>
> On Thu, May 28, 2020 at 3:16 PM Benjamin Trey Blue  > wrote:
>
>> Hey Tom,
>>
>> I haven't made any changes to the user account that weewx uses by default 
>> - I had assumed from my reading that it defaults to root. The only two 
>> non-system accounts on the RPi are root and pi.
>>
>> Sudo wee_reports works from the terminal though, so there has to be some 
>> discrepancy with my assumptions, but I'm too Linux-dumb to have figured it 
>> out yet and I'm not really sure how to go about even troubleshooting it 
>> further. 
>>
>> Should I maybe consider setting-up weewx to run as a non-root user and 
>> then reconfigure the passwordless SSH, assuming I can get that bit restored 
>> to a blank slate?
>>
>> Thank you,
>> Trey
>>
>> On Thursday, May 28, 2020 at 3:58:49 PM UTC-4, Tom Keffer wrote:
>>>
>>> Are you running wee_reports as the same user as weewxd? Perhaps the 
>>> latter does not have access to the keys?
>>>
>>> On Thu, May 28, 2020 at 10:01 AM Benjamin Trey Blue  
>>> wrote:
>>>
 Ahhh, got it - thank you. Added it there and I can see it being passed, 
 but the result is the same:


 May 28 12:51:17 raspberrypi weewx[10689] ERROR weeutil.rsyncupload: 
> [['rsync', '--archive', '--stats', '-e ssh -o IdentitiesOnly=yes', 
> '/var/www/html/', 'u...@mydomain.com:/home4/USER/public_html']] reported 
> errors: Permission denied, please try again.. Received disconnect from 
> XX.XX.XX.XX port 22:2: Too many authentication failures for USER. 
> Disconnected from XX.XX.XX.XX port 22. rsync: connection unexpectedly 
> closed (0 bytes received so far) [sender]. rsync error: unexplained error 
> (code 255) at io.c(235) [sender=3.1.3]


 Manually invoked with sudo wee_reports again and it worked:

 May 28 12:57:23 raspberrypi wee_reports[10914] INFO 
> weeutil.rsyncupload: rsync'd 112 files (1,461,848 bytes) in 7.24 seconds 


  

 On Thursday, May 28, 2020 at 12:43:45 PM UTC-4, John Kline wrote:
>
> Oops, I meant the [[RSYNC]] section.
>
> [[RSYNC]]
> ssh_options = -o IdentitiesOnly=yes
>
> [[SSH]]
>> ssh_options = -o IdentitiesOnly=yes
>>
>
> On May 28, 2020, at 8:56 AM, Benjamin Trey Blue  
> wrote:
>
> 
> Thanks for the reply - I do not see a section for [[SSH]] in my 
> weewx.conf - do I nest that under the same [StdReport] section where 
> [[RSYNC]] is found? I pasted it just below the end of [[RSYNC]] but can't 
> see where the option was passed along:
>
> May 28 11:45:58 raspberrypi weewx[8853] ERROR weeutil.rsyncupload: 
>> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/', 
>> 'u...@mydomain.com:/home4/USER/public_html']] reported errors: 
>> Permission 
>> denied, please try again.. Received disconnect from XX.XX.XX.XX port 
>> 22:2: 
>> Too many authentication failures for USER. Disconnected from XX.XX.XX.XX 
>> port 22. rsync: connection unexpectedly closed (0 bytes received so far) 
>> [sender]. rsync error: unexplained error (code 255) at io.c(235) 
>> [sender=3.1.3]
>>
>
>
>
> On Thursday, May 28, 2020 at 11:36:26 AM UTC-4, John Kline wrote:
>>
>> Sorry, didn’t mean to send that yet:
>>
>> Should read:
>>
>> Does it work if you add the following to the SSH configuration in 
>> weewx.conf?
>>
>> [[SSH]]
>> ssh_options = -o IdentitiesOnly=yes
>>
>> On May 28, 2020, at 8:34 AM, John Kline  wrote:
>>
>> 
>> Does it work if you add:
>>
>> [[SSH]]
>> ssh_options = -o IdentitiesOnly=yes
>>
>>
>> -o IdentitiesOnly=yes
>>
>>
>> On May 28, 2020, at 8:28 AM, Benjamin Trey Blue  
>> wrote:
>>
>> Too many authentication failures for
>>
>> -- 
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/76ef08ae-203e-4caf-9cfa-616faa16be67%40googlegroups.com
>  
> 

Re: [weewx-user] Rsync issue

2020-05-28 Thread vince
On Thursday, May 28, 2020 at 3:16:04 PM UTC-7, Benjamin Trey Blue wrote:
>
> ...but I'm too Linux-dumb to have figured it out yet and I'm not really 
> sure how to go about even troubleshooting it further. 
>
> Should I maybe consider setting-up weewx to run as a non-root user and 
> then reconfigure the passwordless SSH, assuming I can get that bit restored 
> to a blank slate?
>

If you consider yourself "Linux-dumb" then perhaps you might want to just 
run the defaults.   Just make sure root's .ssh directory has the right 
setup for rsync to be able to log into the remote computer. 

-- 
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/e0e64d17-f073-49b5-b4d1-91178e3aa8ea%40googlegroups.com.


Re: [weewx-user] Rsync issue

2020-05-28 Thread Tom Keffer
That's basically what I do. The process weewxd gets run as user 'weewx',
with the .ssh subdirectory in its home directory. See the wiki article *Run
as a non-root user
*.

But, you can do it as root. Just make sure the proper credentials are in
the home directory for root.

-tk

On Thu, May 28, 2020 at 3:16 PM Benjamin Trey Blue 
wrote:

> Hey Tom,
>
> I haven't made any changes to the user account that weewx uses by default
> - I had assumed from my reading that it defaults to root. The only two
> non-system accounts on the RPi are root and pi.
>
> Sudo wee_reports works from the terminal though, so there has to be some
> discrepancy with my assumptions, but I'm too Linux-dumb to have figured it
> out yet and I'm not really sure how to go about even troubleshooting it
> further.
>
> Should I maybe consider setting-up weewx to run as a non-root user and
> then reconfigure the passwordless SSH, assuming I can get that bit restored
> to a blank slate?
>
> Thank you,
> Trey
>
> On Thursday, May 28, 2020 at 3:58:49 PM UTC-4, Tom Keffer wrote:
>>
>> Are you running wee_reports as the same user as weewxd? Perhaps the
>> latter does not have access to the keys?
>>
>> On Thu, May 28, 2020 at 10:01 AM Benjamin Trey Blue 
>> wrote:
>>
>>> Ahhh, got it - thank you. Added it there and I can see it being passed,
>>> but the result is the same:
>>>
>>>
>>> May 28 12:51:17 raspberrypi weewx[10689] ERROR weeutil.rsyncupload:
 [['rsync', '--archive', '--stats', '-e ssh -o IdentitiesOnly=yes',
 '/var/www/html/', 'u...@mydomain.com:/home4/USER/public_html']]
 reported errors: Permission denied, please try again.. Received disconnect
 from XX.XX.XX.XX port 22:2: Too many authentication failures for USER.
 Disconnected from XX.XX.XX.XX port 22. rsync: connection unexpectedly
 closed (0 bytes received so far) [sender]. rsync error: unexplained error
 (code 255) at io.c(235) [sender=3.1.3]
>>>
>>>
>>> Manually invoked with sudo wee_reports again and it worked:
>>>
>>> May 28 12:57:23 raspberrypi wee_reports[10914] INFO weeutil.rsyncupload:
 rsync'd 112 files (1,461,848 bytes) in 7.24 seconds
>>>
>>>
>>>
>>>
>>> On Thursday, May 28, 2020 at 12:43:45 PM UTC-4, John Kline wrote:

 Oops, I meant the [[RSYNC]] section.

 [[RSYNC]]
 ssh_options = -o IdentitiesOnly=yes

 [[SSH]]
> ssh_options = -o IdentitiesOnly=yes
>

 On May 28, 2020, at 8:56 AM, Benjamin Trey Blue 
 wrote:

 
 Thanks for the reply - I do not see a section for [[SSH]] in my
 weewx.conf - do I nest that under the same [StdReport] section where
 [[RSYNC]] is found? I pasted it just below the end of [[RSYNC]] but can't
 see where the option was passed along:

 May 28 11:45:58 raspberrypi weewx[8853] ERROR weeutil.rsyncupload:
> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/',
> 'u...@mydomain.com:/home4/USER/public_html']] reported errors:
> Permission denied, please try again.. Received disconnect from XX.XX.XX.XX
> port 22:2: Too many authentication failures for USER. Disconnected from
> XX.XX.XX.XX port 22. rsync: connection unexpectedly closed (0 bytes
> received so far) [sender]. rsync error: unexplained error (code 255) at
> io.c(235) [sender=3.1.3]
>



 On Thursday, May 28, 2020 at 11:36:26 AM UTC-4, John Kline wrote:
>
> Sorry, didn’t mean to send that yet:
>
> Should read:
>
> Does it work if you add the following to the SSH configuration in
> weewx.conf?
>
> [[SSH]]
> ssh_options = -o IdentitiesOnly=yes
>
> On May 28, 2020, at 8:34 AM, John Kline  wrote:
>
> 
> Does it work if you add:
>
> [[SSH]]
> ssh_options = -o IdentitiesOnly=yes
>
>
> -o IdentitiesOnly=yes
>
>
> On May 28, 2020, at 8:28 AM, Benjamin Trey Blue 
> wrote:
>
> Too many authentication failures for
>
> --
 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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/weewx-user/76ef08ae-203e-4caf-9cfa-616faa16be67%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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/215768b7-1c70-447b-9f14-013db031ee89%40googlegroups.com
>>> 

Re: [weewx-user] Rsync issue

2020-05-28 Thread Benjamin Trey Blue
Hey Tom,

I haven't made any changes to the user account that weewx uses by default - 
I had assumed from my reading that it defaults to root. The only two 
non-system accounts on the RPi are root and pi.

Sudo wee_reports works from the terminal though, so there has to be some 
discrepancy with my assumptions, but I'm too Linux-dumb to have figured it 
out yet and I'm not really sure how to go about even troubleshooting it 
further. 

Should I maybe consider setting-up weewx to run as a non-root user and then 
reconfigure the passwordless SSH, assuming I can get that bit restored to a 
blank slate?

Thank you,
Trey

On Thursday, May 28, 2020 at 3:58:49 PM UTC-4, Tom Keffer wrote:
>
> Are you running wee_reports as the same user as weewxd? Perhaps the latter 
> does not have access to the keys?
>
> On Thu, May 28, 2020 at 10:01 AM Benjamin Trey Blue  > wrote:
>
>> Ahhh, got it - thank you. Added it there and I can see it being passed, 
>> but the result is the same:
>>
>>
>> May 28 12:51:17 raspberrypi weewx[10689] ERROR weeutil.rsyncupload: 
>>> [['rsync', '--archive', '--stats', '-e ssh -o IdentitiesOnly=yes', 
>>> '/var/www/html/', 'u...@mydomain.com:/home4/USER/public_html']] reported 
>>> errors: Permission denied, please try again.. Received disconnect from 
>>> XX.XX.XX.XX port 22:2: Too many authentication failures for USER. 
>>> Disconnected from XX.XX.XX.XX port 22. rsync: connection unexpectedly 
>>> closed (0 bytes received so far) [sender]. rsync error: unexplained error 
>>> (code 255) at io.c(235) [sender=3.1.3]
>>
>>
>> Manually invoked with sudo wee_reports again and it worked:
>>
>> May 28 12:57:23 raspberrypi wee_reports[10914] INFO weeutil.rsyncupload: 
>>> rsync'd 112 files (1,461,848 bytes) in 7.24 seconds 
>>
>>
>>  
>>
>> On Thursday, May 28, 2020 at 12:43:45 PM UTC-4, John Kline wrote:
>>>
>>> Oops, I meant the [[RSYNC]] section.
>>>
>>> [[RSYNC]]
>>> ssh_options = -o IdentitiesOnly=yes
>>>
>>> [[SSH]]
 ssh_options = -o IdentitiesOnly=yes

>>>
>>> On May 28, 2020, at 8:56 AM, Benjamin Trey Blue  
>>> wrote:
>>>
>>> 
>>> Thanks for the reply - I do not see a section for [[SSH]] in my 
>>> weewx.conf - do I nest that under the same [StdReport] section where 
>>> [[RSYNC]] is found? I pasted it just below the end of [[RSYNC]] but can't 
>>> see where the option was passed along:
>>>
>>> May 28 11:45:58 raspberrypi weewx[8853] ERROR weeutil.rsyncupload: 
 [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/', 
 'u...@mydomain.com:/home4/USER/public_html']] reported errors: Permission 
 denied, please try again.. Received disconnect from XX.XX.XX.XX port 22:2: 
 Too many authentication failures for USER. Disconnected from XX.XX.XX.XX 
 port 22. rsync: connection unexpectedly closed (0 bytes received so far) 
 [sender]. rsync error: unexplained error (code 255) at io.c(235) 
 [sender=3.1.3]

>>>
>>>
>>>
>>> On Thursday, May 28, 2020 at 11:36:26 AM UTC-4, John Kline wrote:

 Sorry, didn’t mean to send that yet:

 Should read:

 Does it work if you add the following to the SSH configuration in 
 weewx.conf?

 [[SSH]]
 ssh_options = -o IdentitiesOnly=yes

 On May 28, 2020, at 8:34 AM, John Kline  wrote:

 
 Does it work if you add:

 [[SSH]]
 ssh_options = -o IdentitiesOnly=yes


 -o IdentitiesOnly=yes


 On May 28, 2020, at 8:28 AM, Benjamin Trey Blue  
 wrote:

 Too many authentication failures for

 -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/76ef08ae-203e-4caf-9cfa-616faa16be67%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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/215768b7-1c70-447b-9f14-013db031ee89%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/cffaa2cc-5041-4a9c-9120-4e0cb7a2b335%40googlegroups.com.


Re: [weewx-user] Rsync issue

2020-05-28 Thread Benjamin Trey Blue
Thanks for the effort, anyway, John!

On Thursday, May 28, 2020 at 2:33:11 PM UTC-4, John Kline wrote:
>
> That’s too bad.  I believe you are getting this error because it is trying 
> too many SSH keys.  IdentitiesOnly should have fixed that.
>
> On May 28, 2020, at 10:01 AM, Benjamin Trey Blue  > wrote:
>
> 
> Ahhh, got it - thank you. Added it there and I can see it being passed, 
> but the result is the same:
>
>
> May 28 12:51:17 raspberrypi weewx[10689] ERROR weeutil.rsyncupload: 
>> [['rsync', '--archive', '--stats', '-e ssh -o IdentitiesOnly=yes', 
>> '/var/www/html/', 'u...@mydomain.com:/home4/USER/public_html']] reported 
>> errors: Permission denied, please try again.. Received disconnect from 
>> XX.XX.XX.XX port 22:2: Too many authentication failures for USER. 
>> Disconnected from XX.XX.XX.XX port 22. rsync: connection unexpectedly 
>> closed (0 bytes received so far) [sender]. rsync error: unexplained error 
>> (code 255) at io.c(235) [sender=3.1.3]
>
>
> Manually invoked with sudo wee_reports again and it worked:
>
> May 28 12:57:23 raspberrypi wee_reports[10914] INFO weeutil.rsyncupload: 
>> rsync'd 112 files (1,461,848 bytes) in 7.24 seconds 
>
>
>  
>
> On Thursday, May 28, 2020 at 12:43:45 PM UTC-4, John Kline wrote:
>>
>> Oops, I meant the [[RSYNC]] section.
>>
>> [[RSYNC]]
>> ssh_options = -o IdentitiesOnly=yes
>>
>> [[SSH]]
>>> ssh_options = -o IdentitiesOnly=yes
>>>
>>
>> On May 28, 2020, at 8:56 AM, Benjamin Trey Blue  
>> wrote:
>>
>> 
>> Thanks for the reply - I do not see a section for [[SSH]] in my 
>> weewx.conf - do I nest that under the same [StdReport] section where 
>> [[RSYNC]] is found? I pasted it just below the end of [[RSYNC]] but can't 
>> see where the option was passed along:
>>
>> May 28 11:45:58 raspberrypi weewx[8853] ERROR weeutil.rsyncupload: 
>>> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/', 
>>> 'u...@mydomain.com:/home4/USER/public_html']] reported errors: Permission 
>>> denied, please try again.. Received disconnect from XX.XX.XX.XX port 22:2: 
>>> Too many authentication failures for USER. Disconnected from XX.XX.XX.XX 
>>> port 22. rsync: connection unexpectedly closed (0 bytes received so far) 
>>> [sender]. rsync error: unexplained error (code 255) at io.c(235) 
>>> [sender=3.1.3]
>>>
>>
>>
>>
>> On Thursday, May 28, 2020 at 11:36:26 AM UTC-4, John Kline wrote:
>>>
>>> Sorry, didn’t mean to send that yet:
>>>
>>> Should read:
>>>
>>> Does it work if you add the following to the SSH configuration in 
>>> weewx.conf?
>>>
>>> [[SSH]]
>>> ssh_options = -o IdentitiesOnly=yes
>>>
>>> On May 28, 2020, at 8:34 AM, John Kline  wrote:
>>>
>>> 
>>> Does it work if you add:
>>>
>>> [[SSH]]
>>> ssh_options = -o IdentitiesOnly=yes
>>>
>>>
>>> -o IdentitiesOnly=yes
>>>
>>>
>>> On May 28, 2020, at 8:28 AM, Benjamin Trey Blue  
>>> wrote:
>>>
>>> Too many authentication failures for
>>>
>>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/76ef08ae-203e-4caf-9cfa-616faa16be67%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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/215768b7-1c70-447b-9f14-013db031ee89%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/8ffbc7ba-bba5-4a63-a485-ca3d1e837ab3%40googlegroups.com.


Re: [weewx-user] Rsync issue

2020-05-28 Thread Tom Keffer
Are you running wee_reports as the same user as weewxd? Perhaps the latter
does not have access to the keys?

On Thu, May 28, 2020 at 10:01 AM Benjamin Trey Blue 
wrote:

> Ahhh, got it - thank you. Added it there and I can see it being passed,
> but the result is the same:
>
>
> May 28 12:51:17 raspberrypi weewx[10689] ERROR weeutil.rsyncupload:
>> [['rsync', '--archive', '--stats', '-e ssh -o IdentitiesOnly=yes',
>> '/var/www/html/', 'u...@mydomain.com:/home4/USER/public_html']] reported
>> errors: Permission denied, please try again.. Received disconnect from
>> XX.XX.XX.XX port 22:2: Too many authentication failures for USER.
>> Disconnected from XX.XX.XX.XX port 22. rsync: connection unexpectedly
>> closed (0 bytes received so far) [sender]. rsync error: unexplained error
>> (code 255) at io.c(235) [sender=3.1.3]
>
>
> Manually invoked with sudo wee_reports again and it worked:
>
> May 28 12:57:23 raspberrypi wee_reports[10914] INFO weeutil.rsyncupload:
>> rsync'd 112 files (1,461,848 bytes) in 7.24 seconds
>
>
>
>
> On Thursday, May 28, 2020 at 12:43:45 PM UTC-4, John Kline wrote:
>>
>> Oops, I meant the [[RSYNC]] section.
>>
>> [[RSYNC]]
>> ssh_options = -o IdentitiesOnly=yes
>>
>> [[SSH]]
>>> ssh_options = -o IdentitiesOnly=yes
>>>
>>
>> On May 28, 2020, at 8:56 AM, Benjamin Trey Blue 
>> wrote:
>>
>> 
>> Thanks for the reply - I do not see a section for [[SSH]] in my
>> weewx.conf - do I nest that under the same [StdReport] section where
>> [[RSYNC]] is found? I pasted it just below the end of [[RSYNC]] but can't
>> see where the option was passed along:
>>
>> May 28 11:45:58 raspberrypi weewx[8853] ERROR weeutil.rsyncupload:
>>> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/',
>>> 'u...@mydomain.com:/home4/USER/public_html']] reported errors:
>>> Permission denied, please try again.. Received disconnect from XX.XX.XX.XX
>>> port 22:2: Too many authentication failures for USER. Disconnected from
>>> XX.XX.XX.XX port 22. rsync: connection unexpectedly closed (0 bytes
>>> received so far) [sender]. rsync error: unexplained error (code 255) at
>>> io.c(235) [sender=3.1.3]
>>>
>>
>>
>>
>> On Thursday, May 28, 2020 at 11:36:26 AM UTC-4, John Kline wrote:
>>>
>>> Sorry, didn’t mean to send that yet:
>>>
>>> Should read:
>>>
>>> Does it work if you add the following to the SSH configuration in
>>> weewx.conf?
>>>
>>> [[SSH]]
>>> ssh_options = -o IdentitiesOnly=yes
>>>
>>> On May 28, 2020, at 8:34 AM, John Kline  wrote:
>>>
>>> 
>>> Does it work if you add:
>>>
>>> [[SSH]]
>>> ssh_options = -o IdentitiesOnly=yes
>>>
>>>
>>> -o IdentitiesOnly=yes
>>>
>>>
>>> On May 28, 2020, at 8:28 AM, Benjamin Trey Blue 
>>> wrote:
>>>
>>> Too many authentication failures for
>>>
>>> --
>> 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...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/76ef08ae-203e-4caf-9cfa-616faa16be67%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/215768b7-1c70-447b-9f14-013db031ee89%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/CAPq0zEBq0uKbx87TfEy7ojpjZmjKBv8RNr4-RLxX8GRJEvCTWA%40mail.gmail.com.


Re: [weewx-user] Rsync issue

2020-05-28 Thread John Kline
That’s too bad.  I believe you are getting this error because it is trying too 
many SSH keys.  IdentitiesOnly should have fixed that.

>> On May 28, 2020, at 10:01 AM, Benjamin Trey Blue  
>> wrote:
> 
> Ahhh, got it - thank you. Added it there and I can see it being passed, but 
> the result is the same:
> 
> 
>> May 28 12:51:17 raspberrypi weewx[10689] ERROR weeutil.rsyncupload: 
>> [['rsync', '--archive', '--stats', '-e ssh -o IdentitiesOnly=yes', 
>> '/var/www/html/', 'u...@mydomain.com:/home4/USER/public_html']] reported 
>> errors: Permission denied, please try again.. Received disconnect from 
>> XX.XX.XX.XX port 22:2: Too many authentication failures for USER. 
>> Disconnected from XX.XX.XX.XX port 22. rsync: connection unexpectedly closed 
>> (0 bytes received so far) [sender]. rsync error: unexplained error (code 
>> 255) at io.c(235) [sender=3.1.3]
> 
> Manually invoked with sudo wee_reports again and it worked:
> 
>> May 28 12:57:23 raspberrypi wee_reports[10914] INFO weeutil.rsyncupload: 
>> rsync'd 112 files (1,461,848 bytes) in 7.24 seconds 
> 
>  
> 
>> On Thursday, May 28, 2020 at 12:43:45 PM UTC-4, John Kline wrote:
>> Oops, I meant the [[RSYNC]] section.
>> 
>> [[RSYNC]]
>> ssh_options = -o IdentitiesOnly=yes
>> 
 [[SSH]]
 ssh_options = -o IdentitiesOnly=yes
>> 
>> 
 On May 28, 2020, at 8:56 AM, Benjamin Trey Blue  wrote:
>>> 
>>> Thanks for the reply - I do not see a section for [[SSH]] in my weewx.conf 
>>> - do I nest that under the same [StdReport] section where [[RSYNC]] is 
>>> found? I pasted it just below the end of [[RSYNC]] but can't see where the 
>>> option was passed along:
>>> 
 May 28 11:45:58 raspberrypi weewx[8853] ERROR weeutil.rsyncupload: 
 [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/', 
 'u...@mydomain.com:/home4/USER/public_html']] reported errors: Permission 
 denied, please try again.. Received disconnect from XX.XX.XX.XX port 22:2: 
 Too many authentication failures for USER. Disconnected from XX.XX.XX.XX 
 port 22. rsync: connection unexpectedly closed (0 bytes received so far) 
 [sender]. rsync error: unexplained error (code 255) at io.c(235) 
 [sender=3.1.3]
>>> 
>>> 
>>> 
 On Thursday, May 28, 2020 at 11:36:26 AM UTC-4, John Kline wrote:
 Sorry, didn’t mean to send that yet:
 
 Should read:
 
 Does it work if you add the following to the SSH configuration in 
 weewx.conf?
 
 [[SSH]]
 ssh_options = -o IdentitiesOnly=yes
 
>> On May 28, 2020, at 8:34 AM, John Kline  wrote:
> 
> Does it work if you add:
> 
> [[SSH]]
> ssh_options = -o IdentitiesOnly=yes
> 
> -o IdentitiesOnly=yes
> 
>>> On May 28, 2020, at 8:28 AM, Benjamin Trey Blue  
>>> wrote:
>> Too many authentication failures for
>>> 
>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/76ef08ae-203e-4caf-9cfa-616faa16be67%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/215768b7-1c70-447b-9f14-013db031ee89%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/FB826F74-69B5-46F9-8A0D-C6680F40876B%40johnkline.com.


Re: [weewx-user] Rsync issue

2020-05-28 Thread Benjamin Trey Blue
Ahhh, got it - thank you. Added it there and I can see it being passed, but 
the result is the same:


May 28 12:51:17 raspberrypi weewx[10689] ERROR weeutil.rsyncupload: 
> [['rsync', '--archive', '--stats', '-e ssh -o IdentitiesOnly=yes', 
> '/var/www/html/', 'u...@mydomain.com:/home4/USER/public_html']] reported 
> errors: Permission denied, please try again.. Received disconnect from 
> XX.XX.XX.XX port 22:2: Too many authentication failures for USER. 
> Disconnected from XX.XX.XX.XX port 22. rsync: connection unexpectedly 
> closed (0 bytes received so far) [sender]. rsync error: unexplained error 
> (code 255) at io.c(235) [sender=3.1.3]


Manually invoked with sudo wee_reports again and it worked:

May 28 12:57:23 raspberrypi wee_reports[10914] INFO weeutil.rsyncupload: 
> rsync'd 112 files (1,461,848 bytes) in 7.24 seconds 


 

On Thursday, May 28, 2020 at 12:43:45 PM UTC-4, John Kline wrote:
>
> Oops, I meant the [[RSYNC]] section.
>
> [[RSYNC]]
> ssh_options = -o IdentitiesOnly=yes
>
> [[SSH]]
>> ssh_options = -o IdentitiesOnly=yes
>>
>
> On May 28, 2020, at 8:56 AM, Benjamin Trey Blue  > wrote:
>
> 
> Thanks for the reply - I do not see a section for [[SSH]] in my weewx.conf 
> - do I nest that under the same [StdReport] section where [[RSYNC]] is 
> found? I pasted it just below the end of [[RSYNC]] but can't see where the 
> option was passed along:
>
> May 28 11:45:58 raspberrypi weewx[8853] ERROR weeutil.rsyncupload: 
>> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/', 
>> 'u...@mydomain.com:/home4/USER/public_html']] reported errors: Permission 
>> denied, please try again.. Received disconnect from XX.XX.XX.XX port 22:2: 
>> Too many authentication failures for USER. Disconnected from XX.XX.XX.XX 
>> port 22. rsync: connection unexpectedly closed (0 bytes received so far) 
>> [sender]. rsync error: unexplained error (code 255) at io.c(235) 
>> [sender=3.1.3]
>>
>
>
>
> On Thursday, May 28, 2020 at 11:36:26 AM UTC-4, John Kline wrote:
>>
>> Sorry, didn’t mean to send that yet:
>>
>> Should read:
>>
>> Does it work if you add the following to the SSH configuration in 
>> weewx.conf?
>>
>> [[SSH]]
>> ssh_options = -o IdentitiesOnly=yes
>>
>> On May 28, 2020, at 8:34 AM, John Kline  wrote:
>>
>> 
>> Does it work if you add:
>>
>> [[SSH]]
>> ssh_options = -o IdentitiesOnly=yes
>>
>>
>> -o IdentitiesOnly=yes
>>
>>
>> On May 28, 2020, at 8:28 AM, Benjamin Trey Blue  
>> wrote:
>>
>> Too many authentication failures for
>>
>> -- 
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/76ef08ae-203e-4caf-9cfa-616faa16be67%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/215768b7-1c70-447b-9f14-013db031ee89%40googlegroups.com.


Re: [weewx-user] Rsync issue

2020-05-28 Thread John Kline
Oops, I meant the [[RSYNC]] section.

[[RSYNC]]
ssh_options = -o IdentitiesOnly=yes

>> [[SSH]]
>> ssh_options = -o IdentitiesOnly=yes


> On May 28, 2020, at 8:56 AM, Benjamin Trey Blue  wrote:
> 
> 
> Thanks for the reply - I do not see a section for [[SSH]] in my weewx.conf - 
> do I nest that under the same [StdReport] section where [[RSYNC]] is found? I 
> pasted it just below the end of [[RSYNC]] but can't see where the option was 
> passed along:
> 
>> May 28 11:45:58 raspberrypi weewx[8853] ERROR weeutil.rsyncupload: 
>> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/', 
>> 'u...@mydomain.com:/home4/USER/public_html']] reported errors: Permission 
>> denied, please try again.. Received disconnect from XX.XX.XX.XX port 22:2: 
>> Too many authentication failures for USER. Disconnected from XX.XX.XX.XX 
>> port 22. rsync: connection unexpectedly closed (0 bytes received so far) 
>> [sender]. rsync error: unexplained error (code 255) at io.c(235) 
>> [sender=3.1.3]
> 
> 
> 
>> On Thursday, May 28, 2020 at 11:36:26 AM UTC-4, John Kline wrote:
>> Sorry, didn’t mean to send that yet:
>> 
>> Should read:
>> 
>> Does it work if you add the following to the SSH configuration in weewx.conf?
>> 
>> [[SSH]]
>> ssh_options = -o IdentitiesOnly=yes
>> 
 On May 28, 2020, at 8:34 AM, John Kline  wrote:
 
>>> 
>>> Does it work if you add:
>>> 
>>> [[SSH]]
>>> ssh_options = -o IdentitiesOnly=yes
>>> 
>>> -o IdentitiesOnly=yes
>>> 
> On May 28, 2020, at 8:28 AM, Benjamin Trey Blue  
> wrote:
> 
 Too many authentication failures for
> 
> -- 
> 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/76ef08ae-203e-4caf-9cfa-616faa16be67%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/D3A4A071-7521-4425-854E-35A31733E23F%40johnkline.com.


Re: [weewx-user] Rsync issue

2020-05-28 Thread Benjamin Trey Blue
Thanks for the reply - I do not see a section for [[SSH]] in my weewx.conf 
- do I nest that under the same [StdReport] section where [[RSYNC]] is 
found? I pasted it just below the end of [[RSYNC]] but can't see where the 
option was passed along:

May 28 11:45:58 raspberrypi weewx[8853] ERROR weeutil.rsyncupload: 
> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/', 
> 'u...@mydomain.com:/home4/USER/public_html']] reported errors: Permission 
> denied, please try again.. Received disconnect from XX.XX.XX.XX port 22:2: 
> Too many authentication failures for USER. Disconnected from XX.XX.XX.XX 
> port 22. rsync: connection unexpectedly closed (0 bytes received so far) 
> [sender]. rsync error: unexplained error (code 255) at io.c(235) 
> [sender=3.1.3]
>



On Thursday, May 28, 2020 at 11:36:26 AM UTC-4, John Kline wrote:
>
> Sorry, didn’t mean to send that yet:
>
> Should read:
>
> Does it work if you add the following to the SSH configuration in 
> weewx.conf?
>
> [[SSH]]
> ssh_options = -o IdentitiesOnly=yes
>
> On May 28, 2020, at 8:34 AM, John Kline > 
> wrote:
>
> 
> Does it work if you add:
>
> [[SSH]]
> ssh_options = -o IdentitiesOnly=yes
>
>
> -o IdentitiesOnly=yes
>
>
> On May 28, 2020, at 8:28 AM, Benjamin Trey Blue  > wrote:
>
> Too many authentication failures for
>
>

-- 
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/76ef08ae-203e-4caf-9cfa-616faa16be67%40googlegroups.com.


Re: [weewx-user] Rsync issue

2020-05-28 Thread John Kline
Sorry, didn’t mean to send that yet:

Should read:

Does it work if you add the following to the SSH configuration in weewx.conf?

[[SSH]]
ssh_options = -o IdentitiesOnly=yes

> On May 28, 2020, at 8:34 AM, John Kline  wrote:
> 
> 
> Does it work if you add:
> 
> [[SSH]]
> ssh_options = -o IdentitiesOnly=yes
> 
> -o IdentitiesOnly=yes
> 
>>> On May 28, 2020, at 8:28 AM, Benjamin Trey Blue  
>>> wrote:
>>> 
>> Too many authentication failures for

-- 
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/5664A062-43EB-49C2-9699-CB3CF4C430C1%40johnkline.com.


[weewx-user] Rsync issue

2020-05-28 Thread Benjamin Trey Blue
Hey all,

I installed (DEB package install) and configured weewx on RPi last week and 
after enjoying it on my LAN, I am now trying to set-up rsync to send it to 
a website.

I called myself following the rsync guide 
at http://www.weewx.com/docs/usersguide.htm#config_RSYNC and setting up 
passwordless SSH using the link provided there 
(https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/)
 
but I cannot get it to successfully sync when wee_reports runs 
automatically. In syslog I get the following:

May 28 07:41:31 raspberrypi weewx[698] ERROR weeutil.rsyncupload: 
> [['rsync', '--archive', '--stats', '-e ssh', '/var/www/html/', 
> 'u...@mydomain.com:/home4/USER/public_html']] reported errors: Permission 
> denied, please try again.. Received disconnect from XX.XX.XX.XX port 22:2: 
> Too many authentication failures for USER. Disconnected from XX.XX.XX.XX 
> port 22. rsync: connection unexpectedly closed (0 bytes received so far) 
> [sender]. rsync error: unexplained error (code 255) at io.c(235) 
> [sender=3.1.3]
>

My weewx.conf is as follows:

   [[RSYNC]]


> skin = Rsync

enable = true

server = mydomain.com

user = USER

path = /home4/USER/public_html/

HTML_ROOT = /var/www/html/

delete = 0


Strangely, whenever I run the following commands manually, rsync works and 
my site updates:
 

> sudo wee_reports 

rsync --archive -e ssh /var/www/html/ 
> u...@mydomain.com:/home4/USER/public_html/ 

sudo rsync --archive -e ssh /var/www/html/ 
> u...@mydomain.com:/home4/USER/public_html/ 
>
 
sudo wee_reports simply generates

May 28 11:15:39 raspberrypi wee_reports[8119] INFO weeutil.rsyncupload: 
> rsync'd 81 files (1,174,239 bytes) in 5.17 seconds
>

Also, I haven't made any changes to the default configuration of weewx in 
terms of the user account it runs with.

I appreciate any advice or troubleshooting steps that you all can point me 
towards.

Thank you,
Trey 



 


-- 
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/3e564e92-ae8e-43fe-9b71-cd38915d463f%40googlegroups.com.


Re: [weewx-user] rsync fails with host key error in weewx, not from command line

2019-08-21 Thread vince
On Wednesday, August 21, 2019 at 6:59:56 AM UTC-7, Chris Richmond wrote:
>
> copy/paste of the exact rsync command also prompted to accept the hostkey 
> for
> filer2.csrhome.home. 
>

That's the issue.  The remote host key changed 'or' you generated a new 
~/.ssh/known_hosts file so it's prompting you for whether you trust the 
remote system is indeed the host it claims to be. 

-- 
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/4d85fe17-8f15-4705-8cbb-a6cb1777cdf1%40googlegroups.com.


Re: [weewx-user] rsync fails with host key error in weewx, not from command line

2019-08-21 Thread Chris Richmond
Yes.  weewx in this case.  Apparently, filer2 and filer2.csrhome.home end 
up with separate hostkeys
in known_hosts.  copy/paste of the exact rsync command also prompted to 
accept the hostkey for
filer2.csrhome.home.  Learn something new everyday.

I'll have to wait until later to see if weewx is successful next time 
(rsync 3x/day for now).

Chris

On Wednesday, August 21, 2019 at 6:50:21 AM UTC-7, Graham Eddy wrote:
>
> is it same user running ssh manually as weewx runs as?
> 
> *Graham Eddy*
>
> On 21 Aug 2019, at 11:29 pm, Chris Richmond  > wrote:
>
> Hi,
>I'm not new to ssh and all, but this one doesn't make sense. I'm 
> messing around with
> getting a set of hardware together for a move, and in the process ended up 
> with rsync
> errors because of host keys.  So... I removed the hostkey on the weewx end 
> and was
> able to ssh without a password to the NAS.  Still got the error, so 
> checked the reverse
> direction, which also had a problem, so corrected that.  Rechecked both 
> directions this
> morning (by hand) and no problems. *Still* weewx is failing rsync because 
> of host key
> errors.  Any more ideas.
>
> pivue:~> sudo grep rsync /var/log/syslog | tail
> Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: [['rsync', '--archive', 
> '--stats', '-e ssh', '/home/weewx/public_html/', 
> 'weewxfiler2.csrhome.home:/volume1/web/vueweather']] reported errors: 
> Host key verification failed.. rsync: connection unexpectedly closed (0 
> bytes received so far) [sender]. rsync error: error in rsync protocol data 
> stream (code 12) at io.c(235) [sender=3.1.2]
> Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: rsync executed in 0.30 
> seconds
> pivue:~> ssh filer2
>
> weewx@filer2:~$ ssh pivue.csrhome.home
> Linux pivue 4.19.42+ #1219 Tue May 14 21:16:38 BST 2019 armv6l
>
> Last login: Wed Aug 21 06:25:40 2019 from 192.168.2.250
> pivue:~> 
>
> Thx, 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/069127e6-f46b-4a3f-9a38-1d8c38439594%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/9a7fd643-e564-4d62-bd72-92e755fe66bf%40googlegroups.com.


Re: [weewx-user] rsync fails with host key error in weewx, not from command line

2019-08-21 Thread Graham Eddy
is it same user running ssh manually as weewx runs as?

Graham Eddy

> On 21 Aug 2019, at 11:29 pm, Chris Richmond  wrote:
> 
> Hi,
>I'm not new to ssh and all, but this one doesn't make sense. I'm messing 
> around with
> getting a set of hardware together for a move, and in the process ended up 
> with rsync
> errors because of host keys.  So... I removed the hostkey on the weewx end 
> and was
> able to ssh without a password to the NAS.  Still got the error, so checked 
> the reverse
> direction, which also had a problem, so corrected that.  Rechecked both 
> directions this
> morning (by hand) and no problems. *Still* weewx is failing rsync because of 
> host key
> errors.  Any more ideas.
> 
> pivue:~> sudo grep rsync /var/log/syslog | tail
> Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: [['rsync', '--archive', 
> '--stats', '-e ssh', '/home/weewx/public_html/', 
> 'weewxfiler2.csrhome.home:/volume1/web/vueweather']] reported errors: 
> Host key verification failed.. rsync: connection unexpectedly closed (0 bytes 
> received so far) [sender]. rsync error: error in rsync protocol data stream 
> (code 12) at io.c(235) [sender=3.1.2]
> Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: rsync executed in 0.30 seconds
> pivue:~> ssh filer2
> 
> weewx@filer2:~$ ssh pivue.csrhome.home
> Linux pivue 4.19.42+ #1219 Tue May 14 21:16:38 BST 2019 armv6l
> 
> Last login: Wed Aug 21 06:25:40 2019 from 192.168.2.250
> pivue:~> 
> 
> Thx, 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+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/069127e6-f46b-4a3f-9a38-1d8c38439594%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/3AFF428E-61A1-4E91-81B9-DCF2AAEF4BF4%40gmail.com.


[weewx-user] rsync fails with host key error in weewx, not from command line

2019-08-21 Thread Chris Richmond
Hi,
   I'm not new to ssh and all, but this one doesn't make sense. I'm messing 
around with
getting a set of hardware together for a move, and in the process ended up 
with rsync
errors because of host keys.  So... I removed the hostkey on the weewx end 
and was
able to ssh without a password to the NAS.  Still got the error, so checked 
the reverse
direction, which also had a problem, so corrected that.  Rechecked both 
directions this
morning (by hand) and no problems. *Still* weewx is failing rsync because 
of host key
errors.  Any more ideas.

pivue:~> sudo grep rsync /var/log/syslog | tail
Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: [['rsync', '--archive', 
'--stats', '-e ssh', '/home/weewx/public_html/', 
'weewxfiler2.csrhome.home:/volume1/web/vueweather']] reported errors: 
Host key verification failed.. rsync: connection unexpectedly closed (0 
bytes received so far) [sender]. rsync error: error in rsync protocol data 
stream (code 12) at io.c(235) [sender=3.1.2]
Aug 21 06:25:16 pivue weewx[9927]: rsyncupload: rsync executed in 0.30 
seconds
pivue:~> ssh filer2

weewx@filer2:~$ ssh pivue.csrhome.home
Linux pivue 4.19.42+ #1219 Tue May 14 21:16:38 BST 2019 armv6l

Last login: Wed Aug 21 06:25:40 2019 from 192.168.2.250
pivue:~> 

Thx, 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/069127e6-f46b-4a3f-9a38-1d8c38439594%40googlegroups.com.


[weewx-user] Rsync and skins and servers

2019-05-02 Thread Bruce Butkus
Hi All, 
I have my WeeWx running well on my Pi. The Pi is running a server that 
hosts the pages and I can access from anywhere on my lan. Awesome! 
I also have a Synology server, that can host webpages, and is setup to 
receive incoming traffic on port 80. It also has Rsync capability. So in 
theory, I should be able to start the rsync skin, and copy the html_root 
folder of whatever 'skin' i set in the root folder to copy to my /web/ so 
that I can host it. 
however Im not having any luck getting the working. 
I have a passwordless user on my synology server, set the rsync skin server 
to the ip of the synology server, user name, and html_root to my /weewx/ 
directory, but when it runs that 'skin' it hangs. 
meaning weewx still continues to acquire data, but the reports never run 
again. 
Is there an easier way to do this? I have the weather34 skin running on the 
synology server now, and it easily grabs the realtime.txt from the Pi on 
its webserver, is there a way to just code a page to just call the files on 
the pis server instead? 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] RSync failing after the first upload

2019-04-06 Thread Tom Mitchell
Hello,

weewx 3.8.2 running in a Docker container. Connecting the the database just 
fine and using the Simulator. I have rsync configured to upload to a cloud 
host.

First time through, the report upload works fine:

weewx[9]: reportengine: Running report RSYNC
weewx[9]: reportengine: Found configuration file 
/home/weewx/skins/Rsync/skin.conf for report RSYNC
weewx[9]: manager: Added record 2019-04-06 16:05:17 EDT (1554581117) to 
database 'weewx_local'
LOOP:   2019-04-06 16:05:17 EDT (1554581117) altimeter: 32.3940721833, 
appTemp: 28.369127419, barometer: 32.3429914465, cloudbase: 1295.87222115, 
dateTime: 1554581117, dewpoint: 27.1243263624, heatindex: 32.5973641355, 
humidex: 32.5973641355, inDewpoint: 31.0794006064, inHumidity: 
29.999657861, inTemp: 63.0001710695, maxSolarRad: 495.258619499, 
outHumidity: 79.9997433946, outTemp: 32.5973641355, pressure: 
32.3429914465, radiation: 230.36959363, rain: 0, rainRate: 0, usUnits: 1, 
UV: 3.22517431082, windchill: 32.5973641355, windDir: 359.998460368, 
windGust: 5.13210704991e-05, windGustDir: 359.998460368, windSpeed: 
4.27675587487e-05
weewx[9]: rsyncupload: rsync'd 160 files (271,814 bytes) in 2.10 seconds

But on the subsequent passes, it acts like it doesn't recognize the upload 
host:

weewx[9]: reportengine: Running report RSYNC
weewx[9]: reportengine: Found configuration file 
/home/weewx/skins/Rsync/skin.conf for report RSYNC
The authenticity of host 'foo.bar.com (a.b.c.d)' can't be established.
ECDSA key fingerprint is a8:17:90:cd:08:5d:3f:84:8d:b3:9d:91:3d:e0:e2:68.
Are you sure you want to continue connecting (yes/no)? weewx[9]: manager: 
Added record 2019-04-06 16:10:17 EDT (1554581417) to database 'weewx_local'
LOOP:   2019-04-06 16:10:17 EDT (1554581417) altimeter: 32.3939674154, 
appTemp: 28.1327127704, barometer: 32.3428868355, cloudbase: 1294.87161178, 
dateTime: 1554581417, dewpoint: 26.9178545608, heatindex: 32.3864896527, 
humidex: 32.38648965

I do have a known_hosts file in /home/weewx/.ssh
I am able to ssh in as the username configured in weewx without being 
prompted.

[[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 as to the user account on the remote machine where the files
# will be copied.
#
# The following three lines determine where files will be sent.
server = foo.bar.com
path = /home/tom/html/local/
user = tom

# 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

Curious of anyone has ever seen this before.

Thanks in advance.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Rsync error

2018-11-06 Thread Maginos
Thank you mwall for your tip, it helped me too. For your information, the 
path of the ssh_config file was for me /etc/ssh/ssh_config.

Best regards and thank you again!
Maginos

Am Samstag, 1. September 2018 15:29:22 UTC+2 schrieb mwall:
>
> you should also specify the user in the ssh config file:
>
> Host rsyncserver.com
>   User jens
>   IdentityFile /home/jens/.ssh/id_rsa
>
> in the world of ssh, the user is independent of the ssh certificates.  so 
> it is usually a good idea to specify user just to be safe.
>
> for example, you might be 'jens' on the computer on which weewx is 
> running, but jensjorgen on the rsync server.  in that case you would 
> specify 'User jensjorgen' in the ssh config file.
>
> m
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Rsync vs FTP - which to choose/what are the pros and cons?

2018-10-05 Thread Philip Kutzenco
Perfect. Thanks!
phil

On Friday, October 5, 2018 at 5:35:07 PM UTC-4, Thomas Keffer wrote:
>
> rsync is superior in every way. It's secure, faster, and uses less 
> bandwidth. The only reason to use FTP is if your web host does not offer 
> rsync.
>
> -tk
>
> On Fri, Oct 5, 2018 at 2:26 PM Philip Kutzenco  > wrote:
>
>> I am moving my weewx web server output to an outside hoster. What 
>> considerations should I take into account to decide whether to use Rsync or 
>> FTP (both should be available to me). I've looked at the user guide 
>> sections for both options and (optimistically) believe I will be able to 
>> set up either.
>>
>> What are the pros & cons of each method?
>>
>> Apologies if this question has been asked/answered before. If so, please 
>> point me to the discussion or wiki topic.
>>
>> phil
>>
>> -- 
>> 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 .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Rsync vs FTP - which to choose/what are the pros and cons?

2018-10-05 Thread Thomas Keffer
rsync is superior in every way. It's secure, faster, and uses less
bandwidth. The only reason to use FTP is if your web host does not offer
rsync.

-tk

On Fri, Oct 5, 2018 at 2:26 PM Philip Kutzenco  wrote:

> I am moving my weewx web server output to an outside hoster. What
> considerations should I take into account to decide whether to use Rsync or
> FTP (both should be available to me). I've looked at the user guide
> sections for both options and (optimistically) believe I will be able to
> set up either.
>
> What are the pros & cons of each method?
>
> Apologies if this question has been asked/answered before. If so, please
> point me to the discussion or wiki topic.
>
> phil
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Rsync vs FTP - which to choose/what are the pros and cons?

2018-10-05 Thread Philip Kutzenco
I am moving my weewx web server output to an outside hoster. What 
considerations should I take into account to decide whether to use Rsync or 
FTP (both should be available to me). I've looked at the user guide 
sections for both options and (optimistically) believe I will be able to 
set up either.

What are the pros & cons of each method?

Apologies if this question has been asked/answered before. If so, please 
point me to the discussion or wiki topic.

phil

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Rsync error

2018-09-01 Thread Jens-Jørgen Kjærgaard
First I tried to generate a new id_rsa as root, but as you would expect, it
changed nothing.
Next, I did as you suggested, and now it works - thanks.

Though I don't quite know why :).

But in the /etc/root/.ssh/config file (not /root/.ssh/config) by default,

Hosts *

- I would guess that the * means any ip?
However, replacing it with my server ip solved the problem anyway.
So, everything is fine now - I will try, someday, to not use root as user,
I know I shouldn't - but it is a bit hard to change a working system :)

Thanks for helping out.

Jens-Jørgen Kjærgaard
Tuenvej 818
9870 Sindal
+45 21204417
www.jensjk.dk


Den lør. 1. sep. 2018 kl. 15.29 skrev mwall :

> you should also specify the user in the ssh config file:
>
> Host rsyncserver.com
>   User jens
>   IdentityFile /home/jens/.ssh/id_rsa
>
> in the world of ssh, the user is independent of the ssh certificates.  so
> it is usually a good idea to specify user just to be safe.
>
> for example, you might be 'jens' on the computer on which weewx is
> running, but jensjorgen on the rsync server.  in that case you would
> specify 'User jensjorgen' in the ssh config file.
>
> m
>
> --
> 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/BDeqPnam8fw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Rsync error

2018-09-01 Thread mwall
you should also specify the user in the ssh config file:

Host rsyncserver.com
  User jens
  IdentityFile /home/jens/.ssh/id_rsa

in the world of ssh, the user is independent of the ssh certificates.  so 
it is usually a good idea to specify user just to be safe.

for example, you might be 'jens' on the computer on which weewx is running, 
but jensjorgen on the rsync server.  in that case you would specify 'User 
jensjorgen' in the ssh config file.

m

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Rsync error

2018-09-01 Thread mwall


On Saturday, September 1, 2018 at 8:23:46 AM UTC-4, Jens-Jørgen Kjærgaard 
wrote:
>
> I'm running weewx as root.
> I didn't think it had influence on the private keys - but obviously it has.
> So I have to create another key as root - or run weewx as my username?
>
>>
>>

ssh keys can be used by any user.

if you generated the ssh keys as user 'jens', you should have this:

~jens/.ssh/id_rsa
~jens/.ssh/id_rsa.pub

you just need to tell weewx to use that identity file for rsync connections 
(by default, if you run rsync as root it will look for /root/.ssh/id_rsa 
and /root/.ssh/id_rsa.pub)

how does one tell rsync to use a specific certificate?

rsync -e "ssh -i /home/jens/.ssh/id_rsa" ...

but there is no mechanism in weewx to pass those additional arguments.  so 
use the ssh config file for the user who is running weewx (in this case, 
that means root):

in the file /root/.ssh/config do this:

Host nameofrsyncserver.com
  IdentityFile /home/jens/.ssh/id_rsa

so then any time you try to do anything that uses ssh (rsync, scp, ssh) to 
nameofrsyncserver.com, ssh will use the identity of jens to make the 
connection.

note that you can also generate ssh keys specifically for the weewx process 
or a weewx user, then use those to connect to your server.  that would be 
the safest thing to do, and run weewx as the weewx user.

m

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Rsync error

2018-09-01 Thread Jens-Jørgen Kjærgaard
I'm running weewx as root.
I didn't think it had influence on the private keys - but obviously it has.
So I have to create another key as root - or run weewx as my username?

Jens-Jørgen Kjærgaard
Tuenvej 818
9870 Sindal
+45 21204417
www.jensjk.dk


Den lør. 1. sep. 2018 kl. 13.55 skrev Thomas Keffer :

> If you can use rsync just fine from the command line, but not from within
> WeeWX, the problem may be the user you are using to run WeeWX. Is it the
> same? Or, is it root? Or, something else?
>
> -tk
>
> On Sat, Sep 1, 2018 at 4:10 AM Jens-Jørgen Kjærgaard 
> wrote:
>
>> For some years, I have been running weewx with no major problems, on a
>> raspberry.
>>
>> Now I want to upload to an extra server (also raspberry), using rsync.
>> However, I get
>>
>> rsyncupload: [['rsync', '--archive', '--stats', '--delete', '-e ssh',
>> '/home/jjk/weewx/public_html/', 'jjk@185.127.50.88:/media/hytte']]
>> reported errors: Permission denied, please try again.. Permission denied
>> (publickey,password).. rsync: connection unexpectedly closed (0 bytes
>> received so far) [sender]. rsync error: error in rsync protocol data stream
>> (code 12) at io.c(605) [sender=3.0.9]
>>
>> I understand there is a problem with my publickey or password.
>> However, when I from the same raspberry use sftp or ssh or even try rsync
>> with the same settings, I have no problem uploading the files - it is only
>> when I try using weewx, I get the problem. Of course I can upload the files
>> with sftp - but it would be more elegant from inside weewx.
>>
>> The relevant Rsync section of 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 as to the user on the remote machine where the files
>> # will be copied.
>> #
>> # The following three lines determine where files will be sent.
>> server = 185.127.50.88
>> path = /media/hytte
>> user = jjk
>>
>> # 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 = 1
>>
>> ?
>>
>> --
>> 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.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/BDeqPnam8fw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Rsync error

2018-09-01 Thread Thomas Keffer
If you can use rsync just fine from the command line, but not from within
WeeWX, the problem may be the user you are using to run WeeWX. Is it the
same? Or, is it root? Or, something else?

-tk

On Sat, Sep 1, 2018 at 4:10 AM Jens-Jørgen Kjærgaard 
wrote:

> For some years, I have been running weewx with no major problems, on a
> raspberry.
>
> Now I want to upload to an extra server (also raspberry), using rsync.
> However, I get
>
> rsyncupload: [['rsync', '--archive', '--stats', '--delete', '-e ssh',
> '/home/jjk/weewx/public_html/', 'jjk@185.127.50.88:/media/hytte']]
> reported errors: Permission denied, please try again.. Permission denied
> (publickey,password).. rsync: connection unexpectedly closed (0 bytes
> received so far) [sender]. rsync error: error in rsync protocol data stream
> (code 12) at io.c(605) [sender=3.0.9]
>
> I understand there is a problem with my publickey or password.
> However, when I from the same raspberry use sftp or ssh or even try rsync
> with the same settings, I have no problem uploading the files - it is only
> when I try using weewx, I get the problem. Of course I can upload the files
> with sftp - but it would be more elegant from inside weewx.
>
> The relevant Rsync section of 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 as to the user on the remote machine where the files
> # will be copied.
> #
> # The following three lines determine where files will be sent.
> server = 185.127.50.88
> path = /media/hytte
> user = jjk
>
> # 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 = 1
>
> ?
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Rsync error

2018-09-01 Thread Jens-Jørgen Kjærgaard
For some years, I have been running weewx with no major problems, on a 
raspberry.

Now I want to upload to an extra server (also raspberry), using rsync.
However, I get

rsyncupload: [['rsync', '--archive', '--stats', '--delete', '-e ssh', 
'/home/jjk/weewx/public_html/', 'jjk@185.127.50.88:/media/hytte']] reported 
errors: Permission denied, please try again.. Permission denied 
(publickey,password).. rsync: connection unexpectedly closed (0 bytes 
received so far) [sender]. rsync error: error in rsync protocol data stream 
(code 12) at io.c(605) [sender=3.0.9]

I understand there is a problem with my publickey or password.
However, when I from the same raspberry use sftp or ssh or even try rsync 
with the same settings, I have no problem uploading the files - it is only 
when I try using weewx, I get the problem. Of course I can upload the files 
with sftp - but it would be more elegant from inside weewx.

The relevant Rsync section of 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 as to the user on the remote machine where the files
# will be copied.
#
# The following three lines determine where files will be sent.
server = 185.127.50.88
path = /media/hytte
user = jjk

# 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 = 1

?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] rsync to two different servers

2017-01-20 Thread vince
Would weewx support rsync to 'two' remote servers ?

I'm going to be moving my site to a different ISP and have the new server 
online but haven't repointed DNS at it yet.  If I set up multiple blocks in 
weewx ala the [RSYNC] one, just with a different name ala [RSYNC2] with the 
appropriate remote info in it for the new site, would weewx run the rsync 
skin twice essentially and synchronize up to both locations ?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] rsync - Could not exec shell '/bin/bash'

2016-07-29 Thread Tarmo
The following error appeared for no apparent reason.

Jul 29 11:30:24 pi2 weewx[780]: cheetahgenerator: Generated 1 files for 
report cmon in 0.05 seconds
Jul 29 11:30:24 pi2 weewx[780]: genimages: Generated 6 images for cmon in 
0.81 seconds
Jul 29 11:30:25 pi2 weewx[780]: cheetahgenerator: Generated 1 files for 
report xstats in 0.27 seconds
Jul 29 11:30:32 pi2 weewx[780]: rsyncupload: [['rsync', '--archive', 
'--stats', '-e ssh', '/var/ramdisk/ilmajaam/', 
'x...@x.com:/home/xxx/xxx/']] reported errors: Could not exec shell 
'/bin/bash' with errno = 2. rsync: connection unexpectedly closed (0 bytes 
received so far) [sender]. rsync error: error in rsync protocol data stream 
(code 12) at io.c(226) [sender=3.1.1]
Jul 29 11:30:32 pi2 weewx[780]: rsyncupload: rsync executed in 7.56 seconds

weewx v3.5.0
Raspbian Jessie Lite


Thanks for your help!

-- 
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.
For more options, visit https://groups.google.com/d/optout.