core: Home assistant has crashed!

The problem

Suddently HA decided to crash, no more GUI. I still have access to SSH. Already tried to reboot NUC and Router, core rebuild, and supervisor repair. Any help is very appreciated!! Thanks!

What version of Home Assistant Core has the issue?

12.1

What was the last working version of Home Assistant Core?

2024.3.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No idea

Link to integration documentation on our website

No response

Diagnostics information

`~ ha supervisor logs … 2024-04-04 00:25:08.859 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to NOT_RUNNING 2024-04-04 00:25:08.860 INFO (MainThread) [supervisor.auth] Home Assistant not running, checking cache 2024-04-04 00:25:49.313 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: [Errno 104] Connection reset by peer 2024-04-04 00:25:49.319 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/core/state: [Errno 104] Connection reset by peer 2024-04-04 00:25:49.332 ERROR (MainThread) [supervisor.homeassistant.api]Error on call http://172.30.32.1:8123/api/core/state: [Errno 104] Connection reset by peer 2024-04-04 00:25:54.320 ERROR (MainThread) [supervisor.homeassistant.core] Home Assistant has crashed

~ ha core logs 2024-04-04 00:25:03.557 ERROR (MainThread) [homeassistant.helpers.translation] Validation of translation placeholders for localized (it) string component.rest_command.exceptions.client_error.message failed 2024-04-04 00:25:03.557 ERROR (MainThread) [homeassistant.helpers.translation] Validation of translation placeholders for localized (it) string component.rest_command.exceptions.decoding_error.message failed 2024-04-04 00:25:03.557 ERROR (MainThread) [homeassistant.helpers.translation] Validation of translation placeholders for localized (it) string component.rest_command.exceptions.timeout.message failed 2024-04-04 00:25:04.190 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly 2024-04-04 00:25:04.211 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=269 from 2024-04-03 13:19:50.260272) 2024-04-04 00:25:07.290 INFO (SyncWorker_0) [fritzconnection] Unable to retrieve resource ‘http://192.168.1.1:49000/tr64desc.xml’ from the device. 2024-04-04 00:25:08.844 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration ‘browser_mod’ accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/browser_mod/mod_view.py, line 24: hass.components.frontend.async_register_built_in_panel(, please report it to the author of the ‘browser_mod’ custom integration 2024-04-04 00:25:09.636 WARNING (MainThread) [homeassistant.components.light] Entity None (<class ‘custom_components.dahua.light.DahuaInfraredLight’>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 1> and color modes, please create a bug report at https://github.com/rroller/dahua/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation 2024-04-04 00:25:09.636 WARNING (MainThread) [homeassistant.components.light] None (<class ‘custom_components.dahua.light.DahuaInfraredLight’>) does not set supported color modes, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/rroller/dahua/issues [22:25:49] INFO: Home Assistant Core finish process exit code 256 [22:25:49] INFO: Home Assistant Core finish process received signal 9 s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped `

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

~ ha info arch: amd64 channel: stable docker: 24.0.7 features:

  • reboot
  • shutdown
  • services
  • network
  • hostname
  • timedate
  • os_agent
  • haos
  • resolved
  • journal
  • disk
  • mount hassos: “12.1” homeassistant: 2024.3.3 hostname: homeassistant logging: info machine: generic-x86-64 operating_system: Home Assistant OS 12.1 state: running supervisor: 2024.03.1 supported: true supported_arch:
  • amd64
  • i386

~ ha network info docker: address: 172.30.32.0/23 dns: 172.30.32.3 gateway: 172.30.32.1 interface: hassio host_internet: true interfaces:

  • connected: true enabled: true interface: enp0s25 ipv4: address:
    • 192.168.1.43/24 gateway: 192.168.1.1 method: static nameservers:
    • 1.1.1.1 ready: true

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 45 (14 by maintainers)

Most upvoted comments

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.

Most of these logs look like integrations doing non-threadsafe operations on asyncio objects which is corrupting the internal asyncio state. When an integration modifies the event loop internals from another thread the behavior is undefined and will usually eventually lead to a crash. If you put asyncio in debug mode, it will be able to detect some of these bad calls and maybe even block them. You can use the profiler service to do that: https://www.home-assistant.io/integrations/profiler/#service-profilerset_asyncio_debug If you can’t get far enough along you can also enable debugpy: in configuration.yaml instead (but its much slower) https://www.home-assistant.io/integrations/debugpy/

tried the profiler with its link, there is no such service call: Service profiler.set_asyncio_debug not found.

Add ‘profiler’ integration from the integrations page first.

Most of these logs look like integrations doing non-threadsafe operations on asyncio objects which is corrupting the internal asyncio state.

When an integration modifies the event loop internals from another thread the behavior is undefined and will usually eventually lead to a crash.

If you put asyncio in debug mode, it will be able to detect some of these bad calls and maybe even block them. You can use the profiler service to do that: https://www.home-assistant.io/integrations/profiler/#service-profilerset_asyncio_debug

If you can’t get far enough along you can also enable debugpy: in configuration.yaml instead (but its much slower) https://www.home-assistant.io/integrations/debugpy/

I have a lot of the same RuntimeError errors as you reported. They start appearing (and quickly multiplying!) after the inital errors in my report.