ViolatedPrecondition: lastUpdate(2017-03-25 22:38:00 CET (1490477880)) > lastRecord(2017-03-25 22:24:00 CET (1490477040))

375 views
Skip to first unread message

fraban

unread,
Mar 25, 2017, 5:53:34 PM3/25/17
to weewx-user
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
Message has been deleted

fraban

unread,
Mar 25, 2017, 6:01:23 PM3/25/17
to weewx-user
OK - got it ...  

rebuild-daily helps to solve this problem. 
Restart now looks like and it works again ... 

Hope it helps you to fix these thing if it occurs on your system

-frank

here is the log - after the rebuild-daily and restart

pi@raspberrypi:/etc/weewx $ sudo wee_database weewx.conf --rebuild-daily
Using configuration file 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' ...
Records processed: 205000; Last date: 2017-03-25 21:40:00 CET (1490474400)
Processed 205044 records to rebuild 193 day summaries in 349.62 seconds
Rebuild of daily summaries in database 'weewx.sdb' complete
pi@raspberrypi
:/etc/weewx $ sudo /etc/init.d/weewx restart;tail -f /var/log/syslog
[....] Restarting weewx (via systemctl): weewx.service.
Mar 25 22:53:57 raspberrypi systemd[1]: Starting LSB: weewx weather system...
Mar 25 22:53:58 raspberrypi weewx[1303]: engine: Initializing weewx version 3.7.1
Mar 25 22:53:58 raspberrypi weewx[1303]: engine: Using Python 2.7.9 (default, Sep 17 2016, 20:26:04) #012[GCC 4.9.2]
Mar 25 22:53:58 raspberrypi weewx[1303]: engine: Platform Linux-4.4.50-v7+-armv7l-with-debian-8.0
Mar 25 22:53:58 raspberrypi weewx[1303]: engine: Locale is 'de_DE.UTF-8'
Mar 25 22:53:58 raspberrypi weewx[1303]: engine: pid file is /var/run/weewx.pid
Mar 25 22:53:58 raspberrypi weewx[1308]: engine: Using configuration file /etc/weewx/weewx.conf
Mar 25 22:53:58 raspberrypi weewx[1308]: engine: Loading station type WeatherLink (user.wlink)
Mar 25 22:53:58 raspberrypi weewx[1292]: Starting weewx weather system: weewx.
Mar 25 22:53:58 raspberrypi systemd[1]: Started LSB: weewx weather system.
Mar 25 22:53:58 raspberrypi weewx[1308]: wlink: version is 0.11rc1
Mar 25 22:53:58 raspberrypi weewx[1308]: wlink: expecting HTML format 'B'
Mar 25 22:53:58 raspberrypi weewx[1308]: wlink: polling interval is 60.0
Mar 25 22:53:58 raspberrypi weewx[1308]: engine: StdConvert target unit is 0x1
Mar 25 22:53:58 raspberrypi weewx[1308]: 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:53:58 raspberrypi weewx[1308]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Mar 25 22:53:58 raspberrypi weewx[1308]: engine: Archive will use data binding wx_binding
Mar 25 22:53:58 raspberrypi weewx[1308]: engine: Record generation will be attempted in 'hardware'
Mar 25 22:53:59 raspberrypi weewx[1308]: engine: The archive interval in the configuration file (300) does not match the station hardware interval (60).
Mar 25 22:53:59 raspberrypi weewx[1308]: engine: Using archive interval of 60 seconds (specified by hardware)
Mar 25 22:53:59 raspberrypi weewx[1308]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Mar 25 22:53:59 raspberrypi weewx[1308]: manager: Starting backfill of daily summaries
Mar 25 22:53:59 raspberrypi weewx[1308]: restx: StationRegistry: Registration not requested.
Mar 25 22:53:59 raspberrypi weewx[1308]: restx: Wunderground: Posting not enabled.
Mar 25 22:53:59 raspberrypi weewx[1308]: restx: PWSweather: Posting not enabled.
Mar 25 22:53:59 raspberrypi weewx[1308]: restx: CWOP: Posting not enabled.
Mar 25 22:53:59 raspberrypi weewx[1308]: restx: WOW: Posting not enabled.
Mar 25 22:53:59 raspberrypi weewx[1308]: restx: AWEKAS: Posting not enabled.
Mar 25 22:53:59 raspberrypi weewx[1308]: restx: Weather365: service version is 1.0.2
Mar 25 22:53:59 raspberrypi weewx[1308]: restx: Weather365: Data will be uploaded for station id L25CDPSV95
Mar 25 22:53:59 raspberrypi weewx[1308]: engine: Starting up weewx version 3.7.1
Mar 25 22:53:59 raspberrypi weewx[1308]: engine: Starting main packet loop.
Mar 25 22:56:09 raspberrypi weewx[1308]: cheetahgenerator: Generated 21 files for report StandardReport in 7.35 seconds
Mar 25 22:56:09 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sat Mar 25 22:56:39 2017 [try http://www.rsyslog.com/e/2007 ]
Mar 25 22:56:34 raspberrypi weewx[1308]: imagegenerator: Generated 49 images for StandardReport in 24.60 seconds
Mar 25 22:56:34 raspberrypi weewx[1308]: copygenerator: copied 9 files to /var/www/weewx
Mar 25 22:56:45 raspberrypi weewx[1308]: cheetahgenerator: Generated 16 files for report exfoliation in 10.48 seconds
Mar 25 22:56:45 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sat Mar 25 22:57:15 2017 [try http://www.rsyslog.com/e/2007 ]
Mar 25 22:57:19 raspberrypi wpa_supplicant[441]: wlan0: WPA: Group rekeying completed with 34:81:c4:d7:e2:b0 [GTK=TKIP]
Mar 25 22:57:19 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sat Mar 25 22:57:49 2017 [try http://www.rsyslog.com/e/2007 ]
Mar 25 22:57:21 raspberrypi weewx[1308]: imagegenerator: Generated 68 images for exfoliation in 36.27 seconds
Mar 25 22:57:21 raspberrypi weewx[1308]: copygenerator: copied 66 files to /var/www/weewx/exfoliation
Mar 25 22:58:06 raspberrypi weewx[1308]: cheetahgenerator: Generated 14 files for report StandardReport in 1.67 seconds
Mar 25 22:58:06 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sat Mar 25 22:59:06 2017 [try http://www.rsyslog.com/e/2007 ]
Mar 25 22:58:07 raspberrypi weewx[1308]: imagegenerator: Generated 12 images for StandardReport in 1.22 seconds
Mar 25 22:58:07 raspberrypi weewx[1308]: copygenerator: copied 0 files to /var/www/weewx
Mar 25 22:58:09 raspberrypi weewx[1308]: cheetahgenerator: Generated 8 files for report exfoliation in 1.68 seconds
Mar 25 22:58:12 raspberrypi weewx[1308]: imagegenerator: Generated 18 images for exfoliation in 2.55 seconds
Mar 25 22:58:12 raspberrypi weewx[1308]: copygenerator: copied 0 files to /var/www/weewx/exfoliation
Mar 25 22:58:12 raspberrypi systemd[1]: Starting Cleanup of Temporary Directories...
Mar 25 22:58:12 raspberrypi systemd[1]: Started Cleanup of Temporary Directories.
Mar 25 23:00:02 raspberrypi dhcpcd[465]: wlan0: Router Advertisement from fe80::3681:c4ff:fed7:e2ae
Mar 25 23:00:02 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sat Mar 25 23:01:02 2017 [try http://www.rsyslog.com/e/2007 ]
Mar 25 23:00:08 raspberrypi weewx[1308]: cheetahgenerator: Generated 14 files for report StandardReport in 1.70 seconds
Mar 25 23:00:11 raspberrypi weewx[1308]: imagegenerator: Generated 12 images for StandardReport in 2.35 seconds
Mar 25 23:00:11 raspberrypi weewx[1308]: copygenerator: copied 0 files to /var/www/weewx
Mar 25 23:00:13 raspberrypi weewx[1308]: cheetahgenerator: Generated 8 files for report exfoliation in 2.21 seconds
Mar 25 23:00:16 raspberrypi weewx[1308]: imagegenerator: Generated 18 images for exfoliation in 2.55 seconds
Mar 25 23:00:16 raspberrypi weewx[1308]: copygenerator: copied 0 files to /var/www/weewx/exfoliation

Thomas Keffer

unread,
Mar 25, 2017, 7:39:42 PM3/25/17
to weewx-user
Hi, Frank

A question: was this the first time you ran weewx after updating to v3.7.1?

-tk

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

Juan Antonio Mosquera

unread,
Mar 25, 2017, 7:58:18 PM3/25/17
to weewx-user
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

and 

wee_database weewx.conf --rebuild-daily

Restart... and work fine.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Frank Bandle

unread,
Mar 25, 2017, 8:17:46 PM3/25/17
to Thomas Keffer, weewx...@googlegroups.com
Hi Tom,

Yes it was the first start after updating 3.6.2 -> 3.7.1 

-frank

-- 
Frank Bandle
Sent with Airmail
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/ZXjuqhLz0UY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages