Page 1 of 1

SABnzbd keeps shutting down

Posted: July 1st, 2010, 11:00 am
by Bitterbeard
I'm not sure what changed, I installed a second NIC card Killer Xeno Pro, now I cannot seem to get SABnzbd to run properly. Using Chrome to connect to but from the log the web interface never starts so i can't even get to in to install the program again. Thought I'd uninstall/delete everything and start from scratch, same issue. Using a different port as SABnzbd suggests doesn't get me anywhere either.

I'm running windows 7 pro 64-bit, forgot to add that

Anybody seen this before?
2010-07-01 07:55:27,403::INFO::[sabnzbd:956] --------------------------------
2010-07-01 07:55:27,404::INFO::[sabnzbd:957] SABnzbd.exe-0.5.3 (rev=2452)
2010-07-01 07:55:27,470::INFO::[sabnzbd:965] Platform=Windows-Vista-6.1.7600 (=Vista+ x64) Class=nt
2010-07-01 07:55:27,470::INFO::[sabnzbd:968] Python-version = 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
2010-07-01 07:55:27,482::INFO::[__init__:662] Loading data for bookmarks.sab from C:\Users\Josh\AppData\Local\sabnzbd\cache\bookmarks.sab
2010-07-01 07:55:27,500::INFO::[__init__:693] C:\Users\Josh\AppData\Local\sabnzbd\cache\bookmarks.sab removed
2010-07-01 07:55:27,500::INFO::[__init__:662] Loading data for rss_data.sab from C:\Users\Josh\AppData\Local\sabnzbd\cache\rss_data.sab
2010-07-01 07:55:27,519::INFO::[__init__:662] Loading data for bytes9.sab from C:\Users\Josh\AppData\Local\sabnzbd\cache\bytes9.sab
2010-07-01 07:55:27,520::INFO::[__init__:662] Loading data for queue9.sab from C:\Users\Josh\AppData\Local\sabnzbd\cache\queue9.sab
2010-07-01 07:55:27,538::INFO::[postproc:139] Loading postproc queue
2010-07-01 07:55:27,538::INFO::[__init__:662] Loading data for postproc1.sab from C:\Users\Josh\AppData\Local\sabnzbd\cache\postproc1.sab
2010-07-01 07:55:27,556::INFO::[__init__:693] C:\Users\Josh\AppData\Local\sabnzbd\cache\postproc1.sab removed
2010-07-01 07:55:27,558::INFO::[__init__:662] Loading data for watched_data.sab from C:\Users\Josh\AppData\Local\sabnzbd\cache\watched_data.sab
2010-07-01 07:55:27,575::INFO::[downloader:334] Resuming
2010-07-01 07:55:27,579::INFO::[__init__:250] All processes started
2010-07-01 07:55:27,579::INFO::[sabnzbd:265] Web dir is C:\Program Files (x86)\SABnzbd\interfaces\smpl
2010-07-01 07:55:27,586::INFO::[sabnzbd:1021] Starting SABnzbd.exe-0.5.3
2010-07-01 07:55:27,588::INFO::[dirscanner:367] Dirscanner starting up
2010-07-01 07:55:27,588::INFO::[sabnzbd:386] _yenc module... found!
2010-07-01 07:55:27,588::INFO::[urlgrabber:103] URLGrabber starting up
2010-07-01 07:55:27,589::INFO::[sabnzbd:394] par2 binary... found (C:\Program Files (x86)\SABnzbd\win\par2\x64\par2.exe)
2010-07-01 07:55:27,589::INFO::[sabnzbd:399] par2-classic binary... found (C:\Program Files (x86)\SABnzbd\win\par2\par2-classic.exe)
2010-07-01 07:55:27,589::INFO::[sabnzbd:402] unrar binary... found (C:\Program Files (x86)\SABnzbd\win\unrar\x64\UnRAR.exe)
2010-07-01 07:55:27,589::INFO::[sabnzbd:407] unzip binary... found (C:\Program Files (x86)\SABnzbd\win\unzip\unzip.exe)
2010-07-01 07:55:27,589::INFO::[sabnzbd:422] pyOpenSSL... found (True)
2010-07-01 07:55:27,591::INFO::[sabnzbd:1119] Starting web-interface on localhost:8081
2010-07-01 07:55:28,599::INFO::[_cplogging:55] [01/Jul/2010:07:55:28] ENGINE Bus STARTING
2010-07-01 07:55:28,605::INFO::[_cplogging:55] [01/Jul/2010:07:55:28] ENGINE Started monitor thread '_TimeoutMonitor'.
2010-07-01 07:56:24,529::ERROR::[_cplogging:55] [01/Jul/2010:07:56:24] ENGINE Error in 'start' listener >
Traceback (most recent call last):
 File "cherrypy\process\wspbus.pyo", line 147, in publish
 File "cherrypy\_cpserver.pyo", line 90, in start
 File "cherrypy\process\servers.pyo", line 62, in start
 File "cherrypy\process\servers.pyo", line 103, in wait
 File "cherrypy\process\servers.pyo", line 275, in wait_for_occupied_port
IOError: Port 8081 not bound on 'localhost'

2010-07-01 07:56:24,529::ERROR::[_cplogging:55] [01/Jul/2010:07:56:24] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
 File "cherrypy\process\wspbus.pyo", line 184, in start
 File "cherrypy\process\wspbus.pyo", line 147, in publish
 File "cherrypy\_cpserver.pyo", line 90, in start
 File "cherrypy\process\servers.pyo", line 62, in start
 File "cherrypy\process\servers.pyo", line 103, in wait
 File "cherrypy\process\servers.pyo", line 275, in wait_for_occupied_port
IOError: Port 8081 not bound on 'localhost'

2010-07-01 07:56:24,529::INFO::[_cplogging:55] [01/Jul/2010:07:56:24] ENGINE Bus STOPPING
2010-07-01 07:56:24,529::INFO::[_cplogging:55] [01/Jul/2010:07:56:24] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('localhost', 8081)) already shut down
2010-07-01 07:56:24,572::INFO::[_cplogging:55] [01/Jul/2010:07:56:24] ENGINE Stopped thread '_TimeoutMonitor'.
2010-07-01 07:56:24,572::INFO::[_cplogging:55] [01/Jul/2010:07:56:24] ENGINE Bus STOPPED
2010-07-01 07:56:24,573::INFO::[_cplogging:55] [01/Jul/2010:07:56:24] ENGINE Bus EXITING
2010-07-01 07:56:24,573::INFO::[_cplogging:55] [01/Jul/2010:07:56:24] ENGINE Bus EXITED
2010-07-01 07:56:24,573::ERROR::[sabnzbd:238] Failed to start web-interface
2010-07-01 07:56:24,578::INFO::[misc:557] Lauching browser with c:\users\thedud~1\appdata\local\temp\tmp2clcxx.html
2010-07-01 07:56:24,621::INFO::[__init__:286] SABnzbd shutting down...
2010-07-01 07:56:24,622::INFO::[__init__:641] Saving data for bookmarks.sab in C:\Users\Josh\AppData\Local\sabnzbd\cache\bookmarks.sab
2010-07-01 07:56:24,624::INFO::[urlgrabber:98] URLGrabber shutting down
2010-07-01 07:56:24,625::INFO::[__init__:641] Saving data for watched_data.sab in C:\Users\Josh\AppData\Local\sabnzbd\cache\watched_data.sab
2010-07-01 07:56:24,625::INFO::[dirscanner:281] Dirscanner shutting down
2010-07-01 07:56:25,594::INFO::[downloader:490] Shutting down
2010-07-01 07:56:25,595::INFO::[assembler:102] Shutting down
2010-07-01 07:56:25,595::INFO::[postproc:134] Saving postproc queue
2010-07-01 07:56:25,596::INFO::[__init__:641] Saving data for postproc1.sab in C:\Users\Josh\AppData\Local\sabnzbd\cache\postproc1.sab
2010-07-01 07:56:25,598::INFO::[nzbqueue:92] Saving queue
2010-07-01 07:56:25,598::INFO::[__init__:641] Saving data for queue9.sab in C:\Users\Josh\AppData\Local\sabnzbd\cache\queue9.sab
2010-07-01 07:56:25,599::INFO::[__init__:641] Saving data for bytes9.sab in C:\Users\Josh\AppData\Local\sabnzbd\cache\bytes9.sab
2010-07-01 07:56:25,601::INFO::[__init__:641] Saving data for rss_data.sab in C:\Users\Josh\AppData\Local\sabnzbd\cache\rss_data.sab
2010-07-01 07:56:25,602::INFO::[__init__:641] Saving data for bookmarks.sab in C:\Users\Josh\AppData\Local\sabnzbd\cache\bookmarks.sab
2010-07-01 07:56:25,604::INFO::[__init__:641] Saving data for watched_data.sab in C:\Users\Josh\AppData\Local\sabnzbd\cache\watched_data.sab
2010-07-01 07:56:25,605::INFO::[postproc:134] Saving postproc queue
2010-07-01 07:56:25,605::INFO::[__init__:641] Saving data for postproc1.sab in C:\Users\Josh\AppData\Local\sabnzbd\cache\postproc1.sab
2010-07-01 07:56:25,607::INFO::[__init__:321] All processes stopped

Re: SABnzbd keeps shutting down

Posted: July 1st, 2010, 4:59 pm
by shypike
Something is keeping port 8081 occupied.
Also on some systems localhost is ambiguous.
Try 127.0.0.1 and/or a different port.

Re: SABnzbd keeps shutting down

Posted: July 2nd, 2010, 1:26 pm
by Bitterbeard
Thanks for the reply, do you or anybody else have any suggestions on finding out what is locking down ports and how to delete it out of the registry?

Re: SABnzbd keeps shutting down

Posted: July 2nd, 2010, 3:01 pm
by sander
To see the listening processes, with PID at the end:

Code: Select all

netstat -ao | find /i "listening"

And here's an example how to find which process is using port 8080 on my Windows Vista:

Code: Select all

C:\Users\Sander>netstat -ao | find /i "listening" | find /i "8080"
  TCP    [::1]:8080             Vera-PC:0              LISTENING       3068

C:\Users\Sander>tasklist | find /i "3068"
SABnzbd.exe                   3068                            1     41.612 K

C:\Users\Sander>

Hey, it's ... SABnzbd! ;-)

Re: SABnzbd keeps shutting down

Posted: July 2nd, 2010, 5:22 pm
by Bitterbeard
Awesome thanks guys, greatly appreciate it.

Re: SABnzbd keeps shutting down

Posted: July 3rd, 2010, 12:37 am
by sander
And the other way round: is SAB running, and if so, on which port:

Code: Select all

C:\Users\Sander>tasklist | find /i "sabnzbd"
SABnzbd.exe                    888                            1     20.080 K

C:\Users\Sander>netstat -ao | find "888"
  TCP    [::1]:8080             Vera-PC:0              LISTENING       888

C:\Users\Sander>
So, yes SABnzbd is running, on port 80800.

@Shypike: Both methods (desired port -> process, and SAB -> running port) could be handy as a built-in feature in SABnzbd to inform/warn a user when starting up SABnzbd?


The *ix variant is of course even easier.


Code: Select all

sander@vadmin648:~$ netstat -l -n -p
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:2222            0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      -
tcp6       0      0 :::2222                 :::*                    LISTEN      -
tcp6       0      0 ::1:8080                :::*                    LISTEN      21077/python2.5
tcp6       0      0 :::80                   :::*                    LISTEN      -
tcp6       0      0 :::53                   :::*                    LISTEN      -
tcp6       0      0 ::1:953                 :::*                    LISTEN      -
udp        0      0 0.0.0.0:50096           0.0.0.0:*                           -
udp        0      0 127.0.0.1:53            0.0.0.0:*                           -
udp6       0      0 :::53                   :::*                                -
raw6       0      0 :::58                   :::*                    7           -
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   PID/Program name    Path
sander@vadmin648:~$ ps -e | grep 21077
sander   21077 21014  0 07:15 pts/0    00:00:00 /usr/bin/python2.5 -OO /usr/bin/sabnzbdplus
sander@vadmin648:~$

One-liner for 'what's on port 8080':

Code: Select all

sander@vadmin648:~$ netstat -l -n -p | grep 8080 | awk '{ print $7 }' | awk -F/ '{ print "ps -e | grep " $1 }' | /bin/sh
21077 pts/0    00:00:00 sabnzbdplus
sander@vadmin648:~$

Re: SABnzbd keeps shutting down

Posted: July 13th, 2010, 4:41 pm
by sander
OMG ... Windows ... Argh! I just discovered the output of the netstat command is ... language dependent. :-(

Code: Select all

C:\>netstat -ao | find /i "listening"

C:\>
What, no result? ... Reason: I'm on a Dutch language WinXP, and I should use:

Code: Select all

netstat -ao | find /i "luisteren"

Re: SABnzbd keeps shutting down

Posted: September 3rd, 2010, 12:52 pm
by sander
Better:


I found a non-language dependent one-liner to see the listening processes on Windows:

Code: Select all

netstat -aon | find /i ":0"
Example output (Windows Vista, English):

Code: Select all

C:\Users\Sander>netstat -aon | find /i ":0"
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING       832
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING       4
  TCP    0.0.0.0:554            0.0.0.0:0              LISTENING       3756
  TCP    0.0.0.0:2869           0.0.0.0:0              LISTENING       4
  TCP    0.0.0.0:5357           0.0.0.0:0              LISTENING       4
  TCP    0.0.0.0:10243          0.0.0.0:0              LISTENING       4
  TCP    0.0.0.0:49152          0.0.0.0:0              LISTENING       524
  TCP    0.0.0.0:49153          0.0.0.0:0              LISTENING       1020
  TCP    0.0.0.0:49154          0.0.0.0:0              LISTENING       1072
  TCP    0.0.0.0:49155          0.0.0.0:0              LISTENING       580
  TCP    0.0.0.0:49156          0.0.0.0:0              LISTENING       1796
  TCP    0.0.0.0:49157          0.0.0.0:0              LISTENING       568
  TCP    127.0.0.1:5354         0.0.0.0:0              LISTENING       644
  TCP    127.0.0.1:27015        0.0.0.0:0              LISTENING       456
  TCP    127.0.0.1:50881        0.0.0.0:0              LISTENING       1604
  TCP    192.168.1.36:139       0.0.0.0:0              LISTENING       4
  TCP    [::]:135               [::]:0                 LISTENING       832
  TCP    [::]:445               [::]:0                 LISTENING       4
  TCP    [::]:554               [::]:0                 LISTENING       3756
  TCP    [::]:2869              [::]:0                 LISTENING       4
  TCP    [::]:5357              [::]:0                 LISTENING       4
  TCP    [::]:8080              [::]:0                 LISTENING       2644
  TCP    [::]:10243             [::]:0                 LISTENING       4
  TCP    [::]:49152             [::]:0                 LISTENING       524
  TCP    [::]:49153             [::]:0                 LISTENING       1020
  TCP    [::]:49154             [::]:0                 LISTENING       1072
  TCP    [::]:49155             [::]:0                 LISTENING       580
  TCP    [::]:49156             [::]:0                 LISTENING       1796
  TCP    [::]:49157             [::]:0                 LISTENING       568