I am getting the follow after upgrading to 33.3 from a working 33.0. I am running a basic HA (with evisalink) and homebridge on a PI 2. I am not sure how to reduce the files open or if that will even help. Any suggestions would be helpful. Thanks
Nov 24 06:45:10 raspberrypi hass[31186]: ERROR:homeassistant.core:Error doing job: socket.accept() out of system resource
Nov 24 06:45:10 raspberrypi hass[31186]: Traceback (most recent call last):
Nov 24 06:45:10 raspberrypi hass[31186]: File "/usr/lib/python3.4/asyncio/selector_events.py", line 137, in _accept_connec
Nov 24 06:45:10 raspberrypi hass[31186]: conn, addr = sock.accept()
Nov 24 06:45:10 raspberrypi hass[31186]: File "/usr/lib/python3.4/socket.py", line 184, in accept
Nov 24 06:45:10 raspberrypi hass[31186]: OSError: [Errno 24] Too many open files
rebooting fixes this, but after restarting home assistant 3 or 4 times, 33.3 and 33.4 report too many open files again. i ended up rebooting a couple of of times a day and finally went back to 31.1, where the system resources do get not exhausted by HA. (HA running on os x el capitan)
I’m starting to experience this a lot too. Currently on 0.36.1. If I am doing a lot of HA restarts, because of config changes, eventually it just stops working and throws this error, and I have to reboot. Something is not getting closed properly when the service is shut down, I’m guessing.
I still have the same problem, too (0.37.0). I imagine it could home something to do with the webinterface, I have tons of connections to :8123, even is hass is killed - and even in established state.
The only thing that was running node was homebridge. I killed and restarted homebridge and tada homeassistant was working again! Not sure why it was happening in the first place though. But it seems to be related at least in some regard to quitting and restarting hass with the connections not having a chance to close.
My original setup was on a Mac Mini. Gave up on that a couple of weeks ago and built loaded Hassbian on a Pi 3. No errors and install was easier. Backup of the SD card is easy so if something goes wrong I can quickly fall back to a working system.
I’m egetting the same. Homeassistant 0.40 no home bridge.
Any ideas on how to increase the number of files? Raspbian?
Couldn’t get to work with MySQL reliably. Switched to Postgres. Now getting the following after 3-4 days. Anybody know how to fix this one? Guess the same reason my nmap scan is also failing
requests.exceptions.ConnectionError: HTTPConnectionPool(host='xxx', port=8086): Max retries exceeded with url: /write?db=home_assistant (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x3c5f66b0>: Failed to establish a new connection: [Errno 24] Too many open files',))