Closed MihaiKrieger closed 6 months ago
Try running HA for a couple of days with the custom components disabled. If that keeps running, start enabling them one by one. If it keeps crashing with the custom components disabled, we need to do more investigation.
Just want to add that I am also facing this issue, but I'm not sure whether it's exactly related. Nothing has changed other than the update so I suspect an add-on is broken to some extent.
HA seems to work perfect for a bit, then gradually slow down until it either recovers or just restarts itself.
I will try pad this out over the next few days with logs and findings, but I'm just putting in my observations for now.
Update: Found some issues with ui-lovelace-minimalist so I removed it and it also seemed that HAOS needs more than 4GB of memory now so I upped it to 6 and that seems to have stabilised things a little.
Short update from my side: I have disabled a suspicious (possibly faulty) bluetooth device and since then I haven't had this problem anymore. The integration was an official one ( LD2410BLE ). I am keeping an eye out and come back with news.
I also want to update that I think in my case it was a new dashboard I had made that was polling too many entities at once and overwhelming the server. It probably shouldn't be able to do that but it's easily mitigated.
Will update if I find it to be anything else.
I have this exact same problem, but when i disable Tuya integration (normal Tuya, not Local Tuya), the restarts stop. Don't know if this is Tuya related or (tuya) device related.. The last post in my logs before restart, is like this: Traceback (most recent call last): File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/local/lib/python3.11/threading.py", line 975, in run self._target(*self._args, *self._kwargs) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3591, in _thread_main self.loop_forever(retry_first_connection=True) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1164, in _loop rc = self.loop_read() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1556, in loop_read rc = self._packet_read() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 2439, in _packet_read rc = self._packet_handle() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle return self._handle_publish() ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish self._handle_on_message(message) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message on_message(self, self._userdata, message) File "/usr/local/lib/python3.11/site-packages/tuya_iot/openmq.py", line 147, in _on_message listener(msg_dict) File "/usr/local/lib/python3.11/site-packages/tuya_iot/device.py", line 172, in on_message self._on_device_report(data["devId"], data["status"]) File "/usr/local/lib/python3.11/site-packages/tuya_iot/device.py", line 191, in _on_device_report self.update_device(device) File "/usr/local/lib/python3.11/site-packages/tuya_iot/device.py", line 178, in update_device listener.update_device(device) File "/usr/src/homeassistant/homeassistant/components/tuya/init.py", line 256, in update_device dispatcher_send(self.hass, f"{TUYA_HA_SIGNAL_UPDATEENTITY}{device.id}") File "/usr/src/homeassistant/homeassistant/helpers/dispatcher.py", line 62, in dispatcher_send hass.loop.call_soon_threadsafe(async_dispatcher_send, hass, signal, args) File "/usr/local/lib/python3.11/asyncio/base_events.py", line 806, in call_soon_threadsafe self._check_closed() File "/usr/local/lib/python3.11/asyncio/base_events.py", line 519, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
My Home assistant is restarting at random points in time. Mostly I have noticed it being in the morning, but it could only be a coincidence, because the time stamps are not consistent. The machine running HA-OS is not rebooting nor loses power, only HA core is restarting. This has been happening for the past two weeks, inconsistently. Two weeks ago I had once day 2 restarts, the next day one, and than no restart for a week, when it happened again today morning. I am attaching the logs, as I am not able to pin-point a cause. For me it looks like some kind of code execution loop that leads the HA Core to crash. Any help or recommendation would be helpful
What version of Home Assistant Core has the issue?
core-2023.6.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
The logs are starting from the moment I have noticed there is a problem. Here is the full version attached, exported from HA home-assistant.log