MQTTSubscribe hang

65 views
Skip to first unread message

enu...@gmail.com

unread,
Jan 25, 2022, 3:09:19 PM1/25/22
to weewx-user
it has happened to me several times ramdomly
the log
Jan 25 18:35:55 raspberrypi weewx[700] INFO user.sdr: shutdown process rtl_433 -q -F json -R 32 -M utc -M level -f 868.3M -Y classic
Jan 25 18:35:55 raspberrypi weewx[700] CRITICAL __main__: Caught unrecoverable exception:
Jan 25 18:35:55 raspberrypi weewx[700] CRITICAL __main__:     ****  can't start new thread
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****  Traceback (most recent call last):
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 151, in main
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 93, in __init__
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****      self.loadServices(config_dict)
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self, config_dict)
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****    File "/usr/share/weewx/user/MQTTSubscribe.py", line 1787, in __init__
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****      self.subscriber.start()
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****    File "/usr/share/weewx/user/MQTTSubscribe.py", line 1705, in start
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****      self.client.loop_start()
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****    File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 1822, in loop_start
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****      self._thread.start()
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****    File "/usr/lib/python3.9/threading.py", line 874, in start
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****      _start_new_thread(self._bootstrap, ())
Jan 25 18:35:57 raspberrypi weewx[700] CRITICAL __main__:     ****  RuntimeError: can't start new thread
Jan 25 18:35:58 raspberrypi weewx[700] CRITICAL __main__:     ****  Exiting.

bell...@gmail.com

unread,
Jan 27, 2022, 10:38:05 AM1/27/22
to weewx-user
The log snippet is not giving us much to work with. It looks like WeeWX is trying to load MQTTSubscribe. Is this happening when WeeWX is started? Did WeeWX crash and is restarting? What happens after this? Does WeeWX exit? Since a thread cannot be started, it seems like a system resource issue... What else is running on your Pi? How does the memory usage look,? etc....
rich
Reply all
Reply to author
Forward
0 new messages