Page 1 of 1

HTTP server crash - error: [Errno 24] Too many open files

Posted: April 3rd, 2013, 12:21 pm
by Juo
My HTTP server will randomly crash about once a day.

Code: Select all

2013-04-03 12:40:46,270::ERROR::[_cplogging:55] [03/Apr/2013:12:40:46] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 75, in _start_http_thread
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1655, in start
    self.tick()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1703, in tick
    s, addr = self.socket.accept()
  File "<string>", line 4, in accept
  File "/usr/lib/python2.7/socket.py", line 202, in accept
error: [Errno 24] Too many open files

2013-04-03 12:40:46,270::INFO::[_cplogging:55] [03/Apr/2013:12:40:46] ENGINE Bus STOPPING
2013-04-03 12:40:46,270::INFO::[_cplogging:55] [03/Apr/2013:12:40:46] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.0.5', 9090)) shut down
2013-04-03 12:40:46,272::ERROR::[_cplogging:55] [03/Apr/2013:12:40:46] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 75, in _start_http_thread
    self.httpserver.start()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1655, in start
    self.tick()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1703, in tick
    s, addr = self.socket.accept()
  File "/usr/lib/python2.7/socket.py", line 202, in accept
    sock, addr = self._sock.accept()
error: [Errno 24] Too many open files
I posted here https://github.com/sabnzbd/sabnzbd/issu ... t-15849757

Apparently it 'Sounds like your Unix system has too low thresholds for files and/or sockets.' How would I go about doing this? I am on Ubuntu

Code: Select all

Linux version 3.5.0-26-generic (buildd@lamiak) (gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) ) #42-Ubuntu SMP Fri Mar 8 23:18:20 UTC 2013

Re: HTTP server crash - error: [Errno 24] Too many open file

Posted: May 20th, 2015, 2:07 am
by keithm
By any chance do you have HTTPS enabled?