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

Does not work, connection loss at the initial stage of configuration #60

Open
ma3uk opened this issue Dec 14, 2024 · 1 comment
Open

Comments

@ma3uk
Copy link

ma3uk commented Dec 14, 2024

OpenWRT x86 23.05.5 (Intel N100 CPU)
The installation is error-free. After rebooting the router, I successfully log on to the page, create an account, but at the moment of choosing which data can be collected, the connection is disconnected and the HA falls off, i.e. after updating the page, it no longer opens. After a reboot, HA rises again, but when you enter the page, a message about connection loss and crash immediately pops up. Please help me very much

In the logs, this is:

Fatal Python error: Illegal instruction

Current thread 0x00007f4a68885b38 (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 "/usr/lib/python3.11/site-packages/numpy/core/overrides.py", line 6 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 "/usr/lib/python3.11/site-packages/numpy/core/multiarray.py", line 10 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 "/usr/lib/python3.11/site-packages/numpy/core/__init__.py", line 23 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 "/usr/lib/python3.11/site-packages/numpy/__init__.py", line 141 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 "/usr/lib/python3.11/site-packages/homeassistant/components/stream/core.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 "/usr/lib/python3.11/site-packages/homeassistant/components/stream/__init__.py", line 61 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 "/usr/lib/python3.11/site-packages/homeassistant/components/camera/__init__.py", line 30 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 "/usr/lib/python3.11/site-packages/homeassistant/helpers/selector.py", line 91 in _entity_features
  File "/usr/lib/python3.11/site-packages/homeassistant/helpers/selector.py", line 135 in _validate_supported_feature
  File "/usr/lib/python3.11/site-packages/homeassistant/helpers/selector.py", line 160 in _validate_supported_features
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 818 in validate_callable
  File "/usr/lib/python3.11/site-packages/voluptuous/validators.py", line 353 in _exec
  File "/usr/lib/python3.11/site-packages/voluptuous/validators.py", line 229 in _run
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 636 in validate_sequence
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 387 in validate_mapping
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 595 in validate_dict
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 272 in __call__
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 818 in validate_callable
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 636 in validate_sequence
  File "/usr/lib/python3.11/site-packages/voluptuous/validators.py", line 353 in _exec
  File "/usr/lib/python3.11/site-packages/voluptuous/validators.py", line 229 in _run
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 387 in validate_mapping
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 595 in validate_dict
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 272 in __call__
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 818 in validate_callable
  File "/usr/lib/python3.11/site-packages/voluptuous/validators.py", line 274 in _exec
  File "/usr/lib/python3.11/site-packages/voluptuous/validators.py", line 229 in _run
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 387 in validate_mapping
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 595 in validate_dict
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 272 in __call__
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 818 in validate_callable
  File "/usr/lib/python3.11/site-packages/voluptuous/validators.py", line 274 in _exec
  File "/usr/lib/python3.11/site-packages/voluptuous/validators.py", line 229 in _run
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 387 in validate_mapping
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 595 in validate_dict
  File "/usr/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 272 in __call__
  File "/usr/lib/python3.11/site-packages/homeassistant/helpers/service.py", line 565 in _load_services_file
  File "/usr/lib/python3.11/site-packages/homeassistant/helpers/service.py", line 587 in <listcomp>
  File "/usr/lib/python3.11/site-packages/homeassistant/helpers/service.py", line 587 in _load_services_files
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58 in run
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 83 in _worker
  File "/usr/lib/python3.11/threading.py", line 982 in run
  File "/usr/lib/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007f4a699beb38 (most recent call first):
  File "/usr/lib/python3.11/site-packages/homeassistant/components/recorder/core.py", line 875 in _run_event_loop
  File "/usr/lib/python3.11/site-packages/homeassistant/components/recorder/core.py", line 781 in _run
  File "/usr/lib/python3.11/site-packages/homeassistant/components/recorder/core.py", line 700 in run
  File "/usr/lib/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007f4a6bbadb38 (most recent call first):
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.11/threading.py", line 982 in run
  File "/usr/lib/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007f4a6c3f5b38 (most recent call first):
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.11/threading.py", line 982 in run
  File "/usr/lib/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007f4a6c41cb38 (most recent call first):
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.11/threading.py", line 982 in run
  File "/usr/lib/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007f4a6c443b38 (most recent call first):
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.11/threading.py", line 982 in run
  File "/usr/lib/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007f4a6c46ab38 (most recent call first):
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.11/threading.py", line 982 in run
  File "/usr/lib/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007f4a6c491b38 (most recent call first):
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 81 in _worker
  File "/usr/lib/python3.11/threading.py", line 982 in run
  File "/usr/lib/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007f4a6c4b8b38 (most recent call first):
  File "/usr/lib/python3.11/logging/handlers.py", line 1526 in dequeue
  File "/usr/lib/python3.11/logging/handlers.py", line 1577 in _monitor
  File "/usr/lib/python3.11/threading.py", line 982 in run
  File "/usr/lib/python3.11/threading.py", line 1045 in _bootstrap_inner
  File "/usr/lib/python3.11/threading.py", line 1002 in _bootstrap

Thread 0x00007f4a701b3b48 (most recent call first):
  File "/usr/lib/python3.11/selectors.py", line 468 in select
  File "/usr/lib/python3.11/asyncio/base_events.py", line 1884 in _run_once
  File "/usr/lib/python3.11/asyncio/base_events.py", line 607 in run_forever
  File "/usr/lib/python3.11/asyncio/base_events.py", line 640 in run_until_complete
  File "/usr/lib/python3.11/site-packages/homeassistant/runner.py", line 188 in run
  File "/usr/lib/python3.11/site-packages/homeassistant/__main__.py", line 209 in main
  File "/usr/bin/hass", line 8 in <module>

Extension modules: yaml._yaml, _cffi_backend, multidict._multidict, yarl._quoting_c, ciso8601, aiohttp._helpers, aiohttp._http_writer, aiohttp._http_parser, aiohttp._websocket, frozenlist._frozenlist, markupsafe._speedups, PIL._imaging, sqlalchemy.cyextension.collections, sqlalchemy.cyextension.immutabledict, sqlalchemy.cyextension.processors, sqlalchemy.cyextension.resultproxy, sqlalchemy.cyextension.util, greenlet._greenlet, zeroconf._utils.time, zeroconf._dns, zeroconf._protocol.outgoing, zeroconf._protocol.incoming, zeroconf._cache, zeroconf._record_update, zeroconf._history, zeroconf._updates, zeroconf._services, zeroconf._utils.ipaddress, zeroconf._services.info, zeroconf._services.registry, zeroconf._handlers.answers, zeroconf._handlers.multicast_outgoing_queue, zeroconf._handlers.query_handler, zeroconf._handlers.record_manager, zeroconf._listener, zeroconf._services.browser, psutil._psutil_linux, psutil._psutil_posix, pydantic.typing, pydantic.errors, pydantic.version, pydantic.utils, pydantic.class_validators, pydantic.config, pydantic.color, pydantic.datetime_parse, pydantic.validators, pydantic.networks, pydantic.types, pydantic.json, pydantic.error_wrappers, pydantic.fields, pydantic.parse, pydantic.schema, pydantic.main, pydantic.dataclasses, pydantic.annotated_types, pydantic.decorator, pydantic.env_settings, pydantic.tools, pydantic (total: 61)
```
``
@devbis
Copy link
Member

devbis commented Dec 18, 2024

It seems like you have problems with pre-built numpy package. A similar option occurred when an architecture lacks hard float support.

You may try to comment out installing of numpy package https://github.com/openlumi/homeassistant_on_openwrt/blob/23.05/ha_install.sh#L161

delete it from the system
opkg remove python3-numpy

and run the script again. The idea is to avoid installing broken package.

Or you can adapt these commands on the installed system:

https://github.com/openlumi/homeassistant_on_openwrt/blob/23.05/ha_install.sh#L550-L556

You need to cut out numpy dependency from the stream component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants