V 2021.3.2
Home Assistant Core
Docker = false
Virtual Environment = true
Python = 3.8.6
And since I made the last update, my HA is crashing after some time up. I restart it, it runs and crash again.
Trying to debug I already:
turned off InfluxDB
turned off NabuCasa connection
Log file shows me:
2021-03-08 20:41:47 ERROR (MainThread) [homeassistant] Error doing job: socket.accept() out of system resource
Traceback (most recent call last):
File “/usr/lib64/python3.8/asyncio/selector_events.py”, line 164, in _accept_connection
conn, addr = sock.accept()
File “/usr/lib64/python3.8/socket.py”, line 292, in accept
fd, addr = self._accept()
OSError: [Errno 24] Too many open files
I agree, you should find out why your box is establishing those connections and it should be a fun challenge. Maybe try to narrow it down some by not even starting homeassistant and see if the connections persist. I’m very much interested on your quest, so please post what you find
I would probably start by finding out which programs are making the connections. Maybe something like netstat -A inet -p or ss -tp on your box that runs homeassistant.
I gave up and decided to delete my venv and create a new one. I was a little bit concerned about some vulnerability so I decided to end my slow investigation. It was with sure coming from HA. I tried to turn off HA and these connections were gone. I turned on HA, they were coming up again.
I’m not sure I helped much, but I have been reading some concerning things about bad code infiltrating pypi and npm repositories around, so I was curious if this was one of those and if so, which package.