Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home Assistant 2023.10.3 failed to start on armv6 (Illegal instruction) #102220

Closed
steals opened this issue Oct 18, 2023 · 7 comments
Closed

Home Assistant 2023.10.3 failed to start on armv6 (Illegal instruction) #102220

steals opened this issue Oct 18, 2023 · 7 comments

Comments

@steals
Copy link

steals commented Oct 18, 2023

The problem

After upgrading Home Assistant to the latest version (2023.10.3) it fails to start due to the "Illegal Instruction" error on Raspberry Pi 1 (armv6).

Here is the log file

homeassistant@DietPi:~$ cat /home/homeassistant/.homeassistant/home-assistant.log
2023-10-18 13:39:35.883 WARNING (MainThread) [homeassistant.setup] Setup of person is taking over 10 seconds.
2023-10-18 13:39:36.200 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-18 13:39:36.592 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=370 from 2023-10-18 10:37:09.955171)

Here is the fault.log

homeassistant@DietPi:~$ cat .homeassistant/home-assistant.log.fault
Fatal Python error: Illegal instruction

Thread 0xae97b420 (most recent call first):
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/pyudev/_util.py", line 164 in eintr_retry_call
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/pyudev/_os/poll.py", line 94 in poll
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/pyudev/_util.py", line 164 in eintr_retry_call
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/pyudev/monitor.py", line 537 in run
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 995 in _bootstrap

Thread 0xaf266420 (most recent call first):
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 320 in wait
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/concurrent/futures/_base.py", line 451 in result
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/components/recorder/core.py", line 680 in _wait_startup_or_shutdown
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/components/recorder/core.py", line 739 in _run
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/components/recorder/core.py", line 691 in run
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 995 in _bootstrap

Thread 0xb10fb420 (most recent call first):
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 975 in run
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 995 in _bootstrap

Thread 0xb18fc420 (most recent call first):
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 975 in run
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 995 in _bootstrap

Thread 0xb20fd420 (most recent call first):
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 975 in run
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 995 in _bootstrap

Thread 0xb30ff420 (most recent call first):
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 975 in run
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 995 in _bootstrap

Thread 0xb3aff420 (most recent call first):
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 975 in run
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 995 in _bootstrap

Thread 0xb4489420 (most recent call first):
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/logging/handlers.py", line 1528 in dequeue
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/logging/handlers.py", line 1579 in _monitor
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 975 in run
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/threading.py", line 995 in _bootstrap

Current thread 0xb6f36020 (most recent call first):
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 1233 in create_module
  File "<frozen importlib._bootstrap>", line 573 in module_from_spec
  File "<frozen importlib._bootstrap>", line 676 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1147 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1176 in _find_and_load
  File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.11/site-packages/webrtc_noise_gain/__init__.py", line 1 in <module>
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 940 in exec_module
  File "<frozen importlib._bootstrap>", line 690 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1147 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1176 in _find_and_load
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/components/assist_pipeline/pipeline.py", line 19 in <module>
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 940 in exec_module
  File "<frozen importlib._bootstrap>", line 690 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1147 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1176 in _find_and_load
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/components/assist_pipeline/__init__.py", line 14 in <module>
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 940 in exec_module
  File "<frozen importlib._bootstrap>", line 690 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1147 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1176 in _find_and_load
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1232 in _handle_fromlist
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/components/cloud/http_api.py", line 19 in <module>
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 940 in exec_module
  File "<frozen importlib._bootstrap>", line 690 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1147 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1176 in _find_and_load
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1232 in _handle_fromlist
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/components/cloud/__init__.py", line 35 in <module>
  File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 940 in exec_module
  File "<frozen importlib._bootstrap>", line 690 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1147 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1176 in _find_and_load
  File "<frozen importlib._bootstrap>", line 1204 in _gcd_import
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/importlib/__init__.py", line 126 in import_module
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/loader.py", line 818 in get_component
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/setup.py", line 215 in _async_setup_component
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/asyncio/events.py", line 80 in _run
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 1922 in _run_once
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 607 in run_forever
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/asyncio/base_events.py", line 640 in run_until_complete
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/runner.py", line 186 in run
  File "/home/homeassistant/.pyenv/versions/3.11.4/lib/python3.11/site-packages/homeassistant/__main__.py", line 204 in main
  File "/home/homeassistant/.pyenv/versions/3.11.4/bin/hass", line 8 in <module>

Extension modules: _cffi_backend, multidict._multidict, yarl._quoting_c, ciso8601, aiohttp._helpers, aiohttp._http_writer, aiohttp._http_parser, aiohttp._websocket, frozenlist._frozenlist, ulid_transform._ulid_impl, markupsafe._speedups, PIL._imaging, sqlalchemy.cyextension.collections, sqlalchemy.cyextension.immutabledict, sqlalchemy.cyextension.processors, sqlalchemy.cyextension.resultproxy, sqlalchemy.cyextension.util, fnv_hash_fast._fnv_impl, dbus_fast.signature, dbus_fast._private.marshaller, dbus_fast.message, dbus_fast.service, dbus_fast._private.address, dbus_fast.unpack, dbus_fast.message_bus, dbus_fast._private.unmarshaller, dbus_fast.aio.message_reader, home_assistant_bluetooth.models, zeroconf._utils.time, zeroconf._dns, zeroconf._protocol.outgoing, zeroconf._protocol.incoming, zeroconf._cache, zeroconf._updates, zeroconf._handlers.record_manager, zeroconf._listener, zeroconf._handlers.answers, zeroconf._handlers.multicast_outgoing_queue, zeroconf._history, zeroconf._services.info, zeroconf._services.registry, zeroconf._handlers.query_handler, zeroconf._services.browser, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator (total: 56)

What version of Home Assistant Core has the issue?

2023.10.3

What was the last working version of Home Assistant Core?

2023.9.1

What type of installation are you running?

Home Assistant Core

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?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @balloob, @synesthesiam, mind taking a look at this issue as it has been labeled with an integration (assist_pipeline) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of assist_pipeline can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign assist_pipeline Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


assist_pipeline documentation
assist_pipeline source
(message by IssueLinks)

@steals
Copy link
Author

steals commented Oct 19, 2023

Hello @balloob and @synesthesiam I've confirmed that prebuilt version of the webrtc-noise-gain causing an Illegal instruction error on Rpi 1 (armv6) and therefore causing HA to not load. After I rebuilt the library locally HA started without issues.

@synesthesiam
Copy link
Contributor

@steals Did you need any special flags when building?

@steals
Copy link
Author

steals commented Oct 21, 2023

No. I've installed it through pip install webrtc-noise-gain --no-binary webrtc-noise-gain and it was built successfully.

@HiDiHo01
Copy link

HiDiHo01 commented Oct 21, 2023

pip install webrtc-noise-gain --no-binary webrtc-noise-gain

Collecting webrtc-noise-gain
Using cached webrtc_noise_gain-1.2.3.tar.gz (3.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1

File "C:\Users\me.mydomain\AppData\Local\Temp\pip-build-env-andzzjsk\overlay\Lib\site-packages\setuptools\command\egg_info.py", line 485, in append
path = convert_path(item)
^^^^^^^^^^^^^^^^^^
File "C:\Users\me.mydomain\AppData\Local\Temp\pip-build-env-andzzjsk\overlay\Lib\site-packages\setuptools_distutils\util.py", line 139, in convert_path
raise ValueError("path '%s' cannot be absolute" % pathname)
ValueError: path '/home/hansenm/opt/webrtc-noise-gain/python.cpp' cannot be absolute
[end of output]

@JsBergbau
Copy link

I also get the error illegal instruction on armv6
Sadly I don't get any error message expect Illegal instruction when executing a freshly installed Home Assistant without running for the first time on armv6 / Raspberry Pi Zero W
With the help of #94228 I found out that it is at least jwt python -c "import jwt" gives the Illegal Instruction error.

May it be related to piwheels/packages#270 / piwheels/packages#276 ?

@issue-triage-workflows
Copy link

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.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants