Open steals opened 1 year ago
can you share the system log
journalctl -u home-assistant
dietpi@DietPi:~$ sudo journalctl -u home-assistant
Oct 17 07:51:24 DietPi systemd[1]: Started home-assistant.service - Home Assistant (DietPi).
Oct 17 07:51:54 DietPi Home Assistant[12734]: 2023-10-17 07:51:54.753 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration sonoff 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
Oct 17 07:51:54 DietPi Home Assistant[12734]: 2023-10-17 07:51:54.768 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
Oct 17 07:51:54 DietPi Home Assistant[12734]: 2023-10-17 07:51:54.778 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
Oct 17 07:51:54 DietPi Home Assistant[12734]: 2023-10-17 07:51:54.788 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
Oct 17 07:51:54 DietPi Home Assistant[12734]: 2023-10-17 07:51:54.798 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration gismeteo 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
Oct 17 07:51:54 DietPi Home Assistant[12734]: 2023-10-17 07:51:54.808 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration yandex_weather 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
Oct 17 07:52:25 DietPi Home Assistant[12734]: 2023-10-17 07:52:25.507 WARNING (MainThread) [homeassistant.setup] Setup of person is taking over 10 seconds.
Oct 17 07:52:25 DietPi Home Assistant[12734]: 2023-10-17 07:52:25.844 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
Oct 17 07:52:26 DietPi Home Assistant[12734]: 2023-10-17 07:52:26.214 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=362 from 2023-10-16 12:39:14.857642)
Oct 17 07:52:46 DietPi systemd[1]: home-assistant.service: Main process exited, code=killed, status=4/ILL
Oct 17 07:52:46 DietPi systemd[1]: home-assistant.service: Failed with result 'signal'.
Oct 17 07:52:46 DietPi systemd[1]: home-assistant.service: Consumed 1min 18.488s CPU time.
And if I run directly by home-assistant user:
homeassistant@DietPi:/home/dietpi$ . /home/homeassistant/pyenv-activate.sh
homeassistant@DietPi:~$ hass -c '/mnt/dietpi_userdata/homeassistant'
2023-10-17 07:58:17.149 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration sonoff 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-10-17 07:58:17.161 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-10-17 07:58:17.174 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-10-17 07:58:17.185 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-10-17 07:58:17.197 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration gismeteo 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-10-17 07:58:17.208 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration yandex_weather 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-10-17 07:58:47.869 WARNING (MainThread) [homeassistant.setup] Setup of person is taking over 10 seconds.
2023-10-17 07:58:48.188 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-10-17 07:58:48.586 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=363 from 2023-10-17 04:52:25.764815)
Illegal instruction
The system could not validate that the sqlite3 database at //mnt/dietpi_userdata/homeassistant/home-assistant_v2.db was shutdown cleanly
I think this is a symptom, not the issue. The SIGILL should be the problem. I hope that not some one of the Python modules dropped support for ARMv6. How did you update HA, just via pip
or via dietpi-software reinstall
?
I've updated with . /home/homeassistant/homeassistant-update.sh
, so basically via pip
I guess the root cause of the issue in one of the modules, as I remember that previously some modules were built locally during the installation of homeassitant but with the latest update all modules were installed with a prebuilt binaries.
I've created similar issue in the HA core repo https://github.com/home-assistant/core/issues/102220 maybe someone there can shed some light on the root cause
Do you have a system Python 3 instance and does it use piwheels?
cat /etc/pip.conf
For the record, the modules which should be compiled from source:
This will take a few more hours on my RPi Zero W. Will report back if this works and try to replace the compiled modules one by one with pre-compiled wheels from piwheels, if available. But will start with pyudev
, which is not installed here, but probably on first service start. If not, then it might be one of the integrations you use, which requires this module. Based on the error message, this one is what seems to cause the issue.
Interesting... I've rolled back to 2023.9.3 and it starts just fine without any Illegal Instrucructions. During the downgrade I've notied that only a few libs have been downgraded together with HA. They are awesomeversion-22.9.0 cryptography-41.0.3 orjson-3.9.2
. I've tried to install homeassistant==2023.10.1 with the versions of these libs as for 2023.9.3 and again got Illegal Instruction error. So it looks like something is added in the homeassistant core itself that causing that error
It works fine here, with the compiled modules. It might be however possible that the new HA version uses a new module, like pyudev
, while the older does not. So the problem would still be that said module is pulled form piwheels and is compiled with faulty flags there. Testing is so down slow on my RPi Zero W. There are other missing new build dependencies for HA now, so figuring out those first, then check beck regarding the piwheels pyudev
wheel.
Ok, the root cause of the issue is the webrtc-noise-gain
module that was introduced recently in HA 2023.10.1. After I uninstalled it and built locally HA back to normal.
Ah great. I just wanted to write that installing pyudev
and its dependency six
from piwheels does not cause issues. Is it that the webrtc-noise-gain
module from piwheels which causes the issue, or a source build as well? You could enforce it via:
pip3 install --no-binary ':all:' webrtc-noise-gain==1.2.3
... ah just testing to install the pre-compiled wheel here. The declaration looks fine: webrtc_noise_gain-1.2.3-cp311-cp311-linux_armv6l.whl
and ... yes this is the problem:
home-assistant.service: Main process exited, code=killed, status=4/ILL
So using the above command, you can enforce a functional source build of this wheel for your HA.
Reported at piwheels: https://github.com/piwheels/packages/issues/398
Creating a bug report/issue
Required Information
8.22.3
bookworm
Linux DietPi 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux
RPi B (armv6l)
Additional Information (if applicable)
Steps to reproduce
After upgrading Home Assistant to the latest version it fails to start due to the "Illegal Instruction" error. I believe this is because some of the libs were upgraded, and looks like one of them is not compiled correctly for the armv6 architecture. Could you please help to identify what lib is throwing that error?
Here is the fault.log