I will add a prompt to dietpi-software
to inform users about the possible need to restart the service. We have it in our docs, but naturally not everyone is reading everything.
Funny enough, I knew the command to restart the service because I read the instructions the first time I installed HomeAssistant on DietPi
I just didn’t think about needing to use it when updating/reinstalling it.
Thank you for all of the effort and hard work.
While on my raspberry pi B2 i gave “dietpi-software reinstall 157” command. the installation brokes with error. My raspberry pi B2 already migrated to bookworm & upto date through ‘dietpi-update’ command.
Your current issue is unrelated to the above topic. Have a look to The following packages have been kept back: ffmpeg
I have applied the hot patch for homeassistant, then I tried to upgrade home-assistant on my raspberry Pi-B2 (32 bit CPU & operating system) & system fail .
logs are on this page of dietpi forum
Did you already tried a reinstall? Can you share the entire reinstall log
dietpi-software reinstall 157
I gave two three time ‘/home/homeassistant/homeassistant-update.sh’ command & ‘dietpi-software reinstall 157’ . my raspbeerry pi B2 fail many times & system halt in middle. but in last it is able to handle these command. & system able to upgrade homeassistant & python 3.11. so i guess the new patch allow to upgrade homeassistant in raspberry pi B2 (32 bit cpu). thanks
means it is working for you again?
HI all,
I had problems with home assistant where couple of components where not working like mobile, cloud etc…
First step i did is to upgrade distribution to bookworm. During upgrade homeassistant was reinstalled.
After couple of hourse home assistant is up and finaly everything is working as expected. Tuya, xiaomi, midea ac everything is working.
Only problem is that every night my home assistant crash and in the morning home assistant is working but none of integrations are working. Simple systemctl restart homeassistant solve problems.
In log i cant find anything suspicious.
Do you know how can i debug what is happening during night?
System crashes at 01:57
Kind regards
Does HA is the only app failing? You can check logs
journalctl -u homeassistant
root@DietPi:~# journalctl -u homeassistant
-- No entries -
root@DietPi:/mnt/dietpi_userdata/homeassistant# cat home-assistant.log.1
2023-07-25 01:57:29.112 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration midea_ac_lan which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.125 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration midea_ac which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.131 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration ble_monitor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.143 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration auto_backup which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.149 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration samsungtv_tizen which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.161 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration oralb_ble which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.166 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.172 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration xiaomi_miot which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.177 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration dwains_dashboard which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.183 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration ui_lovelace_minimalist which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.188 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration localtuya which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.192 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration xiaomi_gateway3 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:29.197 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration miwifi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-07-25 01:57:46.769 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //mnt/dietpi_userdata/homeassistant/home-assistant_v2.db was shutdown cleanly
2023-07-25 01:58:09.319 WARNING (MainThread) [py.warnings] /mnt/dietpi_userdata/homeassistant/custom_components/samsungtv_tizen/media_player.py:703: RuntimeWarning: coroutine 'SamsungTVDevice._gen_installed_app_list' was never awaited
Ah my fault. Name of service was not correct
journalctl -u home-assistant
You are running some kind of daily backup?
Jul 25 01:15:34 DietPi Home Assistant[23351]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Jul 25 01:15:34 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:15:34 DietPi Home Assistant[23351]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
Jul 25 01:16:34 DietPi Home Assistant[23351]: 2023-07-25 01:16:34.232 ERROR (Thread-567) [root] Uncaught thread exception
Jul 25 01:16:34 DietPi Home Assistant[23351]: Traceback (most recent call last):
Jul 25 01:16:34 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 25 01:16:34 DietPi Home Assistant[23351]: self.run()
Jul 25 01:16:34 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/custom_components/ble_monitor/__init__.py", line 633, in run
Jul 25 01:16:34 DietPi Home Assistant[23351]: mysocket[hci] = aiobs.create_bt_socket(hci)
Jul 25 01:16:34 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:16:34 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/aioblescan/aioblescan.py", line 1691, in create_bt_socket
Jul 25 01:16:34 DietPi Home Assistant[23351]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Jul 25 01:16:34 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:16:34 DietPi Home Assistant[23351]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
Jul 25 01:17:34 DietPi Home Assistant[23351]: 2023-07-25 01:17:34.395 ERROR (Thread-568) [root] Uncaught thread exception
Jul 25 01:17:34 DietPi Home Assistant[23351]: Traceback (most recent call last):
Jul 25 01:17:34 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 25 01:17:34 DietPi Home Assistant[23351]: self.run()
Jul 25 01:17:34 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/custom_components/ble_monitor/__init__.py", line 633, in run
Jul 25 01:17:34 DietPi Home Assistant[23351]: mysocket[hci] = aiobs.create_bt_socket(hci)
Jul 25 01:17:34 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:17:34 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/aioblescan/aioblescan.py", line 1691, in create_bt_socket
Jul 25 01:17:34 DietPi Home Assistant[23351]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Jul 25 01:17:34 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:17:34 DietPi Home Assistant[23351]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
Jul 25 01:18:34 DietPi Home Assistant[23351]: 2023-07-25 01:18:34.593 ERROR (Thread-569) [root] Uncaught thread exception
Jul 25 01:18:34 DietPi Home Assistant[23351]: Traceback (most recent call last):
Jul 25 01:18:34 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 25 01:18:34 DietPi Home Assistant[23351]: self.run()
Jul 25 01:18:34 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/custom_components/ble_monitor/__init__.py", line 633, in run
Jul 25 01:18:34 DietPi Home Assistant[23351]: mysocket[hci] = aiobs.create_bt_socket(hci)
Jul 25 01:18:34 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:18:34 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/aioblescan/aioblescan.py", line 1691, in create_bt_socket
Jul 25 01:18:34 DietPi Home Assistant[23351]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Jul 25 01:18:34 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:18:34 DietPi Home Assistant[23351]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
Jul 25 01:19:34 DietPi Home Assistant[23351]: 2023-07-25 01:19:34.747 ERROR (Thread-570) [root] Uncaught thread exception
Jul 25 01:19:34 DietPi Home Assistant[23351]: Traceback (most recent call last):
Jul 25 01:19:34 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 25 01:19:34 DietPi Home Assistant[23351]: self.run()
Jul 25 01:19:34 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/custom_components/ble_monitor/__init__.py", line 633, in run
Jul 25 01:19:34 DietPi Home Assistant[23351]: mysocket[hci] = aiobs.create_bt_socket(hci)
Jul 25 01:19:34 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:19:34 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/aioblescan/aioblescan.py", line 1691, in create_bt_socket
Jul 25 01:19:34 DietPi Home Assistant[23351]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Jul 25 01:19:34 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:19:34 DietPi Home Assistant[23351]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
Jul 25 01:20:34 DietPi Home Assistant[23351]: 2023-07-25 01:20:34.898 ERROR (Thread-571) [root] Uncaught thread exception
Jul 25 01:20:34 DietPi Home Assistant[23351]: Traceback (most recent call last):
Jul 25 01:20:34 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 25 01:20:34 DietPi Home Assistant[23351]: self.run()
Jul 25 01:20:34 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/custom_components/ble_monitor/__init__.py", line 633, in run
Jul 25 01:20:34 DietPi Home Assistant[23351]: mysocket[hci] = aiobs.create_bt_socket(hci)
Jul 25 01:20:34 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:20:34 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/aioblescan/aioblescan.py", line 1691, in create_bt_socket
Jul 25 01:20:34 DietPi Home Assistant[23351]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Jul 25 01:20:34 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:20:34 DietPi Home Assistant[23351]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
Jul 25 01:21:35 DietPi Home Assistant[23351]: 2023-07-25 01:21:35.055 ERROR (Thread-572) [root] Uncaught thread exception
Jul 25 01:21:35 DietPi Home Assistant[23351]: Traceback (most recent call last):
Jul 25 01:21:35 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 25 01:21:35 DietPi Home Assistant[23351]: self.run()
Jul 25 01:21:35 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/custom_components/ble_monitor/__init__.py", line 633, in run
Jul 25 01:21:35 DietPi Home Assistant[23351]: mysocket[hci] = aiobs.create_bt_socket(hci)
Jul 25 01:21:35 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:21:35 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/aioblescan/aioblescan.py", line 1691, in create_bt_socket
Jul 25 01:21:35 DietPi Home Assistant[23351]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Jul 25 01:21:35 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:21:35 DietPi Home Assistant[23351]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
Jul 25 01:22:35 DietPi Home Assistant[23351]: 2023-07-25 01:22:35.224 ERROR (Thread-573) [root] Uncaught thread exception
Jul 25 01:22:35 DietPi Home Assistant[23351]: Traceback (most recent call last):
Jul 25 01:22:35 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 25 01:22:35 DietPi Home Assistant[23351]: self.run()
Jul 25 01:22:35 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/custom_components/ble_monitor/__init__.py", line 633, in run
Jul 25 01:22:35 DietPi Home Assistant[23351]: mysocket[hci] = aiobs.create_bt_socket(hci)
Jul 25 01:22:35 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:22:35 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/aioblescan/aioblescan.py", line 1691, in create_bt_socket
Jul 25 01:22:35 DietPi Home Assistant[23351]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Jul 25 01:22:35 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:22:35 DietPi Home Assistant[23351]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
Jul 25 01:23:35 DietPi Home Assistant[23351]: 2023-07-25 01:23:35.612 ERROR (Thread-574) [root] Uncaught thread exception
Jul 25 01:23:35 DietPi Home Assistant[23351]: Traceback (most recent call last):
Jul 25 01:23:35 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 25 01:23:35 DietPi Home Assistant[23351]: self.run()
Jul 25 01:23:35 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/custom_components/ble_monitor/__init__.py", line 633, in run
Jul 25 01:23:35 DietPi Home Assistant[23351]: mysocket[hci] = aiobs.create_bt_socket(hci)
Jul 25 01:23:35 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:23:35 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/aioblescan/aioblescan.py", line 1691, in create_bt_socket
Jul 25 01:23:35 DietPi Home Assistant[23351]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Jul 25 01:23:35 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:23:35 DietPi Home Assistant[23351]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
Jul 25 01:24:35 DietPi Home Assistant[23351]: 2023-07-25 01:24:35.790 ERROR (Thread-575) [root] Uncaught thread exception
Jul 25 01:24:35 DietPi Home Assistant[23351]: Traceback (most recent call last):
Jul 25 01:24:35 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 25 01:24:35 DietPi Home Assistant[23351]: self.run()
Jul 25 01:24:35 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/custom_components/ble_monitor/__init__.py", line 633, in run
Jul 25 01:24:35 DietPi Home Assistant[23351]: mysocket[hci] = aiobs.create_bt_socket(hci)
Jul 25 01:24:35 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:24:35 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/aioblescan/aioblescan.py", line 1691, in create_bt_socket
Jul 25 01:24:35 DietPi Home Assistant[23351]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Jul 25 01:24:35 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:24:35 DietPi Home Assistant[23351]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
Jul 25 01:25:35 DietPi Home Assistant[23351]: 2023-07-25 01:25:35.980 ERROR (Thread-576) [root] Uncaught thread exception
Jul 25 01:25:35 DietPi Home Assistant[23351]: Traceback (most recent call last):
Jul 25 01:25:35 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 25 01:25:35 DietPi Home Assistant[23351]: self.run()
Jul 25 01:25:35 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/custom_components/ble_monitor/__init__.py", line 633, in run
Jul 25 01:25:35 DietPi Home Assistant[23351]: mysocket[hci] = aiobs.create_bt_socket(hci)
Jul 25 01:25:35 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:25:35 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/aioblescan/aioblescan.py", line 1691, in create_bt_socket
Jul 25 01:25:35 DietPi Home Assistant[23351]: family=socket.AF_BLUETOOTH, type=socket.SOCK_RAW, proto=socket.BTPROTO_HCI
Jul 25 01:25:35 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:25:35 DietPi Home Assistant[23351]: AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'
Jul 25 01:26:04 DietPi systemd[1]: Stopping home-assistant.service - Home Assistant (DietPi)...
Jul 25 01:26:06 DietPi Home Assistant[23351]: Found 3 non-daemonic threads.
Jul 25 01:26:07 DietPi Home Assistant[23351]: 2023-07-25 01:26:07.580 ERROR (Thread-483 (_thread_main)) [root] Uncaught thread exception
Jul 25 01:26:07 DietPi Home Assistant[23351]: Traceback (most recent call last):
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
Jul 25 01:26:07 DietPi Home Assistant[23351]: self.run()
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 975, in run
Jul 25 01:26:07 DietPi Home Assistant[23351]: self._target(*self._args, **self._kwargs)
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/paho/mqtt/client.py", line 3591, in _thread_main
Jul 25 01:26:07 DietPi Home Assistant[23351]: self.loop_forever(retry_first_connection=True)
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
Jul 25 01:26:07 DietPi Home Assistant[23351]: rc = self._loop(timeout)
Jul 25 01:26:07 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/paho/mqtt/client.py", line 1164, in _loop
Jul 25 01:26:07 DietPi Home Assistant[23351]: rc = self.loop_read()
Jul 25 01:26:07 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/paho/mqtt/client.py", line 1556, in loop_read
Jul 25 01:26:07 DietPi Home Assistant[23351]: rc = self._packet_read()
Jul 25 01:26:07 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/paho/mqtt/client.py", line 2439, in _packet_read
Jul 25 01:26:07 DietPi Home Assistant[23351]: rc = self._packet_handle()
Jul 25 01:26:07 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle
Jul 25 01:26:07 DietPi Home Assistant[23351]: return self._handle_publish()
Jul 25 01:26:07 DietPi Home Assistant[23351]: ^^^^^^^^^^^^^^^^^^^^^^
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish
Jul 25 01:26:07 DietPi Home Assistant[23351]: self._handle_on_message(message)
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
Jul 25 01:26:07 DietPi Home Assistant[23351]: on_message(self, self._userdata, message)
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/tuya_iot/openmq.py", line 147, in _on_message
Jul 25 01:26:07 DietPi Home Assistant[23351]: listener(msg_dict)
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/tuya_iot/device.py", line 172, in on_message
Jul 25 01:26:07 DietPi Home Assistant[23351]: self._on_device_report(data["devId"], data["status"])
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/tuya_iot/device.py", line 191, in _on_device_report
Jul 25 01:26:07 DietPi Home Assistant[23351]: self.__update_device(device)
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/tuya_iot/device.py", line 178, in __update_device
Jul 25 01:26:07 DietPi Home Assistant[23351]: listener.update_device(device)
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/components/tuya/__init__.py", line 260, in update_device
Jul 25 01:26:07 DietPi Home Assistant[23351]: dispatcher_send(self.hass, f"{TUYA_HA_SIGNAL_UPDATE_ENTITY}_{device.id}")
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/helpers/dispatcher.py", line 62, in dispatcher_send
Jul 25 01:26:07 DietPi Home Assistant[23351]: hass.loop.call_soon_threadsafe(async_dispatcher_send, hass, signal, *args)
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 806, in call_soon_threadsafe
Jul 25 01:26:07 DietPi Home Assistant[23351]: self._check_closed()
Jul 25 01:26:07 DietPi Home Assistant[23351]: File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 519, in _check_closed
Jul 25 01:26:07 DietPi Home Assistant[23351]: raise RuntimeError('Event loop is closed')
Jul 25 01:26:07 DietPi Home Assistant[23351]: RuntimeError: Event loop is closed
Jul 25 01:26:21 DietPi systemd[1]: home-assistant.service: Deactivated successfully.
Jul 25 01:26:21 DietPi systemd[1]: Stopped home-assistant.service - Home Assistant (DietPi).
Jul 25 01:26:21 DietPi systemd[1]: home-assistant.service: Consumed 1h 37min 14.982s CPU time.
Jul 25 01:57:03 DietPi systemd[1]: Started home-assistant.service - Home Assistant (DietPi).
HA seems to be stopped for daily backup and restarted afterwards.
I will disable daily backup and test if HA survives night.
Thank you for help.
Kind regards
or you exclude HA from being stoppen. However HA should restart after backup finished.
The error message you see in the logs comes from HA beeing compiled without bluetooth support, so you may have not intsalled the packages bluetooth
and/or libbluetooth-dev
as you were installing homeassitant.
IDK if this can break the app after the the daily backups but it looks like.
Installed libbluetooth-dev. Do i need to reinstall home assistant or i can repair without reinstalling?
Thanks
usually a reinstall would be needed to compile missing python module.