WEEWX report stopped generating html files

129 views
Skip to first unread message

willefg

unread,
Jun 8, 2021, 12:48:09 PM6/8/21
to weewx-user
Hi,

My WEEWX setup has been running OK for years. However, two days ago it suddenly stopped generating the index.html and telemetry.html pages of the seasons report. All other graphs are updated normally as do the live data files.

Do you have any idea what causes this? Could it be corrupt source files?

Thanks for your help!

vince

unread,
Jun 8, 2021, 1:22:30 PM6/8/21
to weewx-user
No idea if you don't set debug=1 and show us some logs.

willefg

unread,
Jun 8, 2021, 1:41:48 PM6/8/21
to weewx-user
This is part of the log I found which seems to address the issue: (I had Debug = 3 and saw my passwords are visible...)

_____________________________________

Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: Generate failed with exception '<type 'exceptions.TypeError'>'
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: **** Reason: 'UnknownType' object does not support indexing
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 326, in generate
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "cheetah__etc_weewx_skins_Seasons_index_html_tmpl_1623172843_99_16028.py", line 210, in respond
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1615, in _handleCheetahInclude
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****      self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_Seasons_sensors_inc.py", line 413, in respond
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_Seasons_sensors_inc.py", line 165, in __errorCatcher10
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "<string>", line 1, in <module>
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/units.py", line 1197, in raw
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****      return self.value_t[0]
Jun  8 19:35:20 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****  TypeError: 'UnknownType' object does not support indexing
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: Generate failed with exception '<type 'exceptions.TypeError'>'
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Seasons/telemetry.html.tmpl
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: **** Reason: 'UnknownType' object does not support indexing
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 326, in generate
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "cheetah__etc_weewx_skins_Seasons_telemetry_html_tmpl_1623172845_86_79357.py", line 194, in respond
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1615, in _handleCheetahInclude
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****      self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_Seasons_sensors_inc.py", line 413, in respond
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_Seasons_sensors_inc.py", line 165, in __errorCatcher10
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "<string>", line 1, in <module>
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/units.py", line 1197, in raw
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****      return self.value_t[0]
Jun  8 19:35:21 raspberrypi weewx[4486] ERROR weewx.cheetahgenerator: ****  TypeError: 'UnknownType' object does not support indexing




Op dinsdag 8 juni 2021 om 19:22:30 UTC+2 schreef vince:

Christopher Shaker

unread,
Jun 9, 2021, 1:21:56 PM6/9/21
to weewx-user
My weewx (ver 4.5.1-1) stopped generating reports at 4:00 AM, with no error messages.
I've now set debug=1, and turned off my crontab reboot, to try to collect some data when/if
it happens again.

Using Davis WMII, serial port, on RPi4 running Raspbian buster, fully up to date. I removed
Python 2 from my machine, and am only allowing Python 3. Using latest version of WMII
driver for Python3 from Jay Jaeger.

Chris Shaker
Reply all
Reply to author
Forward
0 new messages