system-bridge: Linux - Application runs for a few hours then crashes with: "OSError: [Errno 24] Too many open files"
Description
Hi!
Running the program in UBuntu 22.04 and using the web url to access to data
└─5042 /usr/bin/python3.10 -m systembridgebackend --no-gui
everything runs fine for a few hours, data is being generated and upates but then stops with the error messag below:
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/systembridgebackend/modules/>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: self._bridge = Bridge(self.service_changed)
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/systembridgebackend/modules/>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/zeroconf/_core.py", line 450>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/zeroconf/_utils/net.py", lin>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/zeroconf/_utils/net.py", lin>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/zeroconf/_utils/net.py", lin>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/ifaddr/_posix.py", line 56, >
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: OSError: [Errno 24] Too many open files
What Platform / OS are you running?
Linux
What version are you running?
pyinstaller-5.2 sanic-ext-22.6.2 systembridgebackend-3.4.1 systembridgecli-3.4.1 systembridgefrontend-3.4.1 systembridgegui-3.4.1 systembridgeshared-3.4.1 systembridgewindowssensors-3.4.1 typer-0.6.1
Anything in the logs or a references that might be useful?
Successfully installed pyinstaller-5.2 sanic-ext-22.6.2 systembridgebackend-3.4.1 systembridgecli-3.4.1 systembridgefrontend-3.4.1 systembridgegui-3.4.1 systembridgeshared-3.4.1 systembridgewindowssensors-3.4.1 typer-0.6.1
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 34 (5 by maintainers)
4 days and still running, strong. 100 open files
Ok, this problem is officially solved.
How it was solved…I have no idea BUT I just kepy updating Ubuntu (including distro updates) and updated to latest System Bridge and it works.
thanks all @jd1 for bring this up, and @timmo001 for the development. Cheers
This appears to only occur on linux, which I don’t have a dedicated system to test with
I had the same issue and reported it as a standalone comment - https://github.com/timmo001/system-bridge/issues/1831#issuecomment-1176809830.
It’s likely still an issue for me, but since I haven’t gotten the service working yet for other reasons, I haven’t ran it for an extended period of time recently which seems necessary to reproduce the issue.