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

2022-01-03 Thread Chris Alemany
Thanks for this comment Gary. You forced me to reevaluate.. and I realized I was looking at an old install of weewx on my Pi, not the one that was active. Not used to the Pi's software being installed more spread out. The two patches are now properly applied and SSH is working well. Thank you

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

2022-01-02 Thread gjr80
It would help if you provided a longer log extract, four lines are better than one but it it is still a bit like looking down a straw :). So that we all have a complete picture could your restart WeeWX (keeping debug=1) and let it run for a couple of archive periods. Then post a log extract show

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

2022-01-02 Thread Chris Alemany
Still the same error essentially. Using the new code for both rsyncupload https://github.com/weewx/weewx/blob/68bf6c40332d37bdb7b2e81803edb4141fb9/bin/weeutil/rsyncupload.py and weather34 https://github.com/steepleian/weewx-Weather34/blob/development/user/weather34.py ). DEBUG log relevan

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

2022-01-02 Thread Tom Keffer
The debug code will show you the parameters to the Popen() call that invokes rsync. Unfortunately, that's all you get. Still, it should be enough. What does it show now? -tk On Sun, Jan 2, 2022 at 9:02 AM Chris Alemany wrote: > I've updated the code in my rsyncupload.py file as well as a fix pr

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

2022-01-02 Thread Chris Alemany
I've updated the code in my rsyncupload.py file as well as a fix provided by weather34.py and it is still defaulting to port 22. https://github.com/steepleian/weewx-Weather34/blob/development/user/weather34.py Is there a way that I could temporarily have rsyncupload output the actual command it i

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

2022-01-02 Thread Tom Keffer
Fixed in commit 68bf6c4 , to appear in V4.6. On Sun, Jan 2, 2022 at 4:52 AM Tom Keffer wrote: > So, it sounds like there are two problems: the weewx code does not include > quotes around the -e argument, and the wea

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

2022-01-02 Thread Tom Keffer
So, it sounds like there are two problems: the weewx code does not include quotes around the -e argument, and the weather34 code doesn't honor the port spec at all. I'll create a patch for the weewx code later today. Looked through the weather34 code. It could use a big refactor to leverage some

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

2022-01-01 Thread Chris Alemany
I will pass that along, it occurred to me as well that the Standard skin had been updating fine through all of this, so it was definitely weather34 specific. Thanks Gary! On Saturday, January 1, 2022 at 10:34:23 PM UTC-8 gjr80 wrote: > I just browsed through the WeeWX Weather 34 code and saw c

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

2022-01-01 Thread gjr80
I just browsed through the WeeWX Weather 34 code and saw calls to the WeeWX rsync upload code with the port forced to None. That will cause the rsync uploader (used by the Weather 34 code) to always use port 22. Setting the port number under [StdReport] [[RSYNC]] only affects rsync reports runs

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

2022-01-01 Thread Chris Alemany
I think I've determined the issue. The rsync command being generated is missing the quotes: I am working with the weather34 folks and they added some debug in the code so we could see the port being issued, which it does but when I issue the command at the command line I get: sudo rsync --archiv

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

2022-01-01 Thread Tom Keffer
I just tried setting port = 27 and it worked. Either you are using a different weewx.conf than you think you are using, or it was not set correctly in the [[RSYNC]] section It would really help if you posted the full log. It will tell you which copy of weewx.conf it is using. On Sat, Jan 1, 2022

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

2022-01-01 Thread Chris Alemany
Hi Gary, Thanks. Yes I've confirmed rsync works on that port on the computer and from the account needed as well as other computers. I have a cronjob using it as well. Here's the Debug with the command. It doesn't seem to mention any port so is it ignoring the config for some reason? I wonder if

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

2022-01-01 Thread gjr80
Hi, As far as WeeWX is concerned setting the port config option should be all that's needed. Something like (untested): [StdReport] [[RSYNC]] port = 27 If that is not working I suggest you edit weewx.conf and set debug = 1. Save and restart WeeWX. Have a look