Hi all!
Today my instance of Weewx crashed, “CRITICAL __main__: Caught unrecoverable exception:” and “ValueError: bad marshal data (unknown type code)” I’m running weewx version 4.5.1, using Python 3.7.3, platform Linux-5.10.11-v7l+-armv7l-with-debian-10.8 and locale is 'nb_NO.UTF-8'. I did a search in this forum and found three old cases that had the same error message. In one of the cases the solution was to run “*sudo find /usr/share/weewx -name "*.pyc" -delete”* This suggestion solved my problem today but I’m sharing this issue to the forum, it might be of use for anybody else? Regards, Terje A snip of the weewx.log file: Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: Caught unrecoverable exception: Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** bad marshal data (unknown type code) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** Traceback (most recent call last): Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewxd", line 157, in main Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** engine.run() Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 178, in run Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** self.dispatchEvent(weewx.Event(weewx.STARTUP)) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** callback(event) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 574, in startup Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** self._catchup(self.engine.console.genStartupRecords) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 692, in _catchup Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** origin='hardware')) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** callback(event) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewx/wxservices.py", line 101, in new_archive_record Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** self.do_calculations(event.record, self.archive_calc_dict) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewx/wxservices.py", line 123, in do_calculations Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** new_value = weewx.xtypes.get_scalar(obs_type, data_dict, self.db_manager) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewx/xtypes.py", line 73, in get_scalar Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** return xtype.get_scalar(obs_type, record, db_manager) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewx/wxxtypes.py", line 89, in get_scalar Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** return getattr(self, 'calc_%s' % obs_type)(obs_type, record, db_manager) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewx/wxxtypes.py", line 120, in calc_maxSolarRad Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** data['dateTime'], self.atc) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "/usr/share/weewx/weewx/wxformulas.py", line 425, in solar_rad_RS Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** from weewx.almanac import Almanac Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "<frozen importlib._bootstrap>", line 983, in _find_and_load Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "<frozen importlib._bootstrap>", line 677, in _load_unlocked Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "<frozen importlib._bootstrap_external>", line 724, in exec_module Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "<frozen importlib._bootstrap_external>", line 857, in get_code Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** File "<frozen importlib._bootstrap_external>", line 525, in _compile_bytecode Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** ValueError: bad marshal data (unknown type code) Jun 6 18:50:24 Verstasjon weewx[1245] CRITICAL __main__: **** Exiting. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/76e8656a-014e-4ac7-b14e-09669ff77ddfn%40googlegroups.com.
