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

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Juo
Newbie
Newbie
Posts: 7
Joined: April 6th, 2008, 3:47 pm

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

Post 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
keithm
Newbie
Newbie
Posts: 11
Joined: April 19th, 2008, 11:37 am

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

Post by keithm »

By any chance do you have HTTPS enabled?
Post Reply