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.