Home Assistant Crashing About 2 Times A Day

Hello,

I have an issue where my home assistant instance will go offline about once or twice a day. I will try to access it and it just says, “can’t be reached” etc… I also tried opening it through Nabu Kasa cloud and the same thing happened. This was not a previous issue. I have had my instance working for a while and suddenly this is occurring. The only way to temporarily fix is to unplug the NUC, which I am running home assistant directly on, and replugging it in. This causes it to open in safe mode.

I do not know exactly how to give the correct logs… I opened supervisor logs and these were orange and red :slight_smile:

Background Info:

Running HA Core 2024.12.2
Supervisor 2024.11.4
Operating System 14.0
Frontend 20241127.7

Directly installed on a 512gb m.2 SSD, inside a new mini pc/nuc.
HACS is installed for a few custom integrations.

2024-12-12 14:17:11.450 WARNING (SyncWorker_6) [supervisor.docker.manager] Can't restart homeassistant: 500 Server Error for http+docker://localhost/v1.47/containers/fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319/restart?t=260: Internal Server Error ("Cannot restart container fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319: tried to kill container, but did not receive an exit event")

2024-12-12 14:17:11.452 ERROR (MainThread) [supervisor.misc.tasks] Home Assistant watchdog reanimation failed!

2024-12-12 14:19:11.961 WARNING (MainThread) [supervisor.misc.tasks] Watchdog missed an Home Assistant Core API response.

2024-12-12 14:21:12.472 ERROR (MainThread) [supervisor.misc.tasks] Watchdog missed 2 Home Assistant Core API responses in a row. Restarting Home Assistant Core!

2024-12-12 14:21:12.479 INFO (SyncWorker_5) [supervisor.docker.manager] Restarting homeassistant

2024-12-12 14:25:46.521 WARNING (SyncWorker_5) [supervisor.docker.manager] Can't restart homeassistant: 500 Server Error for http+docker://localhost/v1.47/containers/fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319/restart?t=260: Internal Server Error ("Cannot restart container fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319: tried to kill container, but did not receive an exit event")

2024-12-12 14:25:46.523 ERROR (MainThread) [supervisor.misc.tasks] Home Assistant watchdog reanimation failed!

2024-12-12 14:27:47.043 WARNING (MainThread) [supervisor.misc.tasks] Watchdog missed an Home Assistant Core API response.

2024-12-12 14:29:47.560 ERROR (MainThread) [supervisor.misc.tasks] Watchdog missed 2 Home Assistant Core API responses in a row. Restarting Home Assistant Core!

2024-12-12 14:29:47.568 INFO (SyncWorker_4) [supervisor.docker.manager] Restarting homeassistant

2024-12-12 14:34:21.607 WARNING (SyncWorker_4) [supervisor.docker.manager] Can't restart homeassistant: 500 Server Error for http+docker://localhost/v1.47/containers/fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319/restart?t=260: Internal Server Error ("Cannot restart container fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319: tried to kill container, but did not receive an exit event")

2024-12-12 14:34:21.608 ERROR (MainThread) [supervisor.misc.tasks] Home Assistant watchdog reanimation failed!

2024-12-12 14:36:22.123 WARNING (MainThread) [supervisor.misc.tasks] Watchdog missed an Home Assistant Core API response.

2024-12-12 14:38:22.637 CRITICAL (MainThread) [supervisor.misc.tasks] Watchdog cannot reanimate Home Assistant Core, failed all 5 attempts. Restarting into safe mode

2024-12-12 14:38:22.645 INFO (SyncWorker_1) [supervisor.docker.manager] Stopping homeassistant application

2024-12-12 14:42:56.686 INFO (SyncWorker_1) [supervisor.docker.manager] Cleaning homeassistant application

2024-12-12 14:43:08.713 WARNING (MainThread) [supervisor.homeassistant.core] Home Assistant is already running!

2024-12-12 14:45:09.229 WARNING (MainThread) [supervisor.misc.tasks] Watchdog missed an Home Assistant Core API response.

2024-12-12 14:47:09.750 ERROR (MainThread) [supervisor.misc.tasks] Watchdog missed 2 Home Assistant Core API responses in a row. Restarting Home Assistant Core!

2024-12-12 14:47:09.757 INFO (SyncWorker_4) [supervisor.docker.manager] Restarting homeassistant

2024-12-12 14:51:43.802 WARNING (SyncWorker_4) [supervisor.docker.manager] Can't restart homeassistant: 500 Server Error for http+docker://localhost/v1.47/containers/fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319/restart?t=260: Internal Server Error ("Cannot restart container fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319: tried to kill container, but did not receive an exit event")

2024-12-12 14:51:43.803 ERROR (MainThread) [supervisor.misc.tasks] Home Assistant watchdog reanimation failed!

2024-12-12 14:53:44.321 WARNING (MainThread) [supervisor.misc.tasks] Watchdog missed an Home Assistant Core API response.

2024-12-12 14:55:44.838 ERROR (MainThread) [supervisor.misc.tasks] Watchdog missed 2 Home Assistant Core API responses in a row. Restarting Home Assistant Core!

2024-12-12 14:55:44.845 INFO (SyncWorker_7) [supervisor.docker.manager] Restarting homeassistant

2024-12-12 15:00:18.884 WARNING (SyncWorker_7) [supervisor.docker.manager] Can't restart homeassistant: 500 Server Error for http+docker://localhost/v1.47/containers/fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319/restart?t=260: Internal Server Error ("Cannot restart container fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319: tried to kill container, but did not receive an exit event")

2024-12-12 15:00:18.885 ERROR (MainThread) [supervisor.misc.tasks] Home Assistant watchdog reanimation failed!

2024-12-12 15:02:19.401 WARNING (MainThread) [supervisor.misc.tasks] Watchdog missed an Home Assistant Core API response.

2024-12-12 15:04:19.914 ERROR (MainThread) [supervisor.misc.tasks] Watchdog missed 2 Home Assistant Core API responses in a row. Restarting Home Assistant Core!

2024-12-12 15:04:19.921 INFO (SyncWorker_0) [supervisor.docker.manager] Restarting homeassistant

2024-12-12 15:08:53.961 WARNING (SyncWorker_0) [supervisor.docker.manager] Can't restart homeassistant: 500 Server Error for http+docker://localhost/v1.47/containers/fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319/restart?t=260: Internal Server Error ("Cannot restart container fdf15d0262440c6c390548f7bd49dbdd1358100cb2c3593b7d1185d1a64d5319: tried to kill container, but did not receive an exit event")

2024-12-12 15:08:53.963 ERROR (MainThread) [supervisor.misc.tasks] Home Assistant watchdog reanimation failed!

2024-12-12 15:10:54.473 WARNING (MainThread) [supervisor.misc.tasks] Watchdog missed an Home Assistant Core API response.

2024-12-12 15:12:54.980 ERROR (MainThread) [supervisor.misc.tasks] Watchdog missed 2 Home Assistant Core API responses in a row. Restarting Home Assistant Core!

This isn’t an access issue. Your HA core container is crashing.

The fact that it returns to normal after a restart seems to indicate something may be using up all your RAM or CPU. You can monitor this with the System Monitor integration.

If you use loops in your automations or scripts check these can actually exit. Infinite loops eat RAM.

It could also be due to a rouge 3rd party integration. There is some advice here on how to track that down: 2024.5+: Tracking down instability issues caused by integrations

Thank you very much for the response. I will look into these solutions.

I am guessing this is not a problem with any of my scripts or automations. I only have a few setup to turn lights on/off at specific times of the day… They are not showing they have been triggered, other than at their specific set times.

I’m guessing that it is a problem with the Alexa Media Player custom integration. It’s the only custom integration I have, and it has always been buggy… I looked on its GitHub and it looks like someone had a similar-ish problem with it crashing their HA; although, their reported version was a bit older than mine. I will disable the integration and see if the problem continues.

I thank you again for helping me and dealing with my unintelligence about this problem.

Oh boy. Yeah AMP is buggy as heck. I nearly asked if your were using it. Best advice would be to stop using it if you can.

1 Like

Sorry, very off-topic…

Do you have any recommendations for speakers to use with home assistant for custom announcements and other stuff? I was looking at a Sonos port or wiim to convert my in-ceiling speakers into a media player for HA. Complications with that include relying on my receiver to turn on/off at the correct times :frowning:

I really appreciate the help.

I use the Raspiaudio Muse Luxe speakers, just for announcements.

However if you can wait until the Home Assistant Voice hardware announcement next week this might be your best option: https://www.youtube.com/live/ZgoaoTpIhm8?si=hysXAVbeUvlo_DXT as it will support a local voice assistant too.

1 Like

Update

I woke up this morning and it looks like it crashed again :disappointed:.

Before restarting it, I connected a display to the device to see if it would show anything. This is what it shows.

I will try disabling my automations to see if there is a problem there. I had AMP disabled as well. It’s hard to believe that they could be overwhelming the overkill device!

I don’t know if this is a memory leak. I looked at the memory usage history for the past few days/crashes, but I don’t know exactly what to look for… I put the recent data into a graph and nothing gets above 6.6% before it crashes (slated lines). My device has 16GB of RAM.

Also, the home assistant history graphs are looking a little odd?

RAM free or used?

If used then no, that is not a memory leak.

It is the amount used. Okay, then something else must be happening that is crashing it.

Im getting the same issues!!! Intel NUC
https://pastebin.com/raw/4XZ9E2As

I disabled the Bluetooth integration, Alexa media player integration, and custom Asus router integration, as well as all of my automations. My system has been up a running for 2 days!

All of a sudden, I’m getting crashes as well. Log shows recurring issues with Home Assistant Core failing to respond to the Supervisor’s API calls. This results in repeated attempts by the watchdog to restart the container, which fails with a Docker error (Cannot restart container). Below are steps to investigate and resolve the problem: