Page 1 of 1

crashing without reason

Posted: May 3rd, 2014, 7:47 pm
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

Re: crashing without reason

Posted: May 4th, 2014, 1:16 am
by sander
do you access sab via https? if so: if you turn that off and use http, does the error go away?

Re: crashing without reason

Posted: May 4th, 2014, 1:47 am
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

Re: crashing without reason

Posted: May 4th, 2014, 1:54 am
by jbates58
no, its still crashing. i'll try rolling back to 7.16 and see what happens.

Re: crashing without reason

Posted: May 5th, 2014, 5:27 am
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

Re: crashing without reason

Posted: May 5th, 2014, 5:38 am
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.

Re: crashing without reason

Posted: May 5th, 2014, 6:03 am
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.

Re: crashing without reason

Posted: May 5th, 2014, 9:48 pm
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

Re: crashing without reason

Posted: May 6th, 2014, 12:26 am
by sander
jbates58 wrote:As it closes my browser
It closes your browser? I don't understand that. Can you explain?

Re: crashing without reason

Posted: May 6th, 2014, 4:18 am
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

Re: crashing without reason

Posted: May 6th, 2014, 4:28 am
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.

Re: crashing without reason

Posted: May 6th, 2014, 4:31 am
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.

Re: crashing without reason

Posted: May 6th, 2014, 5:15 am
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?

Re: crashing without reason

Posted: May 6th, 2014, 7:05 am
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