Shutdown HP1000

63 views
Skip to first unread message

ried...@gmail.com

unread,
Nov 25, 2021, 10:14:38 AM11/25/21
to weewx-user
Hello
Unfortunately, weewx keeps crashing after a Linux update.
I once attached the log from the syslog. Maybe someone can help.
As hardware I have an HP1000 weather station with Hp driver and a virtual server (Linux Ubuntu) on a disk station DS 218+.
The whole thing lasted a few months. Until I did abt-get updat and upgrade.

Greetings André


Nov 25 16:06:47 weewx weewx[86060] INFO weewx.engine: Main loop exiting. Shutting engine down.
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: Caught unrecoverable exception:
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****  unpack requires a buffer of 4 bytes
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****  Traceback (most recent call last):
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 157, in main
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****      engine.run()
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 178, in run
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****      self.dispatchEvent(weewx.Event(weewx.STARTUP))
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****      callback(event)
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 574, in startup
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****      self._catchup(self.engine.console.genStartupRecords)
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 687, in _catchup
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****      for record in generator(lastgood_ts):
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****    File "/usr/share/weewx/user/HP1000.py", line 904, in genStartupRecords
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****      rec_packet = self.getHistoryData(year, record_count, start_record)
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****    File "/usr/share/weewx/user/HP1000.py", line 791, in getHistoryData
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****      pkt_length = struct.unpack('I', rx_data[32:36])[0]
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****  struct.error: unpack requires a buffer of 4 bytes
Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__:     ****  Exiting.

Tom Keffer

unread,
Nov 25, 2021, 4:08:32 PM11/25/21
to weewx-user
I would also suggest posting to the HP1000 "Issues" list. https://github.com/AussieSusan/HP1000/issues

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0b1d6853-14de-451f-aa8b-ddfcc4120bfbn%40googlegroups.com.

Susan Mackay

unread,
Nov 25, 2021, 11:45:02 PM11/25/21
to weewx-user
I wrote that driver - so thank you for putting 'HP1000'  in the title; I really can't read through all messages looking for the occasional one like this.
What version of the OS are you running - you mentioned performing a recent update: from what and to what?
Also have you moved from Python 2 to Python 3 as that was a trigger for this in the past?
Finally what version of the HP1000 driver are you using - the latest version on Python 3 should not be doing this now?
Just for kicks, what version of WeeWx are you using? I've tested it running V4.1 but I'm not aware of any breaking changes in later versions of WeeWx.
Susan

Reply all
Reply to author
Forward
0 new messages