question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Linux - Application runs for a few hours then crashes with: "OSError: [Errno 24] Too many open files"

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:27 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
timmo001commented, Aug 5, 2022

This appears to only occur on linux, which I don’t have a dedicated system to test with

1reaction
ScottG489commented, Jul 27, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found