sabnzbd not closing connections to server down properly?

Get help with all aspects of SABnzbd
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
User avatar
trmentry
Newbie
Newbie
Posts: 12
Joined: June 29th, 2008, 10:10 am

sabnzbd not closing connections to server down properly?

Post by trmentry »

I'm not totally for sure if this is a sabnzbd issue, but thought I would ask just in case.

Version: 0.4.9
OS: Ubuntu Hardy (8.04)
Install-type: Linux Manual
Skin (if applicable): Plush
Firewall Software: pfSense
Are you using IPV6? nope
Is the issue reproducible? kinda

Stunnel4 = 4.21

I have my linux server also running Stunnel4.  I have sabnzbd setup to connect to localhost:119 for the server.  Stunnel will grab it and then relay on to giganews using their ssl connections.

What I notice from time to time is that my speed will degrade on downloads.  If I restart stunnel, things clear up and are fine.

When I restart stunnel I will see an awful large amount of CLOSE_WAIT on a netstat.  For example

Code: Select all

~$ netstat -a | grep nntp
tcp        0      0 *:nntp                  *:*                     LISTEN
tcp        7      0 localhost:nntp          localhost:36350         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:33011         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:33007         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:45410         CLOSE_WAIT
tcp        0      0 172.31.100.5:57061      news.giganews.com:nntps ESTABLISHED
tcp        0      0 localhost:nntp          localhost:46555         ESTABLISHED
tcp        7      0 localhost:nntp          localhost:40339         CLOSE_WAIT
tcp        0      0 localhost:41425         localhost:nntp          ESTABLISHED
tcp        0      0 localhost:41424         localhost:nntp          ESTABLISHED
tcp        7      0 localhost:nntp          localhost:34999         CLOSE_WAIT
tcp        0      0 localhost:41423         localhost:nntp          ESTABLISHED
tcp        0      0 localhost:nntp          localhost:46556         ESTABLISHED
tcp        7      0 localhost:nntp          localhost:40325         CLOSE_WAIT
tcp        0      0 localhost:nntp          localhost:46557         ESTABLISHED
tcp        7      0 localhost:nntp          localhost:35015         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:50069         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:36351         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:35000         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:45412         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:36348         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:34998         CLOSE_WAIT
tcp        0      0 localhost:41422         localhost:nntp          ESTABLISHED
tcp        0      0 localhost:41421         localhost:nntp          ESTABLISHED
tcp        7      0 localhost:nntp          localhost:45414         CLOSE_WAIT
tcp        0      0 localhost:nntp          localhost:41425         ESTABLISHED
tcp        7      0 localhost:nntp          localhost:40328         CLOSE_WAIT
tcp     8640      0 172.31.100.5:57064      news.giganews.com:nntps ESTABLISHED
tcp        7      0 localhost:nntp          localhost:41994         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:46561         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:36349         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:33009         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:35001         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:35011         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:33010         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:34997         CLOSE_WAIT
tcp        0      0 localhost:nntp          localhost:46554         ESTABLISHED
tcp        7      0 localhost:nntp          localhost:40327         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:36347         CLOSE_WAIT
tcp        0      0 localhost:46554         localhost:nntp          ESTABLISHED
tcp        0      0 172.31.100.5:57063      news.giganews.com:nntps ESTABLISHED
tcp        7      0 localhost:nntp          localhost:41995         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:46562         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:46559         CLOSE_WAIT
tcp     4320      0 172.31.100.5:57060      news.giganews.com:nntps ESTABLISHED
tcp        0      0 172.31.100.5:57065      news.giganews.com:nntps ESTABLISHED
tcp        7      0 localhost:nntp          localhost:46558         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:41996         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:41997         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:33008         CLOSE_WAIT
tcp        0      0 localhost:nntp          localhost:41423         ESTABLISHED
tcp        7      0 localhost:nntp          localhost:50068         CLOSE_WAIT
tcp        0      0 localhost:nntp          localhost:41422         ESTABLISHED
tcp        0      0 localhost:nntp          localhost:46553         ESTABLISHED
tcp        7      0 localhost:nntp          localhost:50070         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:40337         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:40326         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:46560         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:35014         CLOSE_WAIT
tcp        0      0 localhost:nntp          localhost:41424         ESTABLISHED
tcp        7      0 localhost:nntp          localhost:35012         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:35013         CLOSE_WAIT
tcp        0      0 localhost:46556         localhost:nntp          ESTABLISHED
tcp        7      0 localhost:nntp          localhost:40340         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:40324         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:45413         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:50071         CLOSE_WAIT
tcp        0      0 localhost:nntp          localhost:41421         ESTABLISHED
tcp        7      0 localhost:nntp          localhost:41993         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:45411         CLOSE_WAIT
tcp        0      0 localhost:46555         localhost:nntp          ESTABLISHED
tcp        0      0 localhost:46553         localhost:nntp          ESTABLISHED
tcp        7      0 localhost:nntp          localhost:50072         CLOSE_WAIT
tcp        0      0 localhost:46557         localhost:nntp          ESTABLISHED
tcp        7      0 localhost:nntp          localhost:40336         CLOSE_WAIT
tcp        7      0 localhost:nntp          localhost:40338         CLOSE_WAIT
 
When I restarted stunnel, I got my 10 to localhost and 10 to giganews like I expect and then speed was back up to max. 

Code: Select all

~$ netstat -a | grep nntp
tcp        0      0 *:nntp                  *:*                     LISTEN
tcp        0      0 172.31.100.5:53062      news.giganews.com:nntps ESTABLISHED
tcp        0      0 172.31.100.5:53060      news.giganews.com:nntps ESTABLISHED
tcp        0      0 172.31.100.5:53076      news.giganews.com:nntps ESTABLISHED
tcp        0      0 localhost:41447         localhost:nntp          ESTABLISHED
tcp        0      0 localhost:41442         localhost:nntp          ESTABLISHED
tcp        0      0 localhost:nntp          localhost:41441         ESTABLISHED
tcp        0      0 172.31.100.5:53068      news.giganews.com:nntps ESTABLISHED
tcp        0      0 172.31.100.5:53059      news.giganews.com:nntps ESTABLISHED
tcp        0  16384 localhost:nntp          localhost:41447         ESTABLISHED
tcp        0      0 localhost:41456         localhost:nntp          ESTABLISHED
tcp        0      0 localhost:41453         localhost:nntp          ESTABLISHED
tcp        0  13032 localhost:nntp          localhost:41455         ESTABLISHED
tcp        0      0 localhost:nntp          localhost:41457         ESTABLISHED
tcp        0      0 localhost:41457         localhost:nntp          ESTABLISHED
tcp        0      0 localhost:41455         localhost:nntp          ESTABLISHED
tcp        0      0 localhost:41445         localhost:nntp          ESTABLISHED
tcp        0      0 172.31.100.5:53064      news.giganews.com:nntps ESTABLISHED
tcp        0      0 172.31.100.5:53066      news.giganews.com:nntps ESTABLISHED
tcp        0      0 localhost:nntp          localhost:41442         ESTABLISHED
tcp        0      0 localhost:41441         localhost:nntp          ESTABLISHED
tcp        0      0 172.31.100.5:53075      news.giganews.com:nntps ESTABLISHED
tcp        0      0 localhost:nntp          localhost:41445         ESTABLISHED
tcp        0      0 localhost:nntp          localhost:41451         ESTABLISHED
tcp        0      0 localhost:41451         localhost:nntp          ESTABLISHED
tcp        0      0 localhost:nntp          localhost:41449         ESTABLISHED
tcp        0      0 172.31.100.5:53074      news.giganews.com:nntps ESTABLISHED
tcp        0      0 localhost:41449         localhost:nntp          ESTABLISHED
tcp        0      0 localhost:nntp          localhost:41453         ESTABLISHED
tcp        0      0 localhost:nntp          localhost:41456         ESTABLISHED
tcp        0      0 172.31.100.5:53070      news.giganews.com:nntps ESTABLISHED
I'm not saying sabnzbd has an issue, just wanting to check if anyone else has seen an issue like this.  It very well maybe a stunnel thing.

Thanks
User avatar
trmentry
Newbie
Newbie
Posts: 12
Joined: June 29th, 2008, 10:10 am

Re: sabnzbd not closing connections to server down properly?

Post by trmentry »

Hrmm... ok.... I did a bit more Googling and found the following:

https://bugs.launchpad.net/ubuntu/+sour ... bug/327222

I'll see if I can take my Stunnel from 4.21 to version in the post.

Sorry for the cruft.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: sabnzbd not closing connections to server down properly?

Post by shypike »

Do you need to use stunnel?
SABnzbd supports SSL connections.
User avatar
trmentry
Newbie
Newbie
Posts: 12
Joined: June 29th, 2008, 10:10 am

Re: sabnzbd not closing connections to server down properly?

Post by trmentry »

I'm currently running 0.4.9 and it shows it as disabled option in the server setup.  Tick box is grey'ed out.

Hrmm.. looking in changelog, looks like it's been there awhile.  But it's always been grey'ed out for me in my web interface.  thus my stunnel work around.

I'll dig into that and see if I borked something in my ini.
Last edited by trmentry on July 16th, 2009, 8:41 am, edited 1 time in total.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: sabnzbd not closing connections to server down properly?

Post by switch »

Install python-openssl (pyopenssl).
User avatar
trmentry
Newbie
Newbie
Posts: 12
Joined: June 29th, 2008, 10:10 am

Re: sabnzbd not closing connections to server down properly?

Post by trmentry »

switch wrote: Install python-openssl (pyopenssl).
That did the trink.  Thank you very much. 
Post Reply