[Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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
probedb
Newbie
Newbie
Posts: 17
Joined: July 11th, 2009, 3:35 am

[Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Post by probedb »

Kind of annoying this one, updated yesterday on Ubuntu 9.10 and it keeps dying? Any ideas?? Some logs :)

Code: Select all

2009-12-07 17:18:00,063::ERROR::[_cplogging:55] [07/Dec/2009:17:18:00] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x905cf2c>>
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/share/sabnzbdplus/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 103, in wait
    wait_for_occupied_port(host, port)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
    raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 8080 not bound on '192.168.1.2'

2009-12-07 17:18:00,065::ERROR::[_cplogging:55] [07/Dec/2009:17:18:00] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/share/sabnzbdplus/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 103, in wait
    wait_for_occupied_port(host, port)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
    raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 8080 not bound on '192.168.1.2'

2009-12-07 17:18:00,066::INFO::[_cplogging:55] [07/Dec/2009:17:18:00] ENGINE Bus STOPPING
2009-12-07 17:18:00,067::INFO::[_cplogging:55] [07/Dec/2009:17:18:00] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.1.2', 8080)) already shut down
2009-12-07 17:18:00,084::INFO::[_cplogging:55] [07/Dec/2009:17:18:00] ENGINE Stopped thread '_TimeoutMonitor'.
2009-12-07 17:18:00,085::INFO::[_cplogging:55] [07/Dec/2009:17:18:00] ENGINE Bus STOPPED
2009-12-07 17:18:00,086::INFO::[_cplogging:55] [07/Dec/2009:17:18:00] ENGINE Bus EXITING
2009-12-07 17:18:00,088::INFO::[_cplogging:55] [07/Dec/2009:17:18:00] ENGINE Bus EXITED
2009-12-07 17:18:00,089::ERROR::[sabnzbdplus:234] Failed to start web-interface
2009-12-07 17:18:00,090::INFO::[__init__:276] SABnzbd shutting down...
2009-12-07 17:18:00,091::INFO::[__init__:634] Saving data for bookmarks.sab in /root/.sabnzbd/cache/bookmarks.sab
2009-12-07 17:18:00,092::INFO::[urlgrabber:98] URLGrabber shutting down
2009-12-07 17:18:00,094::INFO::[__init__:634] Saving data for watched_data.sab in /root/.sabnzbd/cache/watched_data.sab
2009-12-07 17:18:00,095::INFO::[dirscanner:280] Dirscanner shutting down
2009-12-07 17:18:00,530::INFO::[downloader:451] Shutting down
2009-12-07 17:18:00,532::INFO::[assembler:101] Shutting down
2009-12-07 17:18:00,533::INFO::[postproc:132] Saving postproc queue
2009-12-07 17:18:00,534::INFO::[__init__:634] Saving data for postproc1.sab in /root/.sabnzbd/cache/postproc1.sab
2009-12-07 17:18:00,535::INFO::[nzbqueue:90] Saving queue
2009-12-07 17:18:00,537::INFO::[__init__:634] Saving data for queue9.sab in /root/.sabnzbd/cache/queue9.sab
2009-12-07 17:18:00,538::INFO::[__init__:634] Saving data for bytes9.sab in /root/.sabnzbd/cache/bytes9.sab
2009-12-07 17:18:00,539::INFO::[__init__:634] Saving data for rss_data.sab in /root/.sabnzbd/cache/rss_data.sab
2009-12-07 17:18:00,541::INFO::[__init__:634] Saving data for bookmarks.sab in /root/.sabnzbd/cache/bookmarks.sab
2009-12-07 17:18:00,542::INFO::[__init__:634] Saving data for watched_data.sab in /root/.sabnzbd/cache/watched_data.sab
2009-12-07 17:18:00,543::INFO::[postproc:132] Saving postproc queue
2009-12-07 17:18:00,544::INFO::[__init__:634] Saving data for postproc1.sab in /root/.sabnzbd/cache/postproc1.sab
2009-12-07 17:18:00,545::INFO::[__init__:311] All processes stopped
2009-12-07 17:18:28,093::INFO::[sabnzbdplus:939] --------------------------------
2009-12-07 17:18:28,094::INFO::[sabnzbdplus:940] sabnzbdplus-0.5.0Beta1 (rev=3052)
2009-12-07 17:18:28,094::INFO::[sabnzbdplus:950] Platform = posix
2009-12-07 17:18:28,095::INFO::[sabnzbdplus:951] Python-version = 2.6.4rc2 (r264rc2:75497, Oct 20 2009, 02:55:11) 
[GCC 4.4.1]
2009-12-07 17:18:28,195::INFO::[__init__:655] Loading data for bookmarks.sab from /root/.sabnzbd/cache/bookmarks.sab
2009-12-07 17:18:28,196::INFO::[__init__:685] /root/.sabnzbd/cache/bookmarks.sab removed
2009-12-07 17:18:28,197::INFO::[__init__:655] Loading data for rss_data.sab from /root/.sabnzbd/cache/rss_data.sab
2009-12-07 17:18:28,200::INFO::[__init__:655] Loading data for bytes9.sab from /root/.sabnzbd/cache/bytes9.sab
2009-12-07 17:18:28,202::INFO::[__init__:655] Loading data for queue9.sab from /root/.sabnzbd/cache/queue9.sab
2009-12-07 17:18:28,203::INFO::[postproc:137] Loading postproc queue
2009-12-07 17:18:28,204::INFO::[__init__:655] Loading data for postproc1.sab from /root/.sabnzbd/cache/postproc1.sab
2009-12-07 17:18:28,205::INFO::[__init__:685] /root/.sabnzbd/cache/postproc1.sab removed
2009-12-07 17:18:28,209::INFO::[__init__:655] Loading data for watched_data.sab from /root/.sabnzbd/cache/watched_data.sab
2009-12-07 17:18:28,211::INFO::[downloader:312] Resuming
2009-12-07 17:18:28,242::INFO::[__init__:240] All processes started
2009-12-07 17:18:28,243::INFO::[sabnzbdplus:261] Web dir is /usr/share/sabnzbdplus/interfaces/Classic
2009-12-07 17:18:28,355::INFO::[sabnzbdplus:1004] Starting sabnzbdplus-0.5.0Beta1
2009-12-07 17:18:28,357::INFO::[nzbqueue:90] Saving queue
2009-12-07 17:18:28,359::INFO::[__init__:634] Saving data for queue9.sab in /root/.sabnzbd/cache/queue9.sab
2009-12-07 17:18:28,360::INFO::[__init__:634] Saving data for bytes9.sab in /root/.sabnzbd/cache/bytes9.sab
2009-12-07 17:18:28,361::INFO::[__init__:634] Saving data for rss_data.sab in /root/.sabnzbd/cache/rss_data.sab
2009-12-07 17:18:28,363::INFO::[__init__:634] Saving data for bookmarks.sab in /root/.sabnzbd/cache/bookmarks.sab
2009-12-07 17:18:28,379::INFO::[__init__:634] Saving data for watched_data.sab in /root/.sabnzbd/cache/watched_data.sab
2009-12-07 17:18:28,381::INFO::[postproc:132] Saving postproc queue
2009-12-07 17:18:28,382::INFO::[__init__:634] Saving data for postproc1.sab in /root/.sabnzbd/cache/postproc1.sab
2009-12-07 17:18:28,436::INFO::[dirscanner:367] Dirscanner starting up
2009-12-07 17:18:28,457::INFO::[urlgrabber:103] URLGrabber starting up
2009-12-07 17:18:28,458::INFO::[sabnzbdplus:386] _yenc module... found!
2009-12-07 17:18:28,459::INFO::[sabnzbdplus:394] par2 binary... found (/usr/bin/par2)
2009-12-07 17:18:28,459::INFO::[sabnzbdplus:402] unrar binary... found (/usr/bin/unrar)
2009-12-07 17:18:28,460::INFO::[sabnzbdplus:407] unzip binary... found (/usr/bin/unzip)
2009-12-07 17:18:28,461::INFO::[sabnzbdplus:413] nice binary... found (/usr/bin/nice)
2009-12-07 17:18:28,462::INFO::[sabnzbdplus:417] ionice binary... found (/usr/bin/ionice)
2009-12-07 17:18:28,463::INFO::[sabnzbdplus:422] pyOpenSSL... found (True)
2009-12-07 17:18:28,467::INFO::[sabnzbdplus:1102] Starting web-interface on 192.168.1.2:8080
2009-12-07 17:18:29,470::INFO::[_cplogging:55] [07/Dec/2009:17:18:29] ENGINE Bus STARTING
2009-12-07 17:18:29,481::INFO::[_cplogging:55] [07/Dec/2009:17:18:29] ENGINE Started monitor thread '_TimeoutMonitor'.
2009-12-07 17:18:37,720::INFO::[__init__:276] SABnzbd shutting down...
2009-12-07 17:18:37,721::INFO::[__init__:634] Saving data for bookmarks.sab in /root/.sabnzbd/cache/bookmarks.sab
2009-12-07 17:18:37,722::INFO::[urlgrabber:98] URLGrabber shutting down
2009-12-07 17:18:37,724::INFO::[__init__:634] Saving data for watched_data.sab in /root/.sabnzbd/cache/watched_data.sab
2009-12-07 17:18:37,725::INFO::[dirscanner:280] Dirscanner shutting down
2009-12-07 17:18:38,597::INFO::[downloader:451] Shutting down
2009-12-07 17:18:38,601::INFO::[assembler:101] Shutting down
2009-12-07 17:18:38,602::INFO::[postproc:132] Saving postproc queue
2009-12-07 17:18:38,603::INFO::[__init__:634] Saving data for postproc1.sab in /root/.sabnzbd/cache/postproc1.sab
2009-12-07 17:18:38,605::INFO::[nzbqueue:90] Saving queue
2009-12-07 17:18:38,606::INFO::[__init__:634] Saving data for queue9.sab in /root/.sabnzbd/cache/queue9.sab
2009-12-07 17:18:38,607::INFO::[__init__:634] Saving data for bytes9.sab in /root/.sabnzbd/cache/bytes9.sab
2009-12-07 17:18:38,608::INFO::[__init__:634] Saving data for rss_data.sab in /root/.sabnzbd/cache/rss_data.sab
2009-12-07 17:18:38,610::INFO::[__init__:634] Saving data for bookmarks.sab in /root/.sabnzbd/cache/bookmarks.sab
2009-12-07 17:18:38,611::INFO::[__init__:634] Saving data for watched_data.sab in /root/.sabnzbd/cache/watched_data.sab
2009-12-07 17:18:38,612::INFO::[postproc:132] Saving postproc queue
2009-12-07 17:18:38,613::INFO::[__init__:634] Saving data for postproc1.sab in /root/.sabnzbd/cache/postproc1.sab
2009-12-07 17:18:38,615::INFO::[__init__:311] All processes stopped
2009-12-07 17:18:38,616::INFO::[_cplogging:55] [07/Dec/2009:17:18:38] ENGINE Bus STOPPING
2009-12-07 17:18:38,617::INFO::[_cplogging:55] [07/Dec/2009:17:18:38] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.1.2', 8080)) already shut down
2009-12-07 17:18:38,663::INFO::[_cplogging:55] [07/Dec/2009:17:18:38] ENGINE Stopped thread '_TimeoutMonitor'.
2009-12-07 17:18:38,664::INFO::[_cplogging:55] [07/Dec/2009:17:18:38] ENGINE Bus STOPPED
2009-12-07 17:18:38,665::INFO::[_cplogging:55] [07/Dec/2009:17:18:38] ENGINE Bus EXITING
2009-12-07 17:18:38,666::INFO::[_cplogging:55] [07/Dec/2009:17:18:38] ENGINE Bus EXITED
2009-12-07 17:18:43,205::INFO::[__init__:634] Saving data for rss_data.sab in /root/.sabnzbd/cache/rss_data.sab
2009-12-07 17:19:49,229::ERROR::[_cplogging:55] [07/Dec/2009:17:19:49] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0xa3b3f2c>>
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/share/sabnzbdplus/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 103, in wait
    wait_for_occupied_port(host, port)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
    raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 8080 not bound on '192.168.1.2'

2009-12-07 17:19:49,231::ERROR::[_cplogging:55] [07/Dec/2009:17:19:49] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/share/sabnzbdplus/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 103, in wait
    wait_for_occupied_port(host, port)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
    raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 8080 not bound on '192.168.1.2'

2009-12-07 17:19:49,232::INFO::[_cplogging:55] [07/Dec/2009:17:19:49] ENGINE Bus STOPPING
2009-12-07 17:19:49,234::INFO::[_cplogging:55] [07/Dec/2009:17:19:49] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.1.2', 8080)) already shut down
2009-12-07 17:19:49,235::INFO::[_cplogging:55] [07/Dec/2009:17:19:49] ENGINE No thread running for _TimeoutMonitor.
2009-12-07 17:19:49,236::INFO::[_cplogging:55] [07/Dec/2009:17:19:49] ENGINE Bus STOPPED
2009-12-07 17:19:49,237::INFO::[_cplogging:55] [07/Dec/2009:17:19:49] ENGINE Bus EXITING
2009-12-07 17:19:49,238::INFO::[_cplogging:55] [07/Dec/2009:17:19:49] ENGINE Bus EXITED
2009-12-07 17:19:49,239::ERROR::[sabnzbdplus:234] Failed to start web-interface
2009-12-07 17:20:59,345::INFO::[sabnzbdplus:939] --------------------------------
2009-12-07 17:20:59,346::INFO::[sabnzbdplus:940] sabnzbdplus-0.5.0Beta1 (rev=3052)
2009-12-07 17:20:59,346::INFO::[sabnzbdplus:950] Platform = posix
2009-12-07 17:20:59,347::INFO::[sabnzbdplus:951] Python-version = 2.6.4rc2 (r264rc2:75497, Oct 20 2009, 02:55:11) 
[GCC 4.4.1]
2009-12-07 17:20:59,447::INFO::[__init__:655] Loading data for bookmarks.sab from /root/.sabnzbd/cache/bookmarks.sab
2009-12-07 17:20:59,449::INFO::[__init__:685] /root/.sabnzbd/cache/bookmarks.sab removed
2009-12-07 17:20:59,450::INFO::[__init__:655] Loading data for rss_data.sab from /root/.sabnzbd/cache/rss_data.sab
2009-12-07 17:20:59,453::INFO::[__init__:655] Loading data for bytes9.sab from /root/.sabnzbd/cache/bytes9.sab
2009-12-07 17:20:59,454::INFO::[__init__:655] Loading data for queue9.sab from /root/.sabnzbd/cache/queue9.sab
2009-12-07 17:20:59,456::INFO::[postproc:137] Loading postproc queue
2009-12-07 17:20:59,457::INFO::[__init__:655] Loading data for postproc1.sab from /root/.sabnzbd/cache/postproc1.sab
2009-12-07 17:20:59,458::INFO::[__init__:685] /root/.sabnzbd/cache/postproc1.sab removed
2009-12-07 17:20:59,461::INFO::[__init__:655] Loading data for watched_data.sab from /root/.sabnzbd/cache/watched_data.sab
2009-12-07 17:20:59,464::INFO::[downloader:312] Resuming
2009-12-07 17:20:59,494::INFO::[__init__:240] All processes started
2009-12-07 17:20:59,496::INFO::[sabnzbdplus:261] Web dir is /usr/share/sabnzbdplus/interfaces/Classic
2009-12-07 17:20:59,605::INFO::[sabnzbdplus:1004] Starting sabnzbdplus-0.5.0Beta1
2009-12-07 17:20:59,625::INFO::[nzbqueue:90] Saving queue
2009-12-07 17:20:59,626::INFO::[__init__:634] Saving data for queue9.sab in /root/.sabnzbd/cache/queue9.sab
2009-12-07 17:20:59,628::INFO::[__init__:634] Saving data for bytes9.sab in /root/.sabnzbd/cache/bytes9.sab
2009-12-07 17:20:59,646::INFO::[__init__:634] Saving data for rss_data.sab in /root/.sabnzbd/cache/rss_data.sab
2009-12-07 17:20:59,647::INFO::[__init__:634] Saving data for bookmarks.sab in /root/.sabnzbd/cache/bookmarks.sab
2009-12-07 17:20:59,648::INFO::[__init__:634] Saving data for watched_data.sab in /root/.sabnzbd/cache/watched_data.sab
2009-12-07 17:20:59,650::INFO::[postproc:132] Saving postproc queue
2009-12-07 17:20:59,651::INFO::[__init__:634] Saving data for postproc1.sab in /root/.sabnzbd/cache/postproc1.sab
2009-12-07 17:20:59,693::INFO::[dirscanner:367] Dirscanner starting up
2009-12-07 17:20:59,732::INFO::[urlgrabber:103] URLGrabber starting up
2009-12-07 17:20:59,733::INFO::[sabnzbdplus:386] _yenc module... found!
2009-12-07 17:20:59,734::INFO::[sabnzbdplus:394] par2 binary... found (/usr/bin/par2)
2009-12-07 17:20:59,735::INFO::[sabnzbdplus:402] unrar binary... found (/usr/bin/unrar)
2009-12-07 17:20:59,736::INFO::[sabnzbdplus:407] unzip binary... found (/usr/bin/unzip)
2009-12-07 17:20:59,737::INFO::[sabnzbdplus:413] nice binary... found (/usr/bin/nice)
2009-12-07 17:20:59,737::INFO::[sabnzbdplus:417] ionice binary... found (/usr/bin/ionice)
2009-12-07 17:20:59,738::INFO::[sabnzbdplus:422] pyOpenSSL... found (True)
2009-12-07 17:20:59,742::INFO::[sabnzbdplus:1102] Starting web-interface on 192.168.1.2:8080
2009-12-07 17:21:00,745::INFO::[_cplogging:55] [07/Dec/2009:17:21:00] ENGINE Bus STARTING
2009-12-07 17:21:00,755::INFO::[_cplogging:55] [07/Dec/2009:17:21:00] ENGINE Started monitor thread '_TimeoutMonitor'.

probedb
Newbie
Newbie
Posts: 17
Joined: July 11th, 2009, 3:35 am

Re: [Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Post by probedb »

Should I try uninstalling and reinstalling?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Post by shypike »

Either the IP address given is not the IP address of your system
or the port is in use by antother program.

How do you start SABnzbd?
Which host/port settings do you have?
Look in the sabnzbd.ini file in ~/.sabnzbd
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: [Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Post by switch »

As shypike says, is 192.168.1.2 the local ip for that machine? You could try launch sabnzbd with the following command line option:

Code: Select all

-s 0.0.0.0:8080
then try connecting to http://localhost:8080/ or http://YOURLOCALIP:8080/
or

Code: Select all

-s :8080
then try connecting to http://YOURLOCALIP:8080/
probedb
Newbie
Newbie
Posts: 17
Joined: July 11th, 2009, 3:35 am

Re: [Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Post by probedb »

I just use /etc/init.d/sabnzbplus start ? Was working fine until the upgrade to 0.5.0 beta 1.

It is the correct IP address...again it only stopped working with 0.5.0, 0.4.9 worked with Ubuntu 9.10 so it's the upgrade that has changed.

Plus if the port was in use it wouldn't run and be accessible for about a minute? That's what's confusing....

Code: Select all

root@omnius:~/.sabnzbd# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:22:68:64:5f:bd
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::222:68ff:fe64:5fbd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37570174 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20172779 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:151346651 (151.3 MB)  TX bytes:3896476027 (3.8 GB)
          Interrupt:23 Base address:0x8000

root@omnius:~/.sabnzbd# lsof -i
COMMAND     PID             USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
sshd       1062             root    3u  IPv6   5020      0t0  TCP *:ssh (LISTEN)
sshd       1062             root    4u  IPv4   5022      0t0  TCP *:ssh (LISTEN)
avahi-dae  1167            avahi   14u  IPv4   5162      0t0  UDP *:mdns
avahi-dae  1167            avahi   15u  IPv4   5163      0t0  UDP *:48832
nmbd       1849             root   12u  IPv4   8314      0t0  UDP *:netbios-ns
nmbd       1849             root   13u  IPv4   8315      0t0  UDP *:netbios-dgm
nmbd       1849             root   14u  IPv4   8317      0t0  UDP omnius.local:netbios-ns
nmbd       1849             root   15u  IPv4   8318      0t0  UDP omnius.local:netbios-dgm
smbd       1901             root   22u  IPv6   9038      0t0  TCP *:microsoft-ds (LISTEN)
smbd       1901             root   23u  IPv6   9040      0t0  TCP *:netbios-ssn (LISTEN)
apache2    2045             root    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    2049         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    2050         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    2051         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    2052         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    2053         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    3121         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    3122         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    3123         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    3124         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    3125         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    3126         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    3127         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
apache2    3128         www-data    3u  IPv6   9113      0t0  TCP *:www (LISTEN)
twonkymed  4729             root   15u  IPv4  48540      0t0  TCP omnius.local:9000 (LISTEN)
twonkymed  4729             root   16u  IPv4  48537      0t0  TCP omnius.local:9010 (LISTEN)
twonkymed  4729             root   19u  IPv4  48543      0t0  UDP omnius.local:1900
twonkymed  4729             root   20u  IPv4  48545      0t0  UDP 239.255.255.250:1900
twonkymed  4729             root   21u  IPv4 397617      0t0  TCP omnius.local:9000->192.168.1.66:50149 (ESTABLISHED)
twonkymed  4729             root   37u  IPv4  48684      0t0  TCP omnius.local:9000->erasmus.local:55251 (CLOSE_WAIT)
smbd       5252             root    8u  IPv6 561971      0t0  TCP omnius.local:microsoft-ds->erasmus.local:49177 (ESTABLISHED)
sshd      22294             root    3u  IPv4 763684      0t0  TCP omnius.local:ssh->erasmus.local:62383 (ESTABLISHED)
squeezebo 22421 squeezeboxserver    8u  IPv4 764932      0t0  TCP omnius.local:35034->localhost:9092 (SYN_SENT)
sshd      22441             root    3u  IPv4 764941      0t0  TCP omnius.local:ssh->erasmus.local:62548 (ESTABLISHED)
sshd      22488             paul    3u  IPv4 764941      0t0  TCP omnius.local:ssh->erasmus.local:62548 (ESTABLISHED)

Host is 192.168.1.2 and port 8080.

How do I launch sabnzb with those command line options? I.e. do I still use the /etc/init.d method?

Thanks for the answers :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Post by shypike »

Check also the permanent thread that jcpf maintains about his package.
Starting from the command line (in non-daemon mode):

./SABnzbd.py -s localhost:8080 -f /where/ever/your/ini/is
probedb
Newbie
Newbie
Posts: 17
Joined: July 11th, 2009, 3:35 am

Re: [Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Post by probedb »

I'll have a look in that thread as doing

Code: Select all

locate SABnzbd
returns nothing :(
Bateau
Newbie
Newbie
Posts: 2
Joined: February 13th, 2010, 11:35 pm

Re: [Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Post by Bateau »

This crash is still happening on Ubuntu with 0.5RC6.  From the error something looks fishy with IP/port configuration.  Here's a log from running it interactively.  Otherwise I configured the port in /etc/default/sabnzbdplus to run it as a daemon.

Code: Select all

maxvay@XBMCLive:/usr/bin$ ./sabnzbdplus -s 192.168.0.108:8888 -f ~/.sabnzbd/sabnzbd.ini
2010-02-13 23:49:43,762::INFO::[sabnzbdplus:933] --------------------------------
2010-02-13 23:49:43,763::INFO::[sabnzbdplus:934] sabnzbdplus-0.5.0RC6 (rev=3279)
2010-02-13 23:49:43,764::INFO::[sabnzbdplus:944] Platform = posix
2010-02-13 23:49:43,765::INFO::[sabnzbdplus:945] Python-version = 2.6.4rc2 (r264rc2:75497, Oct 20 2009, 02:55:11) 
[GCC 4.4.1]
2010-02-13 23:49:43,884::INFO::[__init__:663] Loading data for bookmarks.sab from /home/maxvay/.sabnzbd/cache/bookmarks.sab
2010-02-13 23:49:43,886::INFO::[__init__:694] /home/maxvay/.sabnzbd/cache/bookmarks.sab removed
2010-02-13 23:49:43,887::INFO::[__init__:663] Loading data for rss_data.sab from /home/maxvay/.sabnzbd/cache/rss_data.sab
2010-02-13 23:49:43,890::INFO::[__init__:663] Loading data for bytes9.sab from /home/maxvay/.sabnzbd/cache/bytes9.sab
2010-02-13 23:49:43,892::INFO::[__init__:663] Loading data for queue9.sab from /home/maxvay/.sabnzbd/cache/queue9.sab
2010-02-13 23:49:43,893::INFO::[postproc:137] Loading postproc queue
2010-02-13 23:49:43,895::INFO::[__init__:663] Loading data for postproc1.sab from /home/maxvay/.sabnzbd/cache/postproc1.sab
2010-02-13 23:49:43,896::INFO::[__init__:694] /home/maxvay/.sabnzbd/cache/postproc1.sab removed
2010-02-13 23:49:43,901::INFO::[__init__:663] Loading data for watched_data.sab from /home/maxvay/.sabnzbd/cache/watched_data.sab
2010-02-13 23:49:43,903::INFO::[downloader:326] Resuming
2010-02-13 23:49:43,932::INFO::[__init__:247] All processes started
2010-02-13 23:49:43,933::INFO::[sabnzbdplus:266] Web dir is /usr/share/sabnzbdplus/interfaces/Plush
2010-02-13 23:49:43,979::INFO::[sabnzbdplus:998] Starting sabnzbdplus-0.5.0RC6
2010-02-13 23:49:43,981::INFO::[nzbqueue:91] Saving queue
2010-02-13 23:49:43,982::INFO::[__init__:642] Saving data for queue9.sab in /home/maxvay/.sabnzbd/cache/queue9.sab
2010-02-13 23:49:43,984::INFO::[__init__:642] Saving data for bytes9.sab in /home/maxvay/.sabnzbd/cache/bytes9.sab
2010-02-13 23:49:43,985::INFO::[__init__:642] Saving data for rss_data.sab in /home/maxvay/.sabnzbd/cache/rss_data.sab
2010-02-13 23:49:43,987::INFO::[__init__:642] Saving data for bookmarks.sab in /home/maxvay/.sabnzbd/cache/bookmarks.sab
2010-02-13 23:49:43,988::INFO::[__init__:642] Saving data for watched_data.sab in /home/maxvay/.sabnzbd/cache/watched_data.sab
2010-02-13 23:49:43,990::INFO::[postproc:132] Saving postproc queue
2010-02-13 23:49:43,992::INFO::[__init__:642] Saving data for postproc1.sab in /home/maxvay/.sabnzbd/cache/postproc1.sab
2010-02-13 23:49:43,998::INFO::[dirscanner:366] Dirscanner starting up
2010-02-13 23:49:44,007::INFO::[urlgrabber:102] URLGrabber starting up
2010-02-13 23:49:44,008::INFO::[sabnzbdplus:370] _yenc module... found!
2010-02-13 23:49:44,009::INFO::[sabnzbdplus:378] par2 binary... found (/usr/bin/par2)
2010-02-13 23:49:44,010::INFO::[sabnzbdplus:386] unrar binary... found (/usr/bin/unrar)
2010-02-13 23:49:44,011::INFO::[sabnzbdplus:391] unzip binary... found (/usr/bin/unzip)
2010-02-13 23:49:44,012::INFO::[sabnzbdplus:397] nice binary... found (/usr/bin/nice)
2010-02-13 23:49:44,013::INFO::[sabnzbdplus:401] ionice binary... found (/usr/bin/ionice)
2010-02-13 23:49:44,014::INFO::[sabnzbdplus:406] pyOpenSSL... found (True)
2010-02-13 23:49:44,022::INFO::[sabnzbdplus:1096] Starting web-interface on 192.168.0.108:8888
[13/Feb/2010:23:49:45] ENGINE Bus STARTING
2010-02-13 23:49:45,025::INFO::[_cplogging:55] [13/Feb/2010:23:49:45] ENGINE Bus STARTING
[13/Feb/2010:23:49:45] ENGINE Started monitor thread '_TimeoutMonitor'.
2010-02-13 23:49:45,042::INFO::[_cplogging:55] [13/Feb/2010:23:49:45] ENGINE Started monitor thread '_TimeoutMonitor'.
2010-02-13 23:50:09,624::INFO::[misc:225] download_dir directory: /home/maxvay/.sabnzbd/downloads/incomplete does not exist, try to create it
2010-02-13 23:50:09,627::INFO::[misc:225] complete_dir directory: /home/maxvay/.sabnzbd/downloads/complete does not exist, try to create it
[13/Feb/2010:23:50:40] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x92a672c>>
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/share/sabnzbdplus/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 103, in wait
    wait_for_occupied_port(host, port)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
    raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 8888 not bound on '192.168.0.108'

2010-02-13 23:50:40,407::ERROR::[_cplogging:55] [13/Feb/2010:23:50:40] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x92a672c>>
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/share/sabnzbdplus/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 103, in wait
    wait_for_occupied_port(host, port)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
    raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 8888 not bound on '192.168.0.108'

[13/Feb/2010:23:50:40] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/share/sabnzbdplus/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 103, in wait
    wait_for_occupied_port(host, port)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
    raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 8888 not bound on '192.168.0.108'

2010-02-13 23:50:40,410::ERROR::[_cplogging:55] [13/Feb/2010:23:50:40] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/usr/share/sabnzbdplus/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/share/sabnzbdplus/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 103, in wait
    wait_for_occupied_port(host, port)
  File "/usr/share/sabnzbdplus/cherrypy/process/servers.py", line 275, in wait_for_occupied_port
    raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 8888 not bound on '192.168.0.108'

[13/Feb/2010:23:50:40] ENGINE Bus STOPPING
2010-02-13 23:50:40,412::INFO::[_cplogging:55] [13/Feb/2010:23:50:40] ENGINE Bus STOPPING
[13/Feb/2010:23:50:40] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.0.108', 8888)) already shut down
2010-02-13 23:50:40,414::INFO::[_cplogging:55] [13/Feb/2010:23:50:40] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.0.108', 8888)) already shut down
[13/Feb/2010:23:50:40] ENGINE Stopped thread '_TimeoutMonitor'.
2010-02-13 23:50:40,418::INFO::[_cplogging:55] [13/Feb/2010:23:50:40] ENGINE Stopped thread '_TimeoutMonitor'.
[13/Feb/2010:23:50:40] ENGINE Bus STOPPED
2010-02-13 23:50:40,420::INFO::[_cplogging:55] [13/Feb/2010:23:50:40] ENGINE Bus STOPPED
[13/Feb/2010:23:50:40] ENGINE Bus EXITING
2010-02-13 23:50:40,421::INFO::[_cplogging:55] [13/Feb/2010:23:50:40] ENGINE Bus EXITING
[13/Feb/2010:23:50:40] ENGINE Bus EXITED
2010-02-13 23:50:40,423::INFO::[_cplogging:55] [13/Feb/2010:23:50:40] ENGINE Bus EXITED
2010-02-13 23:50:40,424::ERROR::[sabnzbdplus:239] Failed to start web-interface
2010-02-13 23:50:40,425::INFO::[__init__:283] SABnzbd shutting down...
2010-02-13 23:50:40,426::INFO::[__init__:642] Saving data for bookmarks.sab in /home/maxvay/.sabnzbd/cache/bookmarks.sab
2010-02-13 23:50:40,428::INFO::[urlgrabber:97] URLGrabber shutting down
2010-02-13 23:50:40,430::INFO::[__init__:642] Saving data for watched_data.sab in /home/maxvay/.sabnzbd/cache/watched_data.sab
2010-02-13 23:50:40,431::INFO::[dirscanner:280] Dirscanner shutting down
192.168.0.102 - - [13/Feb/2010:23:50:40] "POST /sabnzbd/queue/ HTTP/1.1" 200 644 "http://192.168.0.108:8888/sabnzbd/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6"
192.168.0.102 - - [13/Feb/2010:23:50:40] "POST /sabnzbd/history/ HTTP/1.1" 200 291 "http://192.168.0.108:8888/sabnzbd/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6"
2010-02-13 23:50:41,209::INFO::[downloader:482] Shutting down
2010-02-13 23:50:41,210::INFO::[assembler:101] Shutting down
2010-02-13 23:50:41,211::INFO::[postproc:132] Saving postproc queue
2010-02-13 23:50:41,212::INFO::[__init__:642] Saving data for postproc1.sab in /home/maxvay/.sabnzbd/cache/postproc1.sab
2010-02-13 23:50:41,214::INFO::[nzbqueue:91] Saving queue
2010-02-13 23:50:41,215::INFO::[__init__:642] Saving data for queue9.sab in /home/maxvay/.sabnzbd/cache/queue9.sab
2010-02-13 23:50:41,216::INFO::[__init__:642] Saving data for bytes9.sab in /home/maxvay/.sabnzbd/cache/bytes9.sab
2010-02-13 23:50:41,218::INFO::[__init__:642] Saving data for rss_data.sab in /home/maxvay/.sabnzbd/cache/rss_data.sab
2010-02-13 23:50:41,220::INFO::[__init__:642] Saving data for bookmarks.sab in /home/maxvay/.sabnzbd/cache/bookmarks.sab
2010-02-13 23:50:41,221::INFO::[__init__:642] Saving data for watched_data.sab in /home/maxvay/.sabnzbd/cache/watched_data.sab
2010-02-13 23:50:41,223::INFO::[postproc:132] Saving postproc queue
2010-02-13 23:50:41,224::INFO::[__init__:642] Saving data for postproc1.sab in /home/maxvay/.sabnzbd/cache/postproc1.sab
2010-02-13 23:50:41,225::INFO::[__init__:318] All processes stopped
probedb
Newbie
Newbie
Posts: 17
Joined: July 11th, 2009, 3:35 am

Re: [Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Post by probedb »

Oddly enough after putting 9.04 back on everything has worked fine.

I discovered the local loopback was missing from networking causing all number of web related stuff to fail.
Bateau
Newbie
Newbie
Posts: 2
Joined: February 13th, 2010, 11:35 pm

Re: [Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Post by Bateau »

I have this in my /etc/network/interfaces

Code: Select all

auto lo
iface lo inet loopback
I'm also trying to make SABnzbd run on machine's local address (192.168.0.108, configured statically) so it may be accessible from other machines on the network. Can you elaborate which changes to networking you made to make it work or if there's anything else besides changing /etc/network/interfaces that was required?
probedb
Newbie
Newbie
Posts: 17
Joined: July 11th, 2009, 3:35 am

Re: [Bug] 0.5.0 beta 1 always dies after about 1/2 minutes?

Post by probedb »

Hmm that looks fine to me as I missed it out mine has:

Code: Select all

auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
Doing ifconfig returns

Code: Select all

eth0      Link encap:Ethernet  HWaddr 00:22:68:64:5f:bd
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::222:68ff:fe64:5fbd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:813125647 errors:0 dropped:0 overruns:0 frame:0
          TX packets:445075729 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2037486368 (2.0 GB)  TX bytes:3926666361 (3.9 GB)
          Interrupt:23 Base address:0xa000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:487547 errors:0 dropped:0 overruns:0 frame:0
          TX packets:487547 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:203030830 (203.0 MB)  TX bytes:203030830 (203.0 MB)
I haven't really done anything else sorry!
Post Reply