Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#78846 - [home-assistant] producing core dumps / suspecting orjson
Attached to Project:
Arch Linux
Opened by srgdts (srgdts) - Tuesday, 20 June 2023, 23:00 GMT
Last edited by Maxime Gauduin (Alucryd) - Thursday, 22 June 2023, 06:38 GMT
Opened by srgdts (srgdts) - Tuesday, 20 June 2023, 23:00 GMT
Last edited by Maxime Gauduin (Alucryd) - Thursday, 22 June 2023, 06:38 GMT
|
DetailsDescription:
The home-assistant restarting producing a core dump on a JSON POST request to /api/onboarding/users Journalctl output: https://pastebin.com/raw/26AMLLv3 Coredump gdb bt output: https://pastebin.com/raw/fABUAz68 The orjson (3.8.12) shared library seems to cause the core dumps. Additional info: * package version(s): home-assistant 1:2023.6.2-1 * config and/or log files etc.: https://pastebin.com/raw/26AMLLv3, https://pastebin.com/raw/fABUAz68 Steps to reproduce: Fresh home-assistant install (rm -rf /var/lib/hass before). Navigate to the Web-UI, fill in /onboarding.html form, click "Create Account" button. |
This task depends upon
Closed by Maxime Gauduin (Alucryd)
Thursday, 22 June 2023, 06:38 GMT
Reason for closing: Upstream
Additional comments about closing: sudo -u hass /var/lib/hass/.venv/bin/pip install --force-reinstall --no-binary :all: orjson==3.8.12
Thursday, 22 June 2023, 06:38 GMT
Reason for closing: Upstream
Additional comments about closing: sudo -u hass /var/lib/hass/.venv/bin/pip install --force-reinstall --no-binary :all: orjson==3.8.12
> Program terminated with signal SIGILL, Illegal instruction.
That means your CPU tried to execute an instruction it doesn't understand. Now that a whole pile of foreign binary shite is downloaded into a venv, it's not surprising that errors like this can occur. Ugh, this whole hass thing smells a bit off to me..
In the meantime, With the home-assistant service running (so the dynamic user is available), can you try:
sudo -u hass /var/lib/hass/.venv/bin/pip install --force-reinstall --no-binary python-orjson==3.8.12
The following command line did it:
sudo -u hass /var/lib/hass/.venv/bin/pip install --force-reinstall --no-binary :all: orjson==3.8.12