Problems after power cut

137 views
Skip to first unread message

Robin

unread,
Dec 11, 2022, 3:36:52 AM12/11/22
to weewx-user

We had a 12 hour power cut last night. The battery backup ran out and the RPi stopped without being shutdown.

I reconnected to a different ups about 10 hours later. Power back on about 2 hours after this. Nodata is being collected and the web pages are not updating.

I stopped weewx and shut the RPI down. Restart looks normal but no change. Stopped/started weewx, no change.

I have put the syslog entry from the stop/restart below.

Any thoughts? Weewx has run without me touching it for a couple of years and I can't remember most of what I learnt to set it up!


Dec 11 10:23:28 MWS weewx[723]: restx: WeatherCloud: service version is 0.11

Dec 11 10:23:28 MWS weewx[723]: restx: WeatherCloud: Data will be uploaded for id=#####

Dec 11 10:23:28 MWS weewx[723]: restx: OWM: service version is 0.7

Dec 11 10:23:28 MWS weewx[723]: restx: OWM: Data will be uploaded for ####

Dec 11 10:23:28 MWS weewx[723]: restx: Windy: version is 0.6

Dec 11 10:23:29 MWS weewx[723]: restx: Windy: Data will be uploaded to https://stations.windy.com/pws/update

Dec 11 10:23:29 MWS weewx[723]: lowBattery: No alarm set.  Missing parameter: 'Alarm'

Dec 11 10:23:29 MWS weewx[723]: engine: Starting up weewx version 3.8.0

Dec 11 10:23:29 MWS weewx[723]: engine: Clock error is -4.33 seconds (positive is fast)

Dec 11 10:23:29 MWS weewx[723]: engine: Starting main packet loop.

Dec 11 10:25:01 MWS CRON[751]: (root) CMD (/usr/bin/webcam.sh >/dev/null 2>&1)

Dec 11 10:25:07 MWS root: Webcam image captured

Dec 11 10:25:10 MWS root: webcam image complete

Dec 11 10:26:11 MWS weewx[723]: cheetahgenerator: Generated 22 files for report StandardReport in 54.55 seconds

Dec 11 10:26:20 MWS weewx[723]: imagegenerator: Generated 12 images for StandardReport in 8.99 seconds

Dec 11 10:26:21 MWS weewx[723]: copygenerator: copied 13 files to /var/www/weewx

Dec 11 10:26:27 MWS weewx[723]: historygenerator.pyc: Generated 8 tables in 5.68 seconds

Dec 11 10:26:29 MWS weewx[723]: cheetahgenerator: Generated 2 files for report HTMLPages in 8.42 seconds

Dec 11 10:26:29 MWS weewx[723]: copygenerator: copied 3 files to /var/www/weewx/Bootstrap

Dec 11 10:26:31 MWS weewx[723]: rsyncupload: rsync'd 53 files (734,285 bytes) in 1.64 seconds

Robin

unread,
Dec 11, 2022, 3:38:30 AM12/11/22
to weewx-user
Forgot to say 

WeeWX v3.8.0
Vantage Pro2 weather station

Robin

unread,
Dec 11, 2022, 4:12:56 AM12/11/22
to weewx-user
Update 

I stopped weewx
renamed the database to weewx.sdb.old
restarted weewx

Weewx started backfilling the new database with records. So I guess the problem is with a corrupt database. I have a backup taken 3 hours before the ups failed. Can I just copy this and restart?

I'm really sorry if I am asking a series of dumb questions. I'm getting old and was not good at this when I was young!!!

Tom Keffer

unread,
Dec 11, 2022, 8:01:21 AM12/11/22
to weewx...@googlegroups.com
Frequently, a power outage will cause the memory in the Vantage's logger to become corrupt, causing the symptoms you describe. However, swapping databases would not fix this. See the wiki section WeeWX generates HTML pages, but it does not update them for details.

A corrupt database (as opposed to logger) is very unusual, although I guess it could happen. You did not provide enough of the log to be sure.

In any case, to answer your question, yes, just swap in your backup database.

--
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/886d2da8-6bb9-4e2e-ae0a-bf25b0ba0ce2n%40googlegroups.com.

Robin

unread,
Dec 12, 2022, 12:31:32 AM12/12/22
to weewx-user
Thank you fo your help.

Sadly I had to clear the logger memory to get weewx talking again. 

Most of the lost data will not be missed. However, between the UPS dying and the power coming back on, we had 10mm of rain. I can't believe how upset it has made me that my 8+ years of data now is incomplete.

I have a WeatherLink live that has the missing data. Is there a way that I can backfill the missing period? An 'Idiots Guide' is going to be needed.
Reply all
Reply to author
Forward
0 new messages