Run SABnzbd+ 0.5.0Beta6 daemon at startup on Ubuntu 9.10 64bit

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
m_elias
Newbie
Newbie
Posts: 2
Joined: January 15th, 2010, 4:04 pm

Run SABnzbd+ 0.5.0Beta6 daemon at startup on Ubuntu 9.10 64bit

Post by m_elias »

I have been using SABnzbd+ 0.5.0Beta5 on Windows 7 64bit for a couple weeks and I decided to setup SABnzbd+ 0.5.0Beta6 on my new file server running Ubuntu 9.10 64bit. I'm no expert with both SABnzbd and Ubuntu but I learn fast so please be patient.

I followed this guide, http://wiki.sabnzbd.org/install-ubuntuserver804 but instead of getting 0.4.11 I used the following link to get 0.5.0Beta6. http://downloads.sourceforge.net/projec ... rror=voxel

Compiling seemed to work well and I can launch the SABnzbd daemon manually with the instructions on the wiki install guide. I set everything up via the web interface and it all seems to be working.

So far my only problem is that the daemon does not seem to be automatically loading when Ubuntu boots up. I have configured the /etc/default/sabnzbplus file with my USER, CONFIG, HOST & PORT info. AFAIK the script at /etc/init.d/sabnzbplus has been added as a startup script but to be sure I removed it with

Code: Select all

sudo update-rc.d -f sabnzbplus remove
and re added it with

Code: Select all

 sudo update-rc.d sabnzbplus defaults.
After a reboot, the daemon still was not running.

Then I removed the sabnzbdplus script from rc.d and following the instructions here, http://sabnzbd.wikidot.com/install-as-a-unix-daemon to created my own startup script with the particulars for my install and following the suggestions here, http://forums.sabnzbd.org/http://forums ... 5332#p5332 I seem to have it working.

I don't know why the install daemon didn't work, I also don't know where to see a log of errors if it was actually trying. Like I mentiond earlier, I'm quite new to the *nix world. Any comments on what might have gone wrong with the original daemon would be appreciated.

Thanks.
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: Run SABnzbd+ 0.5.0Beta6 daemon at startup on Ubuntu 9.10 64bit

Post by jcfp »

Your post indicates a mixup of package and source installs, making it hard to give any detailed advice. Best would be to purge any installed sabnzbdplus packages (apt-get purge ), remove any manually installed startup hooks, and then proceed the easy way to run the very latest version of sab at any given time: my ppa, see here.
m_elias
Newbie
Newbie
Posts: 2
Joined: January 15th, 2010, 4:04 pm

Re: Run SABnzbd+ 0.5.0Beta6 daemon at startup on Ubuntu 9.10 64bit

Post by m_elias »

I tried your ppa, afaik it installed 0.4.12 but I would like 0.5.0 Beta6 so due to other issues I decided to try my manual install method on a fresh install of 8.04.3 64bit desktop. I followed the instructions here http://wiki.sabnzbd.org/install-ubuntuserver804 substituting in the 0.5.0 Beta6 tar. Then after manually starting sabnzbd and configuring it, I used the example script here http://wiki.sabnzbd.org/install-as-a-unix-daemon making adjustments for my install/config and putting the script in /etc/init.d with 755 permissions with root as the owner . Now I can sucessfully start and run sabnzbd manually with

Code: Select all

/etc/init.d/sabnzbd start
but after adding a startup hook

Code: Select all

sudo update-rc.d sabnzbd defaults
I get the following error in cherrypy.log

Code: Select all

[19/Jan/2010:11:22:17] ENGINE Bus STARTING
[19/Jan/2010:11:22:17] ENGINE Started monitor thread '_TimeoutMonitor'.
[19/Jan/2010:11:22:17] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cp$
Traceback (most recent call last):
  File "/home/matt/SABnzbd-0.5.0Beta6/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/home/matt/SABnzbd-0.5.0Beta6/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/home/matt/SABnzbd-0.5.0Beta6/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/home/matt/SABnzbd-0.5.0Beta6/cherrypy/process/servers.py", line 97, in wait
    raise self.interrupt
error: (99, 'Cannot assign requested address')

[19/Jan/2010:11:22:17] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/home/matt/SABnzbd-0.5.0Beta6/cherrypy/process/wspbus.py", line 184, in start
    self.publish('start')
  File "/home/matt/SABnzbd-0.5.0Beta6/cherrypy/process/wspbus.py", line 147, in publish
    output.append(listener(*args, **kwargs))
  File "/home/matt/SABnzbd-0.5.0Beta6/cherrypy/_cpserver.py", line 90, in start
    ServerAdapter.start(self)
  File "/home/matt/SABnzbd-0.5.0Beta6/cherrypy/process/servers.py", line 62, in start
    self.wait()
  File "/home/matt/SABnzbd-0.5.0Beta6/cherrypy/process/servers.py", line 97, in wait
    raise self.interrupt
error: (99, 'Cannot assign requested address')

[19/Jan/2010:11:22:17] ENGINE Bus STOPPING
[19/Jan/2010:11:22:17] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.12.54', 80$
[19/Jan/2010:11:22:17] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
  File "/home/matt/SABnzbd-0.5.0Beta6/cherrypy/process/servers.py", line 75, in _start_http_thread
    self.httpserver.start()
  File "/home/matt/SABnzbd-0.5.0Beta6/cherrypy/wsgiserver/__init__.py", line 1629, in start
    raise socket.error, msg
error: (99, 'Cannot assign requested address')

[19/Jan/2010:11:22:17] ENGINE Bus STOPPING
[19/Jan/2010:11:22:17] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.12.54', 80$
[19/Jan/2010:11:22:17] ENGINE Stopped thread '_TimeoutMonitor'.
[19/Jan/2010:11:22:17] ENGINE Bus STOPPED
[19/Jan/2010:11:22:17] ENGINE Bus EXITING
Any suggestions? I suspect the script is running before the network interfaces are completely initialized but I really don't know how this all works.

Thanks
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: Run SABnzbd+ 0.5.0Beta6 daemon at startup on Ubuntu 9.10 64bit

Post by jcfp »

You got my advice already, but chose not to follow it. That's fine, but I can't provide support for init scripts other than the one shipped in the package (and used as part of it). Just too many things people can do wrong and not enough time to fix all that.
Post Reply