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.


Re: [weewx-user] FTP Not working

2024-05-23 Thread Tom Keffer
There are some bugs in the Python libraries, but as far as I know, they
only affect FTPS, and you're using a regular, insecure, connection.

One thing you could try: set debug=2. This will give you extra logging
information. Don't know if it will uncover anything, but it's worth a shot.

On Thu, May 23, 2024 at 3:59 PM Rich Strle  wrote:

> Yes I can. I made a test directory and uploaded the files using ftp on the
> new RPi. I used the same username and password as in my weewx.conf.
>
> http://strle.com/test/index.html
>
> On Tuesday, May 21, 2024 at 8:32:32 PM UTC-5 Tom Keffer wrote:
>
>> If you're sure the two FTP sections are identical, it must be a firewall
>> / network issue.
>>
>> Can you FTP directly from the new RPi using the ftp utility
>> ?
>>
>> On Tue, May 21, 2024 at 5:29 PM Rich Strle  wrote:
>>
>>> I have installed the latest version of weewx on a fresh RasberryPi and
>>> almost everything is working as expected.
>>>
>>> I also have a different Pi running weewx 4.x. It's been running
>>> perfectly for years. I shut down weewx on that Pi. After everything is
>>> working, I can see the files getting created on the new 5.x Pi, in
>>> weewx.conf I turned on upload to WeatherUnderground and FTP to my GoDaddy
>>> hosted domain Strle.com. WeatherUnderground is getting through but the FTP
>>> to GoDaddy isn't.
>>> the ftp section of the two Pi's are identical.
>>> I set debug to 1, and restarted.
>>> I used journalctl --since "2 hours ago" > \tmp\weewx.log to grab the log.
>>> I looked through the log and didn't see anything related to FTP or FTP
>>> errors.
>>> I reviewed the wiki and saw a section on additional logging but it looks
>>> like v4 code.
>>>
>>> --
>>> 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/6d236f5c-a7e0-4f52-86f1-6980d471d0dan%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/00e9ac49-987a-4bd8-92e2-3bfa9dd31303n%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/CAPq0zEDYAoU7q-jkmznFGKKmh6qciVucnB0qUs-nsLGBs6j8CQ%40mail.gmail.com.


Re: [weewx-user] FTP Not working

2024-05-23 Thread Rich Strle
Yes I can. I made a test directory and uploaded the files using ftp on the 
new RPi. I used the same username and password as in my weewx.conf.

http://strle.com/test/index.html

On Tuesday, May 21, 2024 at 8:32:32 PM UTC-5 Tom Keffer wrote:

> If you're sure the two FTP sections are identical, it must be a firewall / 
> network issue.
>
> Can you FTP directly from the new RPi using the ftp utility 
> ?
>
> On Tue, May 21, 2024 at 5:29 PM Rich Strle  wrote:
>
>> I have installed the latest version of weewx on a fresh RasberryPi and 
>> almost everything is working as expected.
>>
>> I also have a different Pi running weewx 4.x. It's been running perfectly 
>> for years. I shut down weewx on that Pi. After everything is working, I can 
>> see the files getting created on the new 5.x Pi, in weewx.conf I turned on 
>> upload to WeatherUnderground and FTP to my GoDaddy hosted domain Strle.com. 
>> WeatherUnderground is getting through but the FTP to GoDaddy isn't.
>> the ftp section of the two Pi's are identical.
>> I set debug to 1, and restarted.
>> I used journalctl --since "2 hours ago" > \tmp\weewx.log to grab the log.
>> I looked through the log and didn't see anything related to FTP or FTP 
>> errors.
>> I reviewed the wiki and saw a section on additional logging but it looks 
>> like v4 code.
>>
>> -- 
>> 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/6d236f5c-a7e0-4f52-86f1-6980d471d0dan%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/00e9ac49-987a-4bd8-92e2-3bfa9dd31303n%40googlegroups.com.


Re: [weewx-user] FTP Not working

2024-05-23 Thread Rich Strle
>From the RPi I can ftp to the server. I start ftp, login, do a lcd /var, 
lcd www, lcd html lcd weewx then I do an mput * 

It asks me [anpqy?] for each file, I press y and it seems to copy the 
files. I couldn't figure out the - modifiers to copy the directory and 
subdirectory without being prompted for every file.

On Tuesday, May 21, 2024 at 8:32:32 PM UTC-5 Tom Keffer wrote:

> If you're sure the two FTP sections are identical, it must be a firewall / 
> network issue.
>
> Can you FTP directly from the new RPi using the ftp utility 
> ?
>
> On Tue, May 21, 2024 at 5:29 PM Rich Strle  wrote:
>
>> I have installed the latest version of weewx on a fresh RasberryPi and 
>> almost everything is working as expected.
>>
>> I also have a different Pi running weewx 4.x. It's been running perfectly 
>> for years. I shut down weewx on that Pi. After everything is working, I can 
>> see the files getting created on the new 5.x Pi, in weewx.conf I turned on 
>> upload to WeatherUnderground and FTP to my GoDaddy hosted domain Strle.com. 
>> WeatherUnderground is getting through but the FTP to GoDaddy isn't.
>> the ftp section of the two Pi's are identical.
>> I set debug to 1, and restarted.
>> I used journalctl --since "2 hours ago" > \tmp\weewx.log to grab the log.
>> I looked through the log and didn't see anything related to FTP or FTP 
>> errors.
>> I reviewed the wiki and saw a section on additional logging but it looks 
>> like v4 code.
>>
>> -- 
>> 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/6d236f5c-a7e0-4f52-86f1-6980d471d0dan%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/1387985c-51ff-4afb-ac0e-2ec3ecd09d76n%40googlegroups.com.