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.

Hitting OSError: [Errno 24] Too many open files

See original GitHub issue

Places this has surfaced:

  • @catherinewu can reproduce reliably by running pytest python_modules/libraries/dagster-dask/dagster_dask_tests/test_execute.py (but I cannot)
  • @helloworld ran into it while clicking around dagit
  • @yuhan ran into it while running dagster core tests
  • @alangenfeld ran into it with graphql tests

It’s not clear that these are all related.

Here’s one way to reproduce:

ulimit 256
pytest -s python_modules/dagster-graphql/dagster_graphql_tests/graphql/

To observe file descriptors leaking, run this in one terminal:

pytest -s python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_config_types.py

and repeatedly run this in another terminal:

lsof -p $(ps -A | grep pytest | grep -v grep | awk '{print $1}') > $(date +"%s")

Observe that the number of open file descriptors given by lsof increases throughout the test, with about one new temporary directory sticking around per test.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
sryzacommented, Jun 12, 2020
0reactions
schrockncommented, Jun 15, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Errno 24: Too many open files. But I am not opening files?
But the problem is, my entire code I didn't open any file. I suspect it could be caused by the api I query...
Read more >
Getting OSError: [Errno 24] Too many open files #6727 - GitHub
Perhaps? 1. Create a new conda env and have JLab installed. Do not install any extension for other kernel. 2. Reduce your system...
Read more >
How to Fix the 'Too Many Open Files' Error in Linux?
Very often 'too many open files' errors occur on high-load Linux servers. It means that a process has opened too many files (file ......
Read more >
Resolving problems with too many open files
The problem is usually interimittent; the web server is continually closing files or sockets that it has opened, so the limit is reached...
Read more >
Too many open files - by changing code in python3.7 - Biostars
I am trying to write two files using python, and I encountered the following error: OSError: [Errno 24] Too many open files: 'unmatch.site_3.txt'....
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