Page 1 of 1

Sabnzbd crashing

Posted: October 18th, 2010, 11:13 pm
by meddlingbanter
Version 0.5.4
Ubuntu 10.04 Deb/Ubuntu package


Sabnzbd has been crashing on a daily basis for over a week.  It seemed to happen once I installed CouchPotato.  CouchPotato was crashing too, but that seems to be stable now, while Sabnzbd is crashing daily.  Sabnzbd has been paused every time it has crashed.  I restarted the computer over the weekend to see if that might solve the problem, but it hasn't, still rebooting with the same error each time.  Below is the error:
[18/Oct/2010:18:09:05] 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 1640, in start
    self.tick()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1688, in tick
    s, addr = self.socket.accept()
  File "", line 4, in accept
  File "/usr/lib/python2.6/socket.py", line 195, in accept
error: [Errno 24] Too many open files

[18/Oct/2010:18:09:05] ENGINE Bus STOPPING
[18/Oct/2010:18:09:05] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 4545)) shut down
[18/Oct/2010:18:09:05] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 9090)) shut down
[18/Oct/2010:18:09:05] ENGINE Stopped thread '_TimeoutMonitor'.
[18/Oct/2010:18:09:05] ENGINE Bus STOPPED
[18/Oct/2010:18:09:05] ENGINE Bus EXITING
[18/Oct/2010:18:09:05] ENGINE Bus EXITED
Like I said above, I am running CouchPotato on the same  computer, and since installing it Sabnzbd started crashing.  I also run SickBeard on the same computer but that has never crashed.  I know all three are using CherryPy servers, could that be the issue?  Too many running on that PC? Prior to CouchPotato, Sabnzbd and Sickbeard were working perfect, never crashing.  All three apps are up to date as of this post.  I'm not familiar with CherryPy so maybe someone out there with more experience can shed some light on whats going on here.  Thanks!

Re: Sabnzbd crashing

Posted: October 19th, 2010, 2:21 am
by shypike
meddlingbanter wrote:
[18/Oct/2010:18:09:05] ENGINE Error in HTTP server: shutting down
error: [Errno 24] Too many open files
This look like an Operating System limit being hit.
How many servers and connections did you setup in Config->Servers?

Re: Sabnzbd crashing

Posted: October 19th, 2010, 9:46 am
by meddlingbanter
shypike wrote:
meddlingbanter wrote:
[18/Oct/2010:18:09:05] ENGINE Error in HTTP server: shutting down
error: [Errno 24] Too many open files
This look like an Operating System limit being hit.
How many servers and connections did you setup in Config->Servers?
I have 1 server setup and 10 connections.  I'm also not downloading anything when this happens, its in a paused state.

Re: Sabnzbd crashing

Posted: October 19th, 2010, 10:18 am
by jcfp
These are limits of the os, take a look at the output of ulimit -a. Common culprits are database servers, torrent apps, etc.

Re: Sabnzbd crashing

Posted: October 19th, 2010, 11:35 am
by meddlingbanter
jcfp wrote: These are limits of the os, take a look at the output of ulimit -a. Common culprits are database servers, torrent apps, etc.
Alright thanks.  Looks like my open file limit is set pretty high:

open files                      (-n) 16384
I can't imagine I'm hitting this limit.  I'm not running a database or torrents off the server, its really only for nzb downloads.  Currently it looks like I have only 2300 files open.  I just removed some unnecessary services(apache2, mysql, nfs) and I'll see if that fixes things.

Re: Sabnzbd crashing

Posted: February 2nd, 2012, 5:00 pm
by deeepj
Hello !
Can you explain me how did you fix your problem ? It's the same for me and I don't understand what is going on...
Thanks !

Re: Sabnzbd crashing

Posted: February 2nd, 2012, 5:34 pm
by meddlingbanter
My problem went away with one of the updates to SAB though I dot remember which one. What version are you running?