Linux - Application runs for a few hours then crashes with: "OSError: [Errno 24] Too many open files"
See original GitHub issueDescription
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
Issue Analytics
- State:
- Created a year ago
- Comments:27 (5 by maintainers)
Top Results From Across the Web
How to Fix the 'Too Many Open Files' Error in Linux?
It means that a process has opened too many files (file descriptors) and cannot open new ones. On Linux, the “max open file...
Read more >OSError: [Errno 24] Too many open files; in python
A tarfile object has to close the file, the with isn't going to reach through to the file object and do it. Just...
Read more >Resolve "Too Many Open files error" and "native ... - IBM
Resolve "Too Many Open files error" and "native OutOfMemory due to failed to create thread" issues in WebSphere Application Server running on Linux....
Read more >Dishonored 2 crashes with "eventfd: Too many open files" error
With wine 6.21 the game would crash after 30 minutes, but with 7.1 I managed to get it running for over an hour...
Read more >Too many open files error | Confluence
Resolution. To resolve this, you will need to increase the maximum open file limit: Shutdown Confluence. Run the following command in your ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.