home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.15k stars 31.13k forks source link

Home Assistant keeps restarting after lates 2023.02 #87522

Closed reyo closed 1 year ago

reyo commented 1 year ago

The problem

Running in docker. Using MySQL as recorder. Tried to to disable all custom components (moving out from the custom components directory), buts still keeps restarting.

Was working before on 2022.12, just pulled :stable image and all went to hell.

Attached: home-assistant.log.fault home-assistant.log.zip

Downgraded, just now, to image 2023.1 and it works, no restart loop.

What version of Home Assistant Core has the issue?

2023.02

What was the last working version of Home Assistant Core?

core-2023.1.7

What type of installation are you running?

Home Assistant Container

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?

Thread 0x00001512643edb30 (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 0x00001512644f0b30 (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 0x00001512645f3b30 (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 0x0000151264859b30 (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 0x000015126495cb30 (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 0x0000151264a5fb30 (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 0x0000151264cc2b30 (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 0x0000151264dc5b30 (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 0x0000151265a63b30 (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 0x0000151265b66b30 (most recent call first):
  File "/usr/local/lib/python3.10/logging/handlers.py", line 1505 in dequeue
  File "/usr/local/lib/python3.10/logging/handlers.py", line 1556 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 0x000015126971eb48 (most recent call first):
  File "/usr/src/homeassistant/homeassistant/helpers/json.py", line 121 in json_dumps
  File "/usr/local/lib/python3.10/site-packages/aiohttp/payload.py", line 398 in __init__
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 408 in _request
  File "/usr/src/homeassistant/homeassistant/components/alexa/state_report.py", line 146 in async_send_changereport_message
  File "/usr/src/homeassistant/homeassistant/components/alexa/state_report.py", line 104 in async_entity_state_listener
  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 128 in run
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 214 in main
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 226 in <module>
  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: multidict._multidict, yarl._quoting_c, ciso8601, aiohttp._helpers, aiohttp._http_writer, _brotli, aiohttp._http_parser, aiohttp._websocket, cchardet._cchardet, _cffi_backend, frozenlist._frozenlist, markupsafe._speedups, yaml._yaml, PIL._imaging, sqlalchemy.cimmutabledict, greenlet._greenlet, sqlalchemy.cprocessors, sqlalchemy.cresultproxy, MySQLdb._mysql, dbus_fast.signature, dbus_fast._private.marshaller, dbus_fast.message, dbus_fast.service, dbus_fast.unpack, dbus_fast.message_bus, dbus_fast._private.unmarshaller, dbus_fast.aio.message_reader, home_assistant_bluetooth.models, zeroconf._dns, zeroconf._cache, zeroconf._protocol.incoming, zeroconf._protocol.outgoing, 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, 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, psutil._psutil_linux, psutil._psutil_posix, websockets.speedups, av.logging, av._core, av.bytesource, av.buffer, av.audio.format, av.enum, av.error, av.utils, av.option, av.descriptor, av.container.pyio, av.dictionary, av.format, av.stream, av.container.streams, av.sidedata.motionvectors, av.sidedata.sidedata, av.packet, av.container.input, av.bitstream.filter, av.bitstream.context, av.container.output, av.container.core, av.codec.context, av.video.format, av.video.reformatter, av.plane, av.video.plane, av.video.frame, av.video.stream, av.codec.codec, av.frame, av.audio.layout, av.audio.plane, av.audio.frame, av.audio.stream, av.audio.fifo, av.filter.pad, av.filter.link, av.filter.context, av.filter.graph, av.filter.filter, av.audio.resampler, lxml._elementpath, lxml.etree, psycopg2._psycopg (total: 117)
Fatal Python error: Segmentation fault

Additional information

No response

kunimei commented 1 year ago

good idea thankyou

michal9206 commented 1 year ago

Same scenario for me. I updated the image to 2023.2.3. Interestingly, the first time it started correctly, only after the next restart it fell into a loop. Downgrading to 2023.1.7 helped.

reyo commented 1 year ago

Same scenario for me. I updated the image to 2023.2.3. Interestingly, the first time it started correctly, only after the next restart it fell into a loop. Downgrading to 2023.1.7 helped.

Downgrading to that version works fine on desktop but that introduced me some weird things on mobile ([object Object])

Screenshot_20230208-120103 Screenshot_20230208-120133

Last screen on desktop shows fine: msedge_ISa0sTxZaW

michal9206 commented 1 year ago

I also had problems with displaying some statistics on version 2023.1.7. I updated HA to 2023.2.2 and it looks okay .

reyo commented 1 year ago

But 2023.2.2 restarts :) so I'm staying on the 2023.1.7 for now, until this issue is resolved

michal9206 commented 1 year ago

In my case, version 2023.2.3 was restarting. Version 2023.2.2 does not restart for me

reyo commented 1 year ago

You are right 2023.2.2 works (phone graphs are good also) and 2023.2.3 doesn't, it restart loops. Hmm. Will update my issue. What ever changed between the minor version change, broke something really bad.

Very weird.

reyo commented 1 year ago

I was wrong. It started to reboot still. Seemed like the same error. Went back to 2023.1.7

gtbuchanan commented 1 year ago

Duplicate of #87283

Ulli2k commented 1 year ago

Same issue! Also went back to 2023.1.7