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.

Process cache can cause 'too many open files'

See original GitHub issue

Observed behavior

500 errors caused by having too many open file handles at once!

Errors and logs

ERROR    Internal Server Error: /en/auth/

Traceback (most recent call last):

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/core/handlers/exception.py", line 41, in inner

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/core/handlers/base.py", line 217, in _get_response

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/core/handlers/base.py", line 215, in _get_response

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/response.py", line 107, in render

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/response.py", line 84, in rendered_content

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/backends/django.py", line 66, in render

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/base.py", line 207, in render

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/base.py", line 199, in _render

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/base.py", line 990, in render

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/base.py", line 957, in render_annotated

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/loader_tags.py", line 177, in render

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/base.py", line 199, in _render

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/base.py", line 990, in render

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/base.py", line 957, in render_annotated

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/dist/django/template/library.py", line 203, in render

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/core/webpack/templatetags/webpack_tags.py", line 42, in webpack_asset

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/core/kolibri_plugin.py", line 178, in render_to_page_load_sync_html

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/core/webpack/hooks.py", line 223, in js_and_css_tags

File "/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/core/webpack/hooks.py", line 345, in get_filecontent

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 898, in open

IOError: [Errno 24] Too many open files: u'/Users/lauradanforth/.pex/install/kolibri-0.15.0b1-py2.py3-none-any.whl.3134d3aa97d8173c47655647faade689af511cd9/kolibri-0.15.0b1-py2.py3-none-any.whl/kolibri/core/static/kolibri.core.frontend_head_assets/kolibri.core.frontend_head_assets-0.15.0b1.js'

Expected behavior

We should not have so many files open that it causes an issue for any OS.

Context

Version 0.15.0b1 OS: MacOS

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bjestercommented, Nov 10, 2021

@indirectlylit Since this is no longer specific to Macs, I will unassign you from the issue. Thanks!

1reaction
indirectlylitcommented, Nov 10, 2021

@bjester this isn’t something I have much experience with but let me know if I can help with testing or debugging

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 >
Fixing the “Too many open files” Error in Linux - Baeldung
A process has certain limits with regard to the number of file descriptors it can have open at a time. One is a...
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 >
How to solve "Too many Open Files" in Java applications
The error Java IOException “Too many open files” can happen on high-load servers and it means that a process has opened too many...
Read more >
Nginx: 24: Too Many Open Files Error And Solution - nixCraft
Explains how to get rid of nginx error Too many file open under Linux ... for maximum file descriptors that can be opened...
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