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
<https://github.com/weewx/weewx/wiki/Troubleshooting-the-Davis-Vantage-station#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.

On Sun, Dec 11, 2022 at 1:13 AM Robin <robin.sand...@otenet.gr> wrote:

> 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!!!
>
>
> On Sunday, 11 December 2022 at 10:38:30 UTC+2 Robin wrote:
>
>> Forgot to say
>>
>> WeeWX v3.8.0
>> Vantage Pro2 weather station
>>
>> On Sunday, 11 December 2022 at 10:36:52 UTC+2 Robin wrote:
>>
>>> 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
>>>
>> --
> 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/886d2da8-6bb9-4e2e-ae0a-bf25b0ba0ce2n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/886d2da8-6bb9-4e2e-ae0a-bf25b0ba0ce2n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPq0zEBEctHbx5a5eq5MMJiw7KbKG0B9okg9NOb--c6%3D85kFFg%40mail.gmail.com.

Reply via email to