Weewx log shows errors and images are not generated

377 views
Skip to first unread message

Rune Lægreid

unread,
Jul 22, 2018, 2:12:52 PM7/22/18
to weewx-user
I am receiving the following error messages when running weewx on a RPi with Vantage Pro2.

ul 22 20:01:01 WeatherPi weewx[733]: reportengine: Caught unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
Jul 22 20:01:01 WeatherPi weewx[733]: **** start time (1532210400) is greater than stop time (1532177400)
Jul 22 20:01:01 WeatherPi weewx[733]: **** Traceback (most recent call last):
Jul 22 20:01:01 WeatherPi weewx[733]: **** File "/home/weewx/bin/weewx/reportengine.py", line 239, in run
Jul 22 20:01:01 WeatherPi weewx[733]: **** obj.start()
Jul 22 20:01:01 WeatherPi weewx[733]: **** File "/home/weewx/bin/weewx/reportengine.py", line 273, in start
Jul 22 20:01:01 WeatherPi weewx[733]: **** self.run()
Jul 22 20:01:01 WeatherPi weewx[733]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 158, in run
Jul 22 20:01:01 WeatherPi weewx[733]: **** ngen = self.generate(gen_dict[section_name], self.gen_ts)
Jul 22 20:01:01 WeatherPi weewx[733]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate
Jul 22 20:01:01 WeatherPi weewx[733]: **** ngen += self.generate(section[subsection], gen_ts)
Jul 22 20:01:01 WeatherPi weewx[733]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate
Jul 22 20:01:01 WeatherPi weewx[733]: **** ngen += self.generate(section[subsection], gen_ts)
Jul 22 20:01:01 WeatherPi weewx[733]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 320, in generate
Jul 22 20:01:01 WeatherPi weewx[733]: **** default_binding)
Jul 22 20:01:01 WeatherPi weewx[733]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 372, in _getSearchList
Jul 22 20:01:01 WeatherPi weewx[733]: **** searchList += obj.get_extension_list(timespan, db_lookup)
Jul 22 20:01:01 WeatherPi weewx[733]: **** File "/home/weewx/bin/user/wdSearchX3.py", line 925, in get_extension_list
Jul 22 20:01:01 WeatherPi weewx[733]: **** (time_start_vt, time_stop_vt, wind_speed_vt) = db_lookup().getSqlVectors(TimeSpan(midnight_ts, timespan.stop),
Jul 22 20:01:01 WeatherPi weewx[733]: **** File "/home/weewx/bin/weeutil/weeutil.py", line 315, in __new__
Jul 22 20:01:01 WeatherPi weewx[733]: **** raise ValueError("start time (%d) is greater than stop time (%d)" % (args[0], args[1]))
Jul 22 20:01:01 WeatherPi weewx[733]: **** ValueError: start time (1532210400) is greater than stop time (1532177400)
Jul 22 20:01:01 WeatherPi weewx[733]: **** Generator terminated
Jul 22 20:01:02 WeatherPi weewx[733]: cheetahgenerator: Generated 1 files for report wdPWS in 0.51 seconds
Jul 22 20:01:04 WeatherPi weewx[733]: cheetahgenerator: Generated 1 files for report wdClientraw in 2.23 seconds
Jul 22 20:01:05 WeatherPi weewx[733]: imageStackedWindRose: Generated 1 images for wdStackedWindRose in 0.28 seconds
Jul 22 20:01:06 WeatherPi weewx[733]: cheetahgenerator: Generate failed with exception '<type 'exceptions.TypeError'>'
Jul 22 20:01:06 WeatherPi weewx[733]: cheetahgenerator: **** Ignoring template /home/weewx/skins/SteelGauges/customclientraw.txt.tmpl
Jul 22 20:01:06 WeatherPi weewx[733]: cheetahgenerator: **** Reason: not enough arguments for format string
Jul 22 20:01:06 WeatherPi weewx[733]: **** Traceback (most recent call last):
Jul 22 20:01:06 WeatherPi weewx[733]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Jul 22 20:01:06 WeatherPi weewx[733]: **** print >> _file, compiled_template
Jul 22 20:01:06 WeatherPi weewx[733]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Jul 22 20:01:06 WeatherPi weewx[733]: **** rc = getattr(self, mainMethName)()
Jul 22 20:01:06 WeatherPi weewx[733]: **** File "_home_weewx_skins_SteelGauges_customclientraw_txt_tmpl.py", line 445, in respond
Jul 22 20:01:06 WeatherPi weewx[733]: **** File "/home/weewx/bin/weewx/units.py", line 919, in format
Jul 22 20:01:06 WeatherPi weewx[733]: **** return self.toString(useThisFormat=format_string, NONE_string=NONE_string)
Jul 22 20:01:06 WeatherPi weewx[733]: **** File "/home/weewx/bin/weewx/units.py", line 904, in toString
Jul 22 20:01:06 WeatherPi weewx[733]: **** localize=localize)
Jul 22 20:01:06 WeatherPi weewx[733]: **** File "/home/weewx/bin/weewx/units.py", line 652, in toString
Jul 22 20:01:06 WeatherPi weewx[733]: **** val_str = locale.format_string(format_string, val_t[0])
Jul 22 20:01:06 WeatherPi weewx[733]: **** File "/usr/lib/python2.7/locale.py", line 254, in format_string
Jul 22 20:01:06 WeatherPi weewx[733]: **** return new_f % val
Jul 22 20:01:06 WeatherPi weewx[733]: **** TypeError: not enough arguments for format string
Jul 22 20:01:06 WeatherPi weewx[733]: cheetahgenerator: Generated 0 files for report wdSteelGauges in 1.29 seconds
Jul 22 20:01:06 WeatherPi weewx[733]: copygenerator: copied 6 files to /home/weewx/public_html/ss
Jul 22 20:01:08 WeatherPi weewx[733]: cheetahgenerator: Generated 2 files for report SteelSeries in 2.06 seconds
Jul 22 20:01:10 WeatherPi weewx[733]: imagegenerator: Generated 11 images for SteelSeries in 1.75 seconds


gjr80

unread,
Jul 22, 2018, 5:10:20 PM7/22/18
to weewx-user
Hi,

I know the log extract shows the error message(s), but could you post the entire log for a couple of complete archive periods.

Gary

Rune Lægreid

unread,
Jul 23, 2018, 7:12:46 AM7/23/18
to weewx-user
Hi Gary,

This is kind of embarrassing, but how/where do I find the entire log for a couple of complete archive periods?
Rune.

John Rively

unread,
Jul 23, 2018, 7:18:58 AM7/23/18
to weewx...@googlegroups.com
Let me know the make of your weather station as I am concerned that you may have some crazy data.


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

gjr80

unread,
Jul 23, 2018, 8:35:35 AM7/23/18
to weewx-user
Hi Rune,

You will usually find the WeeWX log entries in /var/log/syslog unless you have modified your install to put WeeWX log entries in another file (/var/log/weewx.log is commonly used). What we are after is at least a couple of cycles of saving a record to database and running the report suite.

Gary

Rune Lægreid

unread,
Jul 25, 2018, 3:58:03 PM7/25/18
to weewx-user
Here we go  :-)

Rune.
syslog

Rune Lægreid

unread,
Aug 1, 2018, 4:19:02 AM8/1/18
to weewx-user
Hi Gary,

Did you have time to look at the logs?

Rune.

mandag 23. juli 2018 14.35.35 UTC+2 skrev gjr80 følgende:

gjr80

unread,
Aug 1, 2018, 8:51:50 PM8/1/18
to weewx-user
Hi Rune,

My apologies I did forget you, an internet outage for a couple of days and by that time your post had dropped down the list. No excuse though.

Having a look at your log I suspect you may have corrupt station memory. If you look down the log around 17:00 25 July you will see that no archive records are being read from the station and consequently no archive records are being saved to database. Have a look at the Corrupt station memory section in the User's Guide. There are a couple of suggested fixes there, first try fix 1., power off to the console. Restart WeeWX and see if it runs error free. If you still have the same errors try using the Dump the logger memory, this won't fix the problem but it might help prevent loss of data when we do the next step. Once you have dumped the logger memory try fix 2., clear the console memory. Again restart WeeWX and see how it goes.

One other thing you might consider is a real time clock for your RPi or failing that delaying the WeeWX start until NTP has properly sync'd your clock. There are couple of instances of the station clock being reset in the log you posted, probably did not cause the issue you currently have but it can cause issues for WeeWX. If you don't go down the realtime clock path there are a number of threads in the forums on delaying the WeeWX startup, one only last month or so I think.

Let us know how you go.

Gary

Rune Lægreid

unread,
Aug 2, 2018, 9:08:02 AM8/2/18
to weewx-user
Hi again,

Lost contact with my station and will not have possibility to check it out before end of August.
I have had similar incidents over the past year. I swapped the RPi to the latest version some 6 months ago and it seemed to work for a while.
How likely is it that the station memory is corrupt beyond repair?
I have tried powering off the console a number of times and I have cleared the station memory. This seems to have fixed the issue for a short period of time.
Real time clock on the RPi might be my next attempt unless it is likely that the station is corrupt beyond repair :-(

Rune.

Rune Lægreid

unread,
Aug 3, 2018, 2:09:19 AM8/3/18
to weewx-user
Hi,
I have a Davis Vantage Pro2 weather station.

Rune.
Reply all
Reply to author
Forward
0 new messages