Home Assistant OS Crash – "No file descriptors available" (Errno 24)

I’m new to Home Assistant and recently set it up as a VM under Proxmox (Running HAOS under Proxmox).

Home Assistant

  • Installation methodHome Assistant OS
  • Core2025.7.2
  • Supervisor2025.07.1
  • Operating System16.0
  • Frontend20250702.2

It keeps crashing and rebooting unexpectedly. The log is filled with repeating errors like:

Error doing job: socket.accept() out of system resource (None)
OSError: [Errno 24] No file descriptors available

Inside the container, the number of open file descriptors is stuck at 1024:

ls /proc/$(pidof python3)/fd | wc -l
1024

Listing the open FDs doesn’t show anything obviously excessive—mostly eventpoll, SQLite files, and individual sockets.

There’s also this warning related to protobuf:

Protobuf gencode version 5.28.1 is exactly one major version older than the runtime version 6.31.1 at pyatv…

I’d really appreciate guidance from the community to confirm what issue I am facing. Is there anyone who can help me understand what’s causing this and how to fix it?

Hello FaazHafid,

What version of HA are you running?
You can look at the version info page. If it states “Operating System” it is HAOS, if it just states “Supervisor” and not “Operating System” it is Supervised and if it only states “Core” and “Frontend” it is Container or Core.

running HAOS as a VM under Proxmox.

1 Like

Turns out the HomeKit Device integration was failing, and after looking into it, one of my Ecobee thermostats kept causing issues, so I disabled it. The TP-Link integration was also failing because one of the smart plugs was no longer reachable—I had replaced it with a Zigbee plug. After removing both, the file descriptor count is now at 439. I’m currently monitoring to see if it remains stable.


I’m running HA 2025.5.3 on ESXi, Supervisor: 2025.07.1, and HASSOS 16.

When I upgraded last month to 2025.6.x, it would immediately crash on reboot with the above error in the logs:

OSError: [Errno 24] No file descriptors available
2025-07-20 02:07:42.144 ERROR (MainThread) [homeassistant] Error doing job: socket.accept() out of system resource (None)
Traceback (most recent call last):
File “/usr/local/lib/python3.13/asyncio/selector_events.py”, line 178, in _accept_connection
conn, addr = sock.accept()
~~~~~~~~~~~^^
File “/usr/local/lib/python3.13/socket.py”, line 295, in accept
fd, addr = self._accept()
~~~~~~~~~~~~^^

I rolled back to 2025.5.3 and left it since I didn’t have time. I did however upgrade the Supervisor and other updates. I just left core. Last night, I woke up to HA being unresponsive. I rebooted and checked the logs, the error above is back… over and over until the box was unresponsive. It had been running for 28+ days though before it occurred so I have no idea why or how to proceed.

I use HomeKit, like OP, and have a few dumb Tuya gas wifi devices. I do not use Frigate, but I do use Zoneminder. If nothing else, I’m posting to say “me too” I guess. Will monitor to see if it occurs again.

1 Like

Mine didn’t happen since I completely disabled “HomeKit Device” & also when I removed the unreachable TP Link device which was using “TP Link Smart Home” integration.

FYI there was a recent change in haos regarding file descriptor limits, see About open file (descriptor) limits on Home Assistant OS · home-assistant/operating-system · Discussion #4166 · GitHub and Home Assistant Core reports "No file descriptors available" · Issue #4164 · home-assistant/operating-system · GitHub

1 Like

Oh that’s good to know that I didn’t hit something unique. Any suggestions on whats the safest max limit on file descriptor?

Not sure TBH, As far as I understood, developers plan is to raise limit to 2048 in one of the next updates. Personally, for the time being, I have rolled back to OS 15.2 where the fds were not limited. It seems like, at least for me, there is an fd leak somewhere : im monitoring the number of used fds and it keeps increasing steadily, not sure which part of my setup is causing this at this point.

Here’s my graph for open fds for the ha container, definitely doesn’t seem healthy :slight_smile:

Can you explain how you are monitoring open file descriptors?

Edit: I was able to rollback with ha os update --version 15.2

I had just upgraded to OS 16.0 yesterday (also running as a VM under ProxMox) and was hit with this issue as well. It seems like the system was locked up overnight for over 3 hours writing 13 GB to the disk (with errors similar to what was reported here of OSError: [Errno 24] No file descriptors available) and then rebooted itself. All the errors I could see were similar and available RAM was dropping over the course of 9 hours until it eventual ran out of file descriptors. I just reverted back to OS 15.2 and will see if it is back to stable (which is my assumption based on reading this and other threads). Hopefully this will get resolved in a future release.

Oh I’m using datadog (http://www.datadoghq.com/) with a free trial account => I manually installed the datadog agent as a docker container on the home assistant OS, it collects a number of metrics and one of them is the number of open fds per container. Graph is done using the datadog web dashboard ui.

Issue is still present on OS 16.1. It seems I need to downgrade again

UPD: It was crashing every 2 hours on 16.0, now it is crashing less frequently, stays alive for about 4 hours. But the fact is that it does not crash at all on 15.9 on the same setup.

Same issue for me, rebooting 1 time in 24 hours, OS 16 and Core 2025.8.3, Installed HAOS at VM Proxmox, in other thread said that it solved with increased limit from 1024 to 2048 but problem still exist. I’ve checked this article but still no work.

I have the same issue on OS 16.1, it’s very annoying for me.

When this issue happened, I have to login HA with SSH and run “ha core restart” because the HA web is dead.

And this issue is happened once a day.

I’ve downgrade to 15.2 and no problem now, I would like to get an response here when the problem after 16.X will be resolved.

16.2 released, would be great if somebody will share an experience with this issue…

I have the same problem even upgrading to 16.2. HA web UI couldn’t be access after few hours or minutes. The problematic add-ons were Tapo Camera Control and Dahua Integration. I am downgrading back to 15.2.

I have same problem with 16.2
Open fd is slowly increasing

#  docker exec homeassistant lsof -Ki | wc -l
441
#  docker exec homeassistant lsof -Ki | wc -l
440
#  docker exec homeassistant lsof -Ki | wc -l
490
# #10 hours later ->
# docker exec homeassistant lsof -Ki | wc -l
865

New fd are all related to python:

67      /usr/local/bin/python3.13       801     socket:[199550]
67      /usr/local/bin/python3.13       802     socket:[201166]
67      /usr/local/bin/python3.13       803     socket:[201003]
67      /usr/local/bin/python3.13       804     socket:[202170]
67      /usr/local/bin/python3.13       805     socket:[199370]
67      /usr/local/bin/python3.13       807     socket:[202525]
67      /usr/local/bin/python3.13       808     socket:[202533]
67      /usr/local/bin/python3.13       811     socket:[201732]

I don’t know how to identify the root cause of this fd leak.
Is there a way to identify this fd use?

Note : I had Tapo integration installed. I removed it, but the slow leak persists.
around 40/60 fd leaked per hour.