Page 1 of 1

SABNZBD+ won't start: ChannelFailures: SSLError(185073780

Posted: September 27th, 2018, 9:24 pm
by pisanis
Hi,

I am having a problem starting recent version of SABNZBD+ on my QNAP TS419PII. This used to work, but I suspect I may have broken something with regards to SSL or Python configuration,

When I start this up, (whilst it reports that it is started), it is not... (or maybe just dies straight after startup). I sought help from the QNAP forum - there is a thread in that forum which has the history but as a new poster in this forum, - I can't post the link for you unfortunately... (There is a topic in the QNAP/SABNZBD+ forum with the same subject line "SABNZBD+ won't start' - which has all the history that brings me to this point.. )

Summarising - In the last post on the topic, we seem to have discovered an SSL issue, after launching SAB in 'Live' mode - here is the error message:

ChannelFailures: SSLError(185073780, u'[X509: KEY_VALUES_MISMATCH] unknown error (_ssl.c:2798)')

Any suggestions ?

Happy to revert to previous version, but equally would like to stay current. Perhaps there are some settings in an .ini file w/to HTTPS that I can clear out to get it started, then I can use the GUI to re-configure properly ?

Thanks

Re: SABNZBD+ won't start

Posted: September 27th, 2018, 9:48 pm
by OneCD
Here's the original thread: https://forum.qnap.com/viewtopic.php?f=133&t=143605

And the fault that is occurring when starting SABnzbd on this NAS:

Code: Select all

2018-09-28 08:51:59,998::ERROR::[_cplogging:219] [28/Sep/2018:08:51:59] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x1b777a8>>
Traceback (most recent call last):
  File "/share/MD0_DATA/.qpkg/SABnzbdplus/SABnzbdplus/cherrypy/process/wspbus.py", line 207, in publish
    output.append(listener(*args, **kwargs))
  File "/share/MD0_DATA/.qpkg/SABnzbdplus/SABnzbdplus/cherrypy/_cpserver.py", line 167, in start
    self.httpserver, self.bind_addr = self.httpserver_from_self()
  File "/share/MD0_DATA/.qpkg/SABnzbdplus/SABnzbdplus/cherrypy/_cpserver.py", line 158, in httpserver_from_self
    httpserver = _cpwsgi_server.CPWSGIServer(self)
  File "/share/MD0_DATA/.qpkg/SABnzbdplus/SABnzbdplus/cherrypy/_cpwsgi_server.py", line 64, in __init__
    self.server_adapter.ssl_certificate_chain)
  File "/share/MD0_DATA/.qpkg/SABnzbdplus/SABnzbdplus/cherrypy/wsgiserver/ssl_builtin.py", line 56, in __init__
    self.context.load_cert_chain(certificate, private_key)
SSLError: [X509: KEY_VALUES_MISMATCH] unknown error (_ssl.c:2798)

2018-09-28 08:52:00,002::ERROR::[_cplogging:219] [28/Sep/2018:08:52:00] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/share/MD0_DATA/.qpkg/SABnzbdplus/SABnzbdplus/cherrypy/process/wspbus.py", line 245, in start
    self.publish('start')
  File "/share/MD0_DATA/.qpkg/SABnzbdplus/SABnzbdplus/cherrypy/process/wspbus.py", line 225, in publish
    raise exc
ChannelFailures: SSLError(185073780, u'[X509: KEY_VALUES_MISMATCH] unknown error (_ssl.c:2798)')
I'm out-of-my-depth with SSL, so I'm hoping you guys can take a look at this one, please. ;)

Re: SABNZBD+ won't start

Posted: September 27th, 2018, 11:52 pm
by sander
For a start, I would:

stop SABnzbd
remove server.cert and server.key (normally in ~/.sabnzbd/admin/)
and start SABnzbd again from the CLI.

Re: SABNZBD+ won't start

Posted: September 28th, 2018, 12:44 am
by OneCD
Thanks @sander. 8)

@pisanis, your files will be in [/share/MD0_DATA/.qpkg/SABnzbdplus/config/admin/]

Re: SABNZBD+ won't start

Posted: September 28th, 2018, 1:39 am
by pisanis
Yay !!

Done that - and it's all working.. !

I stopped, and restarted also from QNAP's console (so, not from the command line). I see it re-created a default server.* files.

Thanks all - and thanks @OneCd.

Now I need to find valid cert and keys, so that I can properly secure this site.

cheers -

Re: SABNZBD+ won't start

Posted: September 28th, 2018, 2:06 am
by OneCD
Good work. I knew @sander would have the answer. :D

Re: SABNZBD+ won't start

Posted: September 28th, 2018, 2:08 am
by sander
pisanis wrote: September 28th, 2018, 1:39 am Yay !!

Done that - and it's all working.. !
Nice.

pisanis wrote: September 28th, 2018, 1:39 am Now I need to find valid cert and keys, so that I can properly secure this site.
See https://letsencrypt.org/