weewx stopped creating new data after power outage

110 views
Skip to first unread message

iams...@gmail.com

unread,
Apr 19, 2022, 11:34:09 PM4/19/22
to weewx-user
I have been using weewx 4.5.1 more or less continuously since late 2019, running on a Pi zero. I have had occasional problems, but they always seem to be resolved by a restart or a system reboot.  There was a power outage yesterday that shut down the power for several hours. After the power came back, I have had no new data stored or displayed. Data during the power outage was recovered though. Syslog indicates that weewx was very busy after power was restored uploading the missing data to Wunderground, but once that was done, it stopped creating new data. Every 5 minutes, it creates a new report, but there is no new data in the database, no data upload to Wundergound and no change to the images used to create the report locally.

It is as if the Vantage Pro weather station has stopped working, but as far as I can tell, it is fine. I had the server in debug mode before this happened, so it seems like there should be a smoking gun in Syslog, but I don't see it. 

Any ideas on what I should try to get back up and running? See below for a Google drive link to the syslog file.  Thanks!

gjr80

unread,
Apr 20, 2022, 12:18:00 AM4/20/22
to weewx-user
Looks like a clear case of corrupt station memory, not unusual in a vantage station after a power loss. See the wiki article WeeWX generates HTML pages, but it does not update them.

Gary

iams...@gmail.com

unread,
Apr 20, 2022, 12:52:52 PM4/20/22
to weewx-user
Thanks for that. It certainly does look like my problem.

Resetting the Vantage Pro by removing power (and batteries) did not help, so I am trying the memory dump. However, when I stopped weewx and did a memory dump, I get a nothing but errors like this:
ERROR weewx.manager: Unable to add record 2022-04-17 07:55:00 PDT (1650207300) to database 'weewx.sdb': attempt to write a readonly database

Before I wipe the memory, I wanted to check that this is expected (the troubleshooting page only mentions a 'duplicate primary keys' error, which I don't see.

Is there something else I need to do to the DB file before performing the memory dump?

Thanks! 


Tom Keffer

unread,
Apr 20, 2022, 2:12:34 PM4/20/22
to weewx-user
Your database is in a protected area. Precede the command you used with 'sudo'. For example,

sudo wee_device --dump




--
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/62e9d375-1d8a-430a-ae17-c39b27419d90n%40googlegroups.com.

iams...@gmail.com

unread,
Apr 20, 2022, 5:50:13 PM4/20/22
to weewx-user
That did the trick. Perhaps someone could update the Troubleshooting article? 

Thanks!

Tom Keffer

unread,
Apr 20, 2022, 5:55:26 PM4/20/22
to weewx-user
Not everyone puts their database in a protected area.

Errors to the effect of being unable to write to a readonly area are extremely common, and almost always point to a lack of permissions. 

See the FAQ on the subject in the wiki: https://github.com/weewx/weewx/wiki/faq-permission-denied

John Kline

unread,
Apr 20, 2022, 6:39:13 PM4/20/22
to weewx...@googlegroups.com

On Apr 19, 2022, at 8:34 PM, iams...@gmail.com <iams...@gmail.com> wrote:

I have been using weewx 4.5.1 more or less continuously since late 2019, running on a Pi zero. I have had occasional problems, but they always seem to be resolved by a restart or a system reboot.  There was a power outage yesterday that shut down the power for several hours. After the power came back, I have had no new data stored or displayed. Data during the power outage was recovered though. Syslog indicates that weewx was very busy after power was restored uploading the missing data to Wunderground, but once that was done, it stopped creating new data. Every 5 minutes, it creates a new report, but there is no new data in the database, no data upload to Wundergound and no change to the images used to create the report locally.

It is as if the Vantage Pro weather station has stopped working, but as far as I can tell, it is fine. I had the server in debug mode before this happened, so it seems like there should be a smoking gun in Syslog, but I don't see it. 

Any ideas on what I should try to get back up and running? See below for a Google drive link to the syslog file.  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+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages