OK, try dropping the daily summaries first, use wee_database --drop-daily. 
If that completes without error then repeat the --rebuild-daily.

Gary

PS. When I used the term 'daily summaries' above I was referring to the 
daily summary tables, a number of tables in your database that are used 
when producing reports etc that include data covering periods in excess of 
one day.

On Saturday, 7 March 2020 06:56:09 UTC+10, Richard Back wrote:
>
> pi@weather:~ $ sudo wee_database --rebuild-daily
> Using configuration file /etc/weewx/weewx.conf
> Using database binding 'wx_binding', which is bound to database 
> 'archive_sqlite'
> All daily summaries will be rebuilt.
> Proceed (y/n)? y
> Rebuilding daily summaries in database 'weewx.sdb' ...
> Traceback (most recent call last):
>   File "/usr/bin/wee_database", line 793, in <module>
>     main()
>   File "/usr/bin/wee_database", line 153, in main
>     rebuildDaily(config_dict, db_binding, options)
>   File "/usr/bin/wee_database", line 262, in rebuildDaily
>     trans_days=20)
>   File "/usr/share/weewx/weewx/manager.py", line 1428, in 
> backfill_day_summary
>     timestamp_to_string(lastRecord)))
> weewx.ViolatedPrecondition: lastUpdate(2020-03-06 07:55:00 CST 
> (1583502900)) > lastRecord(2020-03-05 12:00:00 CST (1583431200)) 
>
> On Fri, Mar 6, 2020 at 2:52 PM Richard Back <[email protected] 
> <javascript:>> wrote:
>
>> weewx fails on startup with the error in the syslog.  I am not getting 
>> that far.
>>
>> On Fri, Mar 6, 2020 at 2:47 PM gjr80 <[email protected] <javascript:>> 
>> wrote:
>>
>>> Hi,
>>>
>>> Your daily summaries believe they were updated after the most recent 
>>> record in the archive. Try rebuilding the daily summaries using 
>>> wee_database (http://weewx.com/docs/utilities.htm#Action_--rebuild-daily
>>> ).
>>>
>>> Gary
>>>
>>> -- 
>>> 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/A98fHji1uqU/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected] <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/aff0d017-d02d-4dc4-a670-d7b23d72fe8f%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3a63c4ce-20ee-4d4d-b43e-3b972f1e06d2%40googlegroups.com.

Reply via email to