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

On Tuesday, 25 January 2022 at 15:09:19 UTC-5 [email protected] wrote:

> 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.
>

-- 
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/b0cdbfcf-ecf1-4347-9807-2b12d8e69004n%40googlegroups.com.

Reply via email to