This error:

ViolatedPrecondition: lastUpdate(2017-03-13 10:05:00 CET (1489395900)) > 
lastRecord(2017-03-13 09:58:01 CET (1489395481))

solved with:

wee_database weewx.conf --drop-daily

from: https://github.com/weewx/weewx/wiki/Cleaning-up-old-'bad'-data

and 

wee_database weewx.conf --rebuild-daily

Restart... and work fine.


El domingo, 26 de marzo de 2017, 0:39:42 (UTC+1), Tom Keffer escribió:
>
> Hi, Frank
>
> A question: was this the first time you ran weewx after updating to v3.7.1?
>
> -tk
>
> On Sat, Mar 25, 2017 at 2:53 PM, fraban <frankb...@gmail.com <javascript:>
> > wrote:
>
>> Hi all
>>
>> got the following problem when updating weewx from 3.6.2 -> 3.7.1 with VP 
>> Pro Driver ...
>>
>> system is running on a pi3 with jessie 
>>
>>
>> here is the log ... 
>>
>> [....] Restarting weewx (via systemctl): weewx.service.
>> Mar 25 22:44:58 raspberrypi systemd[1]: Starting LSB: weewx weather 
>> system...
>> Mar 25 22:44:59 raspberrypi weewx[1197]: engine: Initializing weewx 
>> version 3.7.1
>> Mar 25 22:44:59 raspberrypi weewx[1197]: engine: Using Python 2.7.9 
>> (default, Sep 17 2016, 20:26:04) #012[GCC 4.9.2]
>> Mar 25 22:44:59 raspberrypi weewx[1197]: engine: Platform 
>> Linux-4.4.50-v7+-armv7l-with-debian-8.0
>> Mar 25 22:44:59 raspberrypi weewx[1197]: engine: Locale is 'de_DE.UTF-8'
>> Mar 25 22:44:59 raspberrypi weewx[1197]: engine: pid file is 
>> /var/run/weewx.pid
>> Mar 25 22:44:59 raspberrypi weewx[1201]: engine: Using configuration file 
>> /etc/weewx/weewx.conf
>> Mar 25 22:44:59 raspberrypi weewx[1201]: engine: Loading station type 
>> WeatherLink (user.wlink)
>> Mar 25 22:44:59 raspberrypi weewx[1186]: Starting weewx weather system: 
>> weewx.
>> Mar 25 22:44:59 raspberrypi systemd[1]: Started LSB: weewx weather system.
>> Mar 25 22:44:59 raspberrypi weewx[1201]: wlink: version is 0.11rc1
>> Mar 25 22:44:59 raspberrypi weewx[1201]: wlink: expecting HTML format 'B'
>> Mar 25 22:44:59 raspberrypi weewx[1201]: wlink: polling interval is 60.0
>> Mar 25 22:44:59 raspberrypi weewx[1201]: engine: StdConvert target unit 
>> is 0x1
>> Mar 25 22:44:59 raspberrypi weewx[1201]: wxcalculate: The following 
>> values will be calculated: barometer=prefer_hardware, 
>> windchill=prefer_hardware, dewpoint=prefer_hardware, 
>> appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, 
>> heatindex=prefer_hardware, maxSolarRad=prefer_hardware, 
>> humidex=prefer_hardware, pressure=prefer_hardware, 
>> inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
>> cloudbase=prefer_hardware
>> Mar 25 22:44:59 raspberrypi weewx[1201]: wxcalculate: The following 
>> algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
>> Mar 25 22:44:59 raspberrypi weewx[1201]: engine: Archive will use data 
>> binding wx_binding
>> Mar 25 22:44:59 raspberrypi weewx[1201]: engine: Record generation will 
>> be attempted in 'hardware'
>> Mar 25 22:44:59 raspberrypi weewx[1201]: engine: The archive interval in 
>> the configuration file (300) does not match the station hardware interval 
>> (60).
>> Mar 25 22:44:59 raspberrypi weewx[1201]: engine: Using archive interval 
>> of 60 seconds (specified by hardware)
>> Mar 25 22:44:59 raspberrypi weewx[1201]: engine: Using binding 
>> 'wx_binding' to database 'weewx.sdb'
>> Mar 25 22:44:59 raspberrypi weewx[1201]: manager: Starting backfill of 
>> daily summaries
>> Mar 25 22:44:59 raspberrypi weewx[1201]: engine: Caught unrecoverable 
>> exception in engine:
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****  lastUpdate(2017-03-25 
>> 22:38:00 CET (1490477880)) > lastRecord(2017-03-25 22:24:00 CET 
>> (1490477040))
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****  Traceback (most recent 
>> call last):
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****    File 
>> "/usr/share/weewx/weewx/engine.py", line 865, in main
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****      engine = 
>> engine_class(config_dict)
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****    File 
>> "/usr/share/weewx/weewx/engine.py", line 77, in __init__
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****     
>>  self.loadServices(config_dict)
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****    File 
>> "/usr/share/weewx/weewx/engine.py", line 141, in loadServices
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****     
>>  self.service_obj.append(weeutil.weeutil._get_object(svc)(self, 
>> config_dict))
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****    File 
>> "/usr/share/weewx/weewx/engine.py", line 491, in __init__
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****     
>>  self.setup_database(config_dict)
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****    File 
>> "/usr/share/weewx/weewx/engine.py", line 604, in setup_database
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****      _nrecs, _ndays = 
>> dbmanager.backfill_day_summary() # @UnusedVariable
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****    File 
>> "/usr/share/weewx/weewx/manager.py", line 1411, in backfill_day_summary
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****     
>>  timestamp_to_string(lastRecord)))
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****  ViolatedPrecondition: 
>> lastUpdate(2017-03-25 22:38:00 CET (1490477880)) > lastRecord(2017-03-25 
>> 22:24:00 CET (1490477040))
>> Mar 25 22:44:59 raspberrypi weewx[1201]:     ****  Exiting.
>>
>> ------------------------------
>>
>>
>> I try to fix the problem with 
>>
>> sudo wee_database /etc/weewx/weewx.conf --drop-daily
>>
>> and then with
>> sudo wee_database /etc/weewx/weewx.conf --rebuild-daily
>>
>> This will take a while ... 
>> I will see what happens when I restart it after the "rebuild-daily" 
>>
>> -frank
>>
>> -- 
>> 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 <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to