weewx 4.0.0b16 stopped working at 02:00 this morning

170 views
Skip to first unread message

Mike Revitt

unread,
Mar 29, 2020, 7:21:12 AM3/29/20
to weewx-user
when the clocks changed this morning weewx stopped downloading data from my Vantage Pro, or at least appeared to

Mar 29 00:59:54 weewx vncserver-x11[450,root]: AgentInitCheck: no response from agent
Mar 29 00:59:59 weewx vncserver-x11[450,root]: AgentInitCheck: agent comms failure
Mar 29 02:00:04 weewx vncserver-x11[450,root]: AgentInitCheck: no response from agent
Mar 29 02:00:09 weewx vncserver-x11[450,root]: AgentInitCheck: agent comms failure
Mar 29 02:00:14 weewx vncserver-x11[450,root]: AgentInitCheck: no response from agent
Mar 29 02:00:15 weewx weewx[31007] INFO weewx.manager: Added record 2020-03-29 02:00:00 BST (1585443600) to database 'weewx.sdb'
Mar 29 02:00:15 weewx weewx[31007] INFO weewx.manager: Added record 2020-03-29 02:00:00 BST (1585443600) to daily summary in 'weewx.sdb'
Mar 29 02:00:15 weewx weewx[31007] INFO weewx.restx: PWSWeather: Published record 2020-03-29 02:00:00 BST (1585443600)
Mar 29 02:00:16 weewx weewx[31007] INFO weewx.restx: Wunderground-PWS: Published record 2020-03-29 02:00:00 BST (1585443600)
Mar 29 02:00:16 weewx weewx[31007] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.95 seconds
Mar 29 02:00:17 weewx weewx[31007] INFO weewx.restx: AWEKAS: Published record 2020-03-29 02:00:00 BST (1585443600)
Mar 29 02:00:17 weewx weewx[31007] INFO weewx.imagegenerator: Generated 20 images for report SeasonsReport in 1.71 seconds
Mar 29 02:00:17 weewx weewx[31007] INFO weewx.reportengine: Copied 0 files to /var/www/html/MountWeather
Mar 29 02:00:18 weewx weewx[31007] INFO botocore.credentials: Found credentials in shared credentials file: ~/.aws/credentials
Mar 29 02:00:18 weewx weewx[31007] INFO weewx.restx: WOW: Published record 2020-03-29 02:00:00 BST (1585443600)



Was still running perfectly at 11:45, just not downloading data.

Mar 29 11:45:23 weewx weewx[31007] INFO weewx.engine: Clock error is 2.75 seconds (positive is fast)
Mar 29 11:45:24 weewx weewx[31007] INFO weewx.cheetahgenerator: Generated 7 files for report SeasonsReport in 0.91 seconds
Mar 29 11:45:25 weewx weewx[31007] INFO weewx.imagegenerator: Generated 20 images for report SeasonsReport in 1.61 seconds
Mar 29 11:45:25 weewx weewx[31007] INFO weewx.reportengine: Copied 0 files to /var/www/html/MountWeather
Mar 29 11:45:25 weewx weewx[31007] INFO botocore.credentials: Found credentials in shared credentials file: ~/.aws/credentials
Mar 29 11:45:26 weewx vncserver-x11[450,root]: AgentInitCheck: agent comms failure
Mar 29 11:45:31 weewx vncserver-x11[450,root]: AgentInitCheck: no response from agent
Mar 29 11:45:36 weewx vncserver-x11[450,root]: AgentInitCheck: agent comms failure
Mar 29 11:45:36 weewx weewx[31007] INFO user.s3upload: S3UploadGenerator: AWS-S3 copied 27 files to S3 in 11.17 seconds


So I thought that this was the known daylight savings issue so ran

/home/Weewx/bin/wee_device --dump

But this resulted in this issue

Mar 29 11:58:28 weewx weewxd[23444]: weewx[23444] INFO weewx.engine: Starting main packet loop.
Mar 29 11:59:12 weewx weewxd[23444]: weewx[23444] ERROR weewx.drivers.vantage: LOOP try #1; error: Expected to read 99 chars; got 0 
Mar 29 12:00:21 weewx weewxd[23444]: weewx[23444] INFO weewx.manager: Added record 2020-03-29 12:00:00 BST (1585479600) to database 
Mar 29 12:00:21 weewx weewxd[23444]: weewx[23444] INFO weewx.manager: Added record 2020-03-29 12:00:00 BST (1585479600) to daily sum

So I  restored my overnight database backup and restarted weewx.

And now all is working perfectly.

Don't know if this is something to do with weewx 4.0.0 or the Raspberry Pi, but have not had an issue with the clocks going forward since I started using weewx in 2014

Thomas Keffer

unread,
Mar 29, 2020, 7:34:39 AM3/29/20
to weewx-user
I'm not sure what I'm looking at here. I see none of the familiar Vantage chatter, just something about vncserver? What's that?

--
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/ee4b37c4-96be-43c6-afe0-1c9ba28ed125%40googlegroups.com.

gjr80

unread,
Mar 29, 2020, 8:06:30 AM3/29/20
to weewx-user
The only error shown is failure of attempt #1 to obtain a loop packet, but the lack of any further entries indicates attempt #2 succeeded. Would not think that would be cause for dumping the logger or restoring a db. I get those regularly at midnight (attempt #1 fail) and WeeWX runs fine.

Don’t see any entries in the log extracts provided that shows any issue after daylight saving cutover, longer log extracts might help.

Gary

ian kitchen

unread,
Mar 29, 2020, 8:33:46 AM3/29/20
to weewx-user
I'm getting similar results to Mike Revitt - no html updates.
Can anyone explain the workaround - I don't know if I have "overnight backup"

IK

Thomas Keffer

unread,
Mar 29, 2020, 9:12:44 AM3/29/20
to weewx-user
Ian: did you look at the Wiki article Troubleshooting the Davis Vantage stations, specifically the section WeeWX generates HTML pages but does not update them?

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

Phil Green

unread,
Mar 29, 2020, 10:19:29 AM3/29/20
to weewx-user
Because of DST coming into play at 2am I stop Weewx and ran
wee_device —clear-memory
Then restart Weewx
I have to do this in autumn too when the clocks change again.
Seems to work for me every time change.
I am running Vantage Vue with Weewx 3.9.2

Regards
Phil

Mike Revitt

unread,
Mar 29, 2020, 11:56:03 AM3/29/20
to weewx-user

Thanks Phil,

Never had to do it for the spring clock change before though.

Do you know what the difference between dump and clear memory is?

Mike Revitt

unread,
Mar 29, 2020, 11:57:51 AM3/29/20
to weewx-user
I suspect that if I had just restarted it it would have worked.

And the backup is something I do on the rasberry is. Had a time machine on my Mac so was protected that way but now I am on the Raspberry Pi have instigated a nightly backup

Phil Green

unread,
Mar 29, 2020, 2:10:36 PM3/29/20
to weewx-user
Hi Mike,
I think I have tried the dump option before but never had a problem with the —clear-memory option.
Yes I think you are correct that it is not necessary to run the command at the adoring equinox. I just happened to wake up at 2.02 this morning! Weewx webpage was showing the correct 2am time. It’s because the Vantage Vue outputs the time without any am/pm or dst change. So in the Autumn 1am occurs twice once before the clocks change and once after. Weewx database can’t cope with that, hence the need to clear the Vantage Vue built in buffer.
You probably already know this.
Regards
Phil

Jeff A. D.

unread,
Mar 29, 2020, 2:33:33 PM3/29/20
to weewx-user
Use the "dump" option.  The dump option does not clear the datalogger so you still have the data in the logger available if something goes wrong.  If you clear memory you lose the data in the logger.

Phil Owers

unread,
Mar 30, 2020, 6:36:40 AM3/30/20
to weewx...@googlegroups.com
I also had the same problem and the dump option failed the 1st time it then partially worked the 2nd time before failing, 3rd time went a bit further. Not sure if I tried it 4 or 5 times but it did download everthing in the end. Im using weewx 3.9.2.  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.

ian kitchen

unread,
Mar 30, 2020, 9:32:34 AM3/30/20
to weewx...@googlegroups.com
I can confirm that using "wee_device --clear-memory" has sorted out the problem for me. I'm using weewx v3.8.1 on Linux Mint19. Thanks to all who replied.
Regards
Ian

--
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/AsuYQBdI1Ls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/95dfc0eb-8828-434a-9672-145f1afb390f%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages