weewx error

60 views
Skip to first unread message

tds

unread,
May 21, 2017, 6:13:40 PM5/21/17
to weewx-user
I just realized that weewx had stopped inserting new records into database for about a week, even though the loop data was OK (and that's why I hadn't noticed the problem earlier as the RapidFire was still working). 

Further examination has revealed the following message:

● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (exited) since Sun 2017-05-21 15:04:25 PDT; 1s ago
  Process: 1219 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS)
  Process: 1237 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)

May 21 15:04:25 wxpi weewx[1251]: ****    File "/usr/share/weewx/weewx/engine.py", line 141, in loadServices
May 21 15:04:25 wxpi weewx[1251]: ****      self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))
May 21 15:04:25 wxpi weewx[1251]: ****    File "/usr/share/weewx/weewx/engine.py", line 491, in __init__
May 21 15:04:25 wxpi weewx[1251]: ****      self.setup_database(config_dict)
May 21 15:04:25 wxpi weewx[1251]: ****    File "/usr/share/weewx/weewx/engine.py", line 604, in setup_database
May 21 15:04:25 wxpi weewx[1251]: ****      _nrecs, _ndays = dbmanager.backfill_day_summary() # @UnusedVariable
May 21 15:04:25 wxpi weewx[1251]: ****    File "/usr/share/weewx/weewx/manager.py", line 1411, in backfill_day_summary
May 21 15:04:25 wxpi weewx[1251]: ****      timestamp_to_string(lastRecord)))
May 21 15:04:25 wxpi weewx[1251]: ****  ViolatedPrecondition: lastUpdate(2017-05-20 23:55:00 PDT (1495349700)) > lastRecord(2017-05-15 20:15:00 PDT (1494904500))
May 21 15:04:25 wxpi weewx[1251]: ****  Exiting.

What can I do to fix this problem? 

DS

gjr80

unread,
May 21, 2017, 6:28:12 PM5/21/17
to weewx-user
Hi,

Stop weeWX and rebuild your daily summaries:

wee_database --rebuild-daily

Gary

tds

unread,
May 21, 2017, 6:46:31 PM5/21/17
to weewx-user
Thanks, Gary. I discovered the wee_import utility and back ported the data from Wunderground to Weewx and it also fixed my problem at the same time, as it rebuilds the daily summary too.

tds

unread,
May 21, 2017, 6:57:54 PM5/21/17
to weewx-user
But it appears the problem I had initially (i.e., no record insertion by the manager) remains:

May 21 15:50:14 wxpi weewx[1388]: vantage: Getting archive packets since 2017-05-21 15:15:00 PDT (1495404900)
May 21 15:50:14 wxpi weewx[1388]: vantage: gentle wake up of console successful
May 21 15:50:16 wxpi weewx[1388]: vantage: Retrieving 513 page(s); starting index= 1
May 21 15:50:16 wxpi weewx[1388]: vantage: DMPAFT complete: page timestamp 2017-05-12 18:05:00 PDT (1494637500) less than final timestamp 2017-05-21 15:15:00 PDT (1495404900)
May 21 15:50:16 wxpi weewx[1388]: vantage: Catch up complete.
May 21 15:50:16 wxpi weewx[1388]: reportengine: Running reports for latest time in the database.
May 21 15:50:16 wxpi weewx[1388]: vantage: Requesting 200 LOOP packets.
May 21 15:50:16 wxpi weewx[1388]: reportengine: Running report StandardReport
May 21 15:50:16 wxpi weewx[1388]: vantage: gentle wake up of console successful
May 21 15:50:16 wxpi weewx[1388]: reportengine: Found configuration file /etc/weewx/skins/Standard/skin.conf for report StandardReport
May 21 15:50:16 wxpi weewx[1388]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
May 21 15:50:16 wxpi weewx[1388]: manager: Daily summary version is 1.0
May 21 15:50:18 wxpi weewx[1388]: manager: Daily summary version is 1.0
May 21 15:50:19 wxpi weewx[1388]: reportengine: Running report FTP
May 21 15:50:19 wxpi weewx[1388]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
May 21 15:50:19 wxpi weewx[1388]: ftpgenerator: FTP upload not requested. Skipped.
May 21 15:50:19 wxpi weewx[1388]: reportengine: Running report RSYNC
May 21 15:50:19 wxpi weewx[1388]: reportengine: Found configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC

gjr80

unread,
May 21, 2017, 7:13:45 PM5/21/17
to weewx-user
Did you explicitly do a rebuild with wee_database ? If not please do a rebuild with wee_database.

Gary

Dawning Sky

unread,
May 21, 2017, 7:31:05 PM5/21/17
to weewx...@googlegroups.com
I did and the problem remained. I end up stop the Vantage logger and
cleared its memory. It seemed working fine now.
> --
> 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/k74VJN33EAE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

gjr80

unread,
May 21, 2017, 7:36:10 PM5/21/17
to weewx-user
Yes, I should have read the log properly.


May 21 15:50:16 wxpi weewx[1388]: vantage: DMPAFT complete: page timestamp 2017-05-12 18:05:00 PDT (1494637500) less than final timestamp 2017-05-21 15:15:00 PDT (1495404900)

This one is quite different the original issue and is clearly a corrupt logger issue.

Gary

Dawning Sky

unread,
May 21, 2017, 7:44:09 PM5/21/17
to weewx...@googlegroups.com
I actually tried to diagnose the logger problem with WeatherLink
without success. wee_device to the rescue finally.
Reply all
Reply to author
Forward
0 new messages