sabnzbdplus-0.6.8-1 HTTPS CLOSE_WAIT problem

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
blammo
Newbie
Newbie
Posts: 4
Joined: January 24th, 2012, 11:15 am

sabnzbdplus-0.6.8-1 HTTPS CLOSE_WAIT problem

Post by blammo »

(starting here, since I'm running 0.6.8-1 on ubuntu 3.0.0-15-server)

fresh install of Ubuntu 11.10, patched, upgraded, installed sabnzbdplus, running behind a pfsense firewall, monitoring HTTPS with Chrome/Firefox "sendto" plugins, like sabconnect and sabplus.

over a fairly short period of time (4-12 hours), the sabnzbdplus process will stop responding on the HTTPS port (verified by telnet localhost PORT, which will open, but just sits non-responsive) even though the process itself is still running, downloading,etc. Looking at the netstat shows a lot of ports in "CLOSE_WAIT", the more ports the longer I wait to restart it. It's hung as we speak, with a fairly low count:

21 ESTABLISHED
38 CLOSE_WAIT

the error log shows complains about "ssl handshake failure"
==> /var/log/sabnzbd.error.log <==
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')]
It's not an open files problem, found and fixed that one early.
open files (-n) 32768
Restarting the process always cures the issue, but it's frustrating. Yesterday I worked through every chrome/IE/FF plugin I could find to monitor, and the problem is still happening.

Ideas?


(edit: just realized I wasn't running the latest from the "unofficial" repo (ppa) - going to give that a shot)
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: sabnzbdplus-0.6.8-1 HTTPS CLOSE_WAIT problem

Post by sander »

Yes, upgrading to the newest version (0.6.14) is always a good start.

This problem has been discussed a few months ago on this forum. From my memory: it happened with browser plugins activated (not caused with normal browser HTTPS traffic). I think disabling the plugin solved / worked-around it. The problem was also reported 'upstream', but I can't remember whether the upstream was the cherrypy / SSL framework, or in the plugin.
I believe there was no clear solution; the thread or the problem just faded ... :-(
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: sabnzbdplus-0.6.8-1 HTTPS CLOSE_WAIT problem

Post by sander »

blammo
Newbie
Newbie
Posts: 4
Joined: January 24th, 2012, 11:15 am

Re: sabnzbdplus-0.6.8-1 HTTPS CLOSE_WAIT problem

Post by blammo »

12+ hours and running without issue.. upgraded to 0.6.14, and took recommendations from other threads to disable plush. Together, problem is hiding, hopefully gone for good.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: sabnzbdplus-0.6.8-1 HTTPS CLOSE_WAIT problem

Post by sander »

blammo wrote:12+ hours and running without issue.. upgraded to 0.6.14, and took recommendations from other threads to disable plush. Together, problem is hiding, hopefully gone for good.
Did you 'only' upgrade to 0.6.14, and are you still running sabconnect++ ? Or did you stop using sabconnect++ ?
Post Reply