I’ve been running HA in this VM for a year or more at this point without much issue.
The host here is Ubuntu 20.04.4.
VirtualBox 6.1.34.
Guest is the HA OVA release, updated to 2022.9.7.
The other night the host crashed (I have not figured out why yet, it has never happened before). After that HA was acting strange. I had originally posted over here.
But since then I’ve updated to 2022.9.7, and the system is - somewhat stable, so I think it makes sense to move this to a different troubleshooting thread…
HA (core) is restarting often though. Last night for example it restarted about 10 times in an hour. But as of right now it’s been running for about 5 hours without restarting (no changes made to lead to that).
I looked in to a few related issues like this: Loop restarting · Issue #74606 · home-assistant/core · GitHub, but that seems to be an OOM issue, and I’m not seeing any OOM kills in the logs.
I have the home-assistant.log.fault
file. This shows errors of type “Fatal Python error: Segmentation fault” and also some “Fatal Python error: Bus error”. Unforutnately these don’t have time stamps, but I have seen the file is updated each time the restart occurs (if I manually check it at the right time).
The most recent Seg Fault Log
Fatal Python error: Segmentation fault
Thread 0x00007f09eedffb30 (most recent call first):
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 81 in _worker
File “/usr/local/lib/python3.10/threading.py”, line 953 in run
File “/usr/local/lib/python3.10/threading.py”, line 1016 in _bootstrap_inner
File “/usr/local/lib/python3.10/threading.py”, line 973 in _bootstrap
Thread 0x00007f09ef3ffb30 (most recent call first):
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 81 in _worker
File “/usr/local/lib/python3.10/threading.py”, line 953 in run
File “/usr/local/lib/python3.10/threading.py”, line 1016 in _bootstrap_inner
File “/usr/local/lib/python3.10/threading.py”, line 973 in _bootstrap
Thread 0x00007f09ef9ffb30 (most recent call first):
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 81 in _worker
File “/usr/local/lib/python3.10/threading.py”, line 953 in run
File “/usr/local/lib/python3.10/threading.py”, line 1016 in _bootstrap_inner
File “/usr/local/lib/python3.10/threading.py”, line 973 in _bootstrap
Thread 0x00007f09f0ffbb30 (most recent call first):
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 81 in _worker
File “/usr/local/lib/python3.10/threading.py”, line 953 in run
File “/usr/local/lib/python3.10/threading.py”, line 1016 in _bootstrap_inner
File “/usr/local/lib/python3.10/threading.py”, line 973 in _bootstrap
Thread 0x00007f09f10ffb30 (most recent call first):
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 81 in _worker
File “/usr/local/lib/python3.10/threading.py”, line 953 in run
File “/usr/local/lib/python3.10/threading.py”, line 1016 in _bootstrap_inner
File “/usr/local/lib/python3.10/threading.py”, line 973 in _bootstrap
Thread 0x00007f09f19ffb30 (most recent call first):
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 81 in _worker
File “/usr/local/lib/python3.10/threading.py”, line 953 in run
File “/usr/local/lib/python3.10/threading.py”, line 1016 in _bootstrap_inner
File “/usr/local/lib/python3.10/threading.py”, line 973 in _bootstrap
Thread 0x00007f09f1fd4b30 (most recent call first):
File “/usr/local/lib/python3.10/logging/handlers.py”, line 1491 in dequeue
File “/usr/local/lib/python3.10/logging/handlers.py”, line 1542 in _monitor
File “/usr/local/lib/python3.10/threading.py”, line 953 in run
File “/usr/local/lib/python3.10/threading.py”, line 1016 in _bootstrap_inner
File “/usr/local/lib/python3.10/threading.py”, line 973 in _bootstrap
Current thread 0x00007f09f607bab0 (most recent call first):
File “/usr/local/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py”, line 356 in _decorate_cls_with_warning
File “/usr/local/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py”, line 110 in decorate
File “/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/interfaces.py”, line 1474 in
File “”, line 241 in _call_with_frames_removed
File “”, line 883 in exec_module
File “”, line 688 in _load_unlocked
File “”, line 1006 in _find_and_load_unlocked
File “”, line 1027 in _find_and_load
File “/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py”, line 12 in
File “”, line 241 in _call_with_frames_removed
File “”, line 883 in exec_module
File “”, line 688 in _load_unlocked
File “”, line 1006 in _find_and_load_unlocked
File “”, line 1027 in _find_and_load
File “/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/events.py”, line 9 in
File “”, line 241 in _call_with_frames_removed
File “”, line 883 in exec_module
File “”, line 688 in _load_unlocked
File “”, line 1006 in _find_and_load_unlocked
File “”, line 1027 in _find_and_load
File “”, line 241 in _call_with_frames_removed
File “”, line 1078 in _handle_fromlist
File “/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/init.py”, line 18 in
File “”, line 241 in _call_with_frames_removed
File “”, line 883 in exec_module
File “”, line 688 in _load_unlocked
File “”, line 1006 in _find_and_load_unlocked
File “”, line 1027 in _find_and_load
File “/usr/local/lib/python3.10/site-packages/sqlalchemy/init.py”, line 9 in
File “”, line 241 in _call_with_frames_removed
File “”, line 883 in exec_module
File “”, line 688 in _load_unlocked
File “”, line 1006 in _find_and_load_unlocked
File “”, line 1027 in _find_and_load
File “/usr/src/homeassistant/homeassistant/components/recorder/statistics.py”, line 17 in
File “”, line 241 in _call_with_frames_removed
File “”, line 883 in exec_module
File “”, line 688 in _load_unlocked
File “”, line 1006 in _find_and_load_unlocked
File “”, line 1027 in _find_and_load
File “”, line 241 in _call_with_frames_removed
File “”, line 1078 in _handle_fromlist
File “/usr/src/homeassistant/homeassistant/components/recorder/init.py”, line 23 in
File “”, line 241 in _call_with_frames_removed
File “”, line 883 in exec_module
File “”, line 688 in _load_unlocked
File “”, line 1006 in _find_and_load_unlocked
File “”, line 1027 in _find_and_load
File “”, line 241 in _call_with_frames_removed
File “”, line 1078 in _handle_fromlist
File “/usr/src/homeassistant/homeassistant/components/energy/websocket_api.py”, line 15 in
File “”, line 241 in _call_with_frames_removed
File “”, line 883 in exec_module
File “”, line 688 in _load_unlocked
File “”, line 1006 in _find_and_load_unlocked
File “”, line 1027 in _find_and_load
File “”, line 241 in _call_with_frames_removed
File “”, line 1078 in _handle_fromlist
File “/usr/src/homeassistant/homeassistant/components/energy/init.py”, line 10 in
File “”, line 241 in _call_with_frames_removed
File “”, line 883 in exec_module
File “”, line 688 in _load_unlocked
File “”, line 1006 in _find_and_load_unlocked
File “”, line 1027 in _find_and_load
File “/usr/src/homeassistant/homeassistant/components/analytics/analytics.py”, line 12 in
File “”, line 241 in _call_with_frames_removed
File “”, line 883 in exec_module
File “”, line 688 in _load_unlocked
File “”, line 1006 in _find_and_load_unlocked
File “”, line 1027 in _find_and_load
File “/usr/src/homeassistant/homeassistant/components/analytics/init.py”, line 10 in
File “”, line 241 in _call_with_frames_removed
File “”, line 883 in exec_module
File “”, line 688 in _load_unlocked
File “”, line 1006 in _find_and_load_unlocked
File “”, line 1027 in _find_and_load
File “”, line 1050 in _gcd_import
File “/usr/local/lib/python3.10/importlib/init.py”, line 126 in import_module
File “/usr/src/homeassistant/homeassistant/loader.py”, line 662 in get_component
File “/usr/src/homeassistant/homeassistant/setup.py”, line 190 in _async_setup_component
File “/usr/local/lib/python3.10/asyncio/events.py”, line 80 in _run
File “/usr/local/lib/python3.10/asyncio/base_events.py”, line 1896 in _run_once
File “/usr/local/lib/python3.10/asyncio/base_events.py”, line 600 in run_forever
File “/usr/local/lib/python3.10/asyncio/base_events.py”, line 633 in run_until_complete
File “/usr/src/homeassistant/homeassistant/runner.py”, line 119 in run
File “/usr/src/homeassistant/homeassistant/main.py”, line 191 in main
File “/usr/src/homeassistant/homeassistant/main.py”, line 203 in
File “/usr/local/lib/python3.10/runpy.py”, line 86 in _run_code
File “/usr/local/lib/python3.10/runpy.py”, line 196 in _run_module_as_main
Extension modules: _cffi_backend, multidict._multidict, yarl._quoting_c, ciso8601, aiohttp._helpers, aiohttp._http_writer, _brotli, aiohttp._http_parser, aiohttp._websocket, cchardet._cchardet, frozenlist._frozenlist, yaml._yaml, markupsafe._speedups, PIL._imaging, simplejson._speedups, sqlalchemy.cimmutabledict, greenlet._greenlet, sqlalchemy.cprocessors (total: 18)
I’m happy to look up other logs. I have the VM set up with SSH access to the root OS if needed. I’ve been using journalctl to look at some logs, but haven’t been able to figure out what is causing this.