Home Assistant freezes from time to time

Hi there,

I have an issue with my “Core” installation of HA: it keeps freezing from time to time (sometimes few times a day, sometimes a month without).

There is no error in the logfile, actually the logfile writing stops (normally, every minute, fritzhome integration logs some status in the logfile).

There are no corresponding error messages in syslog nor in dmesg.

Thiy happens with production and beta version, as already said, some quite some time by now. Drives my wife mad (she loves it when light switches etc. don’t work…).

Any suggestions?

My environment:
Raspi 4, 4 GB RAM.
Ubuntu 22.04.5 LTS
Core installation in venv with python 3.12, 2025.1.0

Any hungry add-ons?

Define “freezing”.

And what does log1 say when you come back up?

@jackjourneyman Not that I would be aware of. System log and dmesg do not show the usual memory low signs (cache flushes, process killing etc - nothing of that kind happens), system load is around 0.75-1.3.

@stevemann Web frontend inaccessible, mobile app inaccessible. Addons which usually regularly log to the logfile, stop logging. Node-red and regular automations don’t trigger.
Linux System itself remains accessible and healthy, restarting the service fixes the issue (until it repeats).

@NathanCu nothing unusual. Just as if everting stopped happening, log entries just stop to appear.
System log (/var/log/syslog, dmesg) state nothing unusual.

1 Like

Is there any indication on the browser that this has happened or does the server just stop responding.

Can you ping the server?

What is the last thing the log records?

I can ping it, I can ssh to it, access other services (nodered, zigbee2mqtt) etc.
Web frontend of HA just times out, same as mobile application.
Last entry in log.1 is pyfritzhome updating devices - which it does every minute, actually even more frequently.

So, when if “freezes”, you can still ping and SSH the server?
Have you tried clearing the browser cache?
Have you tried a different browser?

Yes, when HA (only HA, not the server itself) freezes or hangs or becomes unresponsive, whatever you prefer, I can still ping and ssh it.

Yes, tried a different browser, tried clearing the cache, tried everything.

It does not look anywhere near a frontend issue (because backend addons like pyfritzhome stops logging and also pressing Zigbee light switches is not propagated to Nodered anymore etc., all of this does not involve any frontend), but neither underlying server issue as well (because ssh works, other services work, no messages at that time in /var/log/syslog nor in dmesg).

Sounds like you’ve got to disable custom integrations and put them back one by one until you find the culprit. Don’t envy you that job.

Dear all,
It seems that I have the same problem. Were you able to solve it?

I am running home assistant in docker, and all other dockers etc are still running. For me, updating to 2025.1, home assistant just freezes in browser / mobile app. Similarly, there are no logs indicating a problem. I am now monitoring the CPU of the home assistant docker.

It seems that the CPU gets after 3hrs to 100%.

And after a restart, again exactly 3 hrs later. Very strange …
image

All other docker containers do not face any issue. I’ll revert back to 2024.12.5 version, hope someone has a clue.

I have had the same issue for years. Have tried rebooting every night. Tried the ping integration, where it should reboot itself if it didn’t get a response. Nothing has helped. And as you state, nothing in logs…. Also on a Raspberry Pi 4. I have several times considered other hardware until I see posts with people experiencing the same thing - but on their NUCs… So yearh, I am also getting a bit desperate.

No idea if this’ll help anyone, my particular issue was fixed by updating my OS and Docker, was running Ubuntu 23.10 with the latest Docker for that OS (27.1.2?), now upgraded to the latest versions (OS and Docker) and no longer having the freezes.

Same problem… Pi4…

I have the same issue. The problem is it runs for even few days without problem, then CPU load spikes and everything freezes. No automations, no apps, no web UI (timeout) just 100% cpu load.
I tried strace, but despite some futex operations I see nothing significant there either.

I have a dockerized setup with core 2025.1.2 / frontend 20250109.0.

I will try upgrading to current version and see whether this helps. If not, then I will try to collect some more infos here.

Same here. Freezes every 1-3 months. No info in logs etc. Intel i5 pc.

Same random (several times/day) issue as everyone is describing. I am running HA on an RPi5 with an NVME SSD using the standard RPI5 27w power supply. Doing a hard (power off/on) corrects the issue only to reoccur. Nothing in logs.

I’m having the same issue for over a year (or even longer)…

I have HAOS installed on the “bare metal Intel-based mini PC”. First I was using Dell, then switched to HP…

When it “freezes”, it “dies completely”. No Web GUI, no SSH, no ping… Device is just dead…

Unfortunately I do not have a monitor and keyboard connected to the device to see what’s happenong on the screen…

I thought it could be “bad sectors on SSD”… Replaced the drive twice (SMART shows no problems)… Exactly the same symptoms…

Did everything as someone described - constant ping… watchdog… nightly reboot…

Just have to power it off and on every time…