crashing without reason

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
jbates58
Newbie
Newbie
Posts: 33
Joined: October 16th, 2012, 5:53 pm

crashing without reason

Post by jbates58 »

hi all. i have sabnzb installed on an odroid board (similar to a Rpi). and for some unknown reason, it just crashses. looking through the log i cant see anything. but im not very knowledgable in linux but i do see errors of some sort in the error log (duh...) but i dont know if they are related. it can last for a few hours, or it can last for minutes. i have attached a copy of the log file. i have used it before and it has been flawless, so i am unsre what the problem is here.

Error Log:

Code: Select all

** (sabnzbdplus:2247): WARNING **: Command line `dbus-launch --autolaunch=083e468e0c4fc1192ed6cf5f00000016 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n

** (sabnzbdplus:2482): WARNING **: Command line `dbus-launch --autolaunch=083e468e0c4fc1192ed6cf5f00000016 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n

** (sabnzbdplus:2965): WARNING **: Command line `dbus-launch --autolaunch=083e468e0c4fc1192ed6cf5f00000016 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
Exception in thread CP WSGIServer Thread-20:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1295, in run
    conn.communicate()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1212, in communicate
    req.simple_response("408 Request Timeout")
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 612, in simple_response
    self.wfile.sendall("".join(buf))
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1126, in sendall
    return self._safe_call(False, super(SSL_fileobject, self).sendall, *args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1078, in _safe_call
    return call(*args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 748, in sendall
    bytes_sent = self.send(data)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1129, in send
    return self._safe_call(False, super(SSL_fileobject, self).send, *args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1108, in _safe_call
    raise FatalSSLAlert(*e.args)
FatalSSLAlert: [('SSL routines', 'SSL23_WRITE', 'ssl handshake failure')]

Exception in thread CP WSGIServer Thread-16:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1295, in run
    conn.communicate()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1212, in communicate
    req.simple_response("408 Request Timeout")
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 612, in simple_response
    self.wfile.sendall("".join(buf))
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1126, in sendall
    return self._safe_call(False, super(SSL_fileobject, self).sendall, *args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1078, in _safe_call
    return call(*args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 748, in sendall
    bytes_sent = self.send(data)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1129, in send
    return self._safe_call(False, super(SSL_fileobject, self).send, *args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1108, in _safe_call
    raise FatalSSLAlert(*e.args)
FatalSSLAlert: [('SSL routines', 'SSL23_WRITE', 'ssl handshake failure')]

Exception in thread CP WSGIServer Thread-16:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1295, in run
    conn.communicate()
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1212, in communicate
    req.simple_response("408 Request Timeout")
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 612, in simple_response
    self.wfile.sendall("".join(buf))
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1126, in sendall
    return self._safe_call(False, super(SSL_fileobject, self).sendall, *args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1078, in _safe_call
    return call(*args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 748, in sendall
    bytes_sent = self.send(data)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1129, in send
    return self._safe_call(False, super(SSL_fileobject, self).send, *args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1108, in _safe_call
    raise FatalSSLAlert(*e.args)
FatalSSLAlert: [('SSL routines', 'SSL23_WRITE', 'ssl handshake failure')]
seeing the ssl errors points me to that been the issue. but i dont know. i am running the latest sab from github.

flicking throught the general log file, i couldnt see anything, but its to large to post here, if you would still like it, let me know. and i will. but it might take a few posts.

cheers

Jason
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: crashing without reason

Post by sander »

do you access sab via https? if so: if you turn that off and use http, does the error go away?
jbates58
Newbie
Newbie
Posts: 33
Joined: October 16th, 2012, 5:53 pm

Re: crashing without reason

Post by jbates58 »

ok, well i have disabled the https in the config, and i will see how it goes.

if that is the problem, any ideas? as it didnt happen on 7.16 (that i am aware of) so i might just go back to that version. as i would like tobe able to use ssl from the internet to access my server.

cheers

Jason
jbates58
Newbie
Newbie
Posts: 33
Joined: October 16th, 2012, 5:53 pm

Re: crashing without reason

Post by jbates58 »

no, its still crashing. i'll try rolling back to 7.16 and see what happens.
jbates58
Newbie
Newbie
Posts: 33
Joined: October 16th, 2012, 5:53 pm

Re: crashing without reason

Post by jbates58 »

and its still crashing on 7.16. how do i completly remove it from ubuntu, and i'll try to re-install it.

cheers

Jason
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: crashing without reason

Post by sander »

jbates58 wrote:and its still crashing on 7.16. how do i completly remove it from ubuntu, and i'll try to re-install it.
Depends how you installed it: if via "sudo apt-get install sabnzbdplus" then via "sudo apt-get remove sabnzbdplus" plus "sudo apt-get purge sabnzbdplus". To be sure also remove ~/.sabnzbd/sabnzbd.ini

If you downloaded the source file, remove the directory to which you unpacked it.
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: crashing without reason

Post by sander »

BTW: I dived into:

Code: Select all

  File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/__init__.py", line 1108, in _safe_call
    raise FatalSSLAlert(*e.args)
FatalSSLAlert: [('SSL routines', 'SSL23_WRITE', 'ssl handshake failure')]
and the corresponding sabnzbd code is this:

Code: Select all

                if thirdarg == 'http request':
                    # The client is talking HTTP to an HTTPS server.
                    raise NoSSLError()
                raise FatalSSLAlert(*e.args)
EDIT: ouch, the "raise FatalSSLAlert(*e.args) is NOT part of the if-statement, so take the following with a big grain of salt /EDIT

So: "# The client is talking HTTP to an HTTPS server." ... When I force that with a "wget http://localhost:9095/" (so: talking HTTP on the HTTPS-port), I get this:

Code: Select all

Exception in thread CP WSGIServer Thread-23:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/home/sander/kul-git/sabnzbd/cherrypy/wsgiserver/__init__.py", line 1295, in run
    conn.communicate()
  File "/home/sander/kul-git/sabnzbd/cherrypy/wsgiserver/__init__.py", line 1212, in communicate
    req.simple_response("408 Request Timeout")
  File "/home/sander/kul-git/sabnzbd/cherrypy/wsgiserver/__init__.py", line 612, in simple_response
    self.wfile.sendall("".join(buf))
  File "/home/sander/kul-git/sabnzbd/cherrypy/wsgiserver/__init__.py", line 1126, in sendall
    return self._safe_call(False, super(SSL_fileobject, self).sendall, *args, **kwargs)
  File "/home/sander/kul-git/sabnzbd/cherrypy/wsgiserver/__init__.py", line 1078, in _safe_call
    return call(*args, **kwargs)
  File "/home/sander/kul-git/sabnzbd/cherrypy/wsgiserver/__init__.py", line 748, in sendall
    bytes_sent = self.send(data)
  File "/home/sander/kul-git/sabnzbd/cherrypy/wsgiserver/__init__.py", line 1129, in send
    return self._safe_call(False, super(SSL_fileobject, self).send, *args, **kwargs)
  File "/home/sander/kul-git/sabnzbd/cherrypy/wsgiserver/__init__.py", line 1108, in _safe_call
    raise FatalSSLAlert(*e.args)
FatalSSLAlert: [('SSL routines', 'SSL23_WRITE', 'ssl handshake failure')]
So I would there is nothing wrong with your SABnzbd setup; my guess is your webbrowser, a webbrowser plugin or a third party program is causing this by talking HTTP to the HTTPS port.

But as you said you disabled HTTPS in SABnzbd, I don't understand this can happen at all on your system. Are you 100% sure you disabled HTTPS?

Furthermore, the error message above does NOT stop my SABnzbd; it just gives the error messages and contiues.
jbates58
Newbie
Newbie
Posts: 33
Joined: October 16th, 2012, 5:53 pm

Re: crashing without reason

Post by jbates58 »

I will double check the https setting. But i am sure its off. And im just using mozilla.

Are there any other logs i can get? As it closes my browser and crashes sab. Bit useless for 24/7 machine. Hehe

Cheers

Jason
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: crashing without reason

Post by sander »

jbates58 wrote:As it closes my browser
It closes your browser? I don't understand that. Can you explain?
jbates58
Newbie
Newbie
Posts: 33
Joined: October 16th, 2012, 5:53 pm

Re: crashing without reason

Post by jbates58 »

well the mozilla browser is open, and im looking at the sab page, then without warning the browser closes down, and the sabnzb daemon has stopped running. i then have to "/etc/init.d/sabnzbd start" to get it running again.

cheers

Jason
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: crashing without reason

Post by sander »

jbates58 wrote: without warning the browser closes down
With or without SABnzbd running, your browser should not close. So that seems like another problem.
jbates58
Newbie
Newbie
Posts: 33
Joined: October 16th, 2012, 5:53 pm

Re: crashing without reason

Post by jbates58 »

i agree. but thats not a real drama, as its mostly a headless server. what is a problem is that it keeps stopping.
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: crashing without reason

Post by sander »

First:
what is your output of "grep -i https ~/.sabnzbd/sabnzbd.ini"

Code: Select all

$ grep -i https ~/.sabnzbd/sabnzbd.ini
https_port = 9090
https_key = server.key
enable_https = 0
https_cert = server.cert
https_chain = ""
Second:
to do debugging, stop SAB as a service, and just type "sabnzbdplus" on the commandline. Keep that terminal window open.
As soon as it crashes, look at the terminal window what it says.

Third:
I still wonder if SAB crashes at all, or it is just your browser. Have you tried Chrome/Chromium?
jbates58
Newbie
Newbie
Posts: 33
Joined: October 16th, 2012, 5:53 pm

Re: crashing without reason

Post by jbates58 »

sander wrote:First:
what is your output of "grep -i https ~/.sabnzbd/sabnzbd.ini"

Code: Select all

$ grep -i https ~/.sabnzbd/sabnzbd.ini
https_port = 9090
https_key = server.key
enable_https = 0
https_cert = server.cert
https_chain = ""
Second:
to do debugging, stop SAB as a service, and just type "sabnzbdplus" on the commandline. Keep that terminal window open.
As soon as it crashes, look at the terminal window what it says.

Third:
I still wonder if SAB crashes at all, or it is just your browser. Have you tried Chrome/Chromium?
Prety much the exact same

Code: Select all

$ grep -i https ~/.sabnzbd/sabnzbd.ini
https_port = 8090
https_key = server.key
https_chain = ""
enable_https = 0
https_cert = server.cert
I have changed the ssl port but thats it.

I will start sab in a screen session. And see how we go.

Cheers

Jason
Post Reply