-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
HA went into a failure loop after running out of file descriptors #144802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm experiencing the same issue on 2025.5.1. Logs, even in debug mode (set in In safe mode, file descriptors slowly - but surely - go up, with sort of a pattern:
Granted my file descriptors limit is set at 1024 and I could just raise it, but that would probably just reduce the frequency of the issue. Relevant system information
|
Okay, I figured it out! Turns out the problem is with the Octoprint integration, as seen in #144457 (comment). Furthermore, I think the attached PR is a good band-aid to prevent bigger issues when leaks like this happen. |
Ah, yeah, I have Octoprint enabled too, so that could well be it. Good find! EDIT: this just recurred today – disabled the Octoprint integration now... |
Opened aio-libs/aiohttp#10847 to potentially make this safer against leak mistakes. Not sure if we will do that but good to track. |
The problem
Last night, the better half complained that the lights in the living room didn't work, and I noticed the NUC hosting our HA was spinning its fans like no tomorrow.
Looking at journalctl logs for HA, it had apparently run out of file descriptors, and absolutely couldn't deal:
repeated ad infinitum, up to 4,000 times per second (!!!), until I
systemctl restart homeassistant-ha
'd.Running out of fds is likely an unrecoverable error, so it could be a good idea for HA to crash and get restarted if it notices this?
FWIW, I hadn't noticed this before 2025.4.4 but that isn't saying it's a regression c.f. the previous version, 2025.4.0.
core-2025.4.4 running on Python 3.13.1 (via uv) on Linux x86_64.
What version of Home Assistant Core has the issue?
core-2025.4.4
What was the last working version of Home Assistant Core?
core-2025.4
What type of installation are you running?
Home Assistant Core
Related issues/prior art
The text was updated successfully, but these errors were encountered: