SABnzbd windows service not working

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
terench
Newbie
Newbie
Posts: 5
Joined: March 22nd, 2008, 9:55 am

SABnzbd windows service not working

Post by terench »

Hello everyone,

I'm trying to get SABnzbd to run as a  service. I read the full article how to do this and this works perfect, until i reboot.
I have to restart the service to get it working again. So switching on my pc is not enough to get it working.

These are my registry settings:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SABnzbd]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):63,00,3a,00,5c,00,73,00,61,00,62,00,6e,00,7a,00,62,00,64,00,\
  5c,00,73,00,72,00,76,00,61,00,6e,00,79,00,2e,00,65,00,78,00,65,00,00,00
"DisplayName"="SABnzbd"
"ObjectName"=".\\terench"
"Description"="SABnzbd service"
"DependOnService"=hex(7):54,00,63,00,70,00,69,00,70,00,00,00,00,00
"DependOnGroup"=hex(7):00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SABnzbd\Parameters]
"AppDirectory"="c:\\sabnzbd\\SABnzbd"
"Application"="c:\\sabnzbd\\SABnzbd.exe"
"AppParameters"="-d -f c:\\sabnzbd\\sabnzbd.ini"


I tried everything running it under the local system acccount, let it depend on almost all services. Nothing seams to work.
I have win XP sp2 and SABnzbd+ 0.3.4
Please help me, i'm getting really desprate here. thanks
Last edited by terench on March 22nd, 2008, 10:09 am, edited 1 time in total.
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

Re: SABnzbd windows service not working

Post by DeXeS »

So, just to make sure:
* Is the service startup type set to automatic? or is it on manual or disabled?
* Is SABnzbd started and directly crashing for some reason?
terench
Newbie
Newbie
Posts: 5
Joined: March 22nd, 2008, 9:55 am

Re: SABnzbd windows service not working

Post by terench »

Sorry DeXeS, i should have added this.
The service is set to automatic.
And if i check in my taskmanager SABnzbd.exe is running, but if i go to my SABnzbd website it is saying the website cannot be displayed.
So then i restart the service and it works, but not when i boot my computer.
Last edited by terench on March 22nd, 2008, 3:40 pm, edited 1 time in total.
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

Re: SABnzbd windows service not working

Post by DeXeS »

Is there anything in the sabnzbd log that say's something is wrong?
terench
Newbie
Newbie
Posts: 5
Joined: March 22nd, 2008, 9:55 am

Re: SABnzbd windows service not working

Post by terench »

Exception in thread CPHTTPServer Thread-6:
Traceback (most recent call last):
  File "threading.pyo", line 462, in __bootstrap
  File "threading.pyo", line 442, in run
  File "cherrypy\_cpserver.pyo", line 114, in _start_http
  File "cherrypy\_cpwsgiserver.pyo", line 301, in start
error: (10049, "Can't assign requested address")

In my .ini file i have my local ip address.
My pc is connected by wireless and I have DHCP, but it allways uses the same address as i put this in my router.

Is it possible that this address is not assigned yet to my wireless adapter and that causing sabnzbd not to assign this address??
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

Re: SABnzbd windows service not working

Post by DeXeS »

It could indeed be possible that the ip is set after sabnzbd+ started (and crashed immediately). If you want a static ip it would be better to insert the ip locally instead of assigning a static ip from the router.

If you don't want to do this and you don't even want to access sabnzbd+ it's interface from another computer then insert 127.0.0.1 as the ip.
127.0.0.1 is the local ip of every windows pc and can only be accessed locally (so not by another computer through the network).

Hope this helps...
Last edited by DeXeS on March 22nd, 2008, 5:27 pm, edited 1 time in total.
terench
Newbie
Newbie
Posts: 5
Joined: March 22nd, 2008, 9:55 am

Re: SABnzbd windows service not working

Post by terench »

Thanks DeXeS for your help, i will try to work around it.
JohnGoodie
Newbie
Newbie
Posts: 4
Joined: March 22nd, 2008, 7:50 pm

Re: SABnzbd windows service not working

Post by JohnGoodie »

Download FireDaemon.  I was having problems getting it to run as a service... useful if you need to restart sabnzbd remotely also just click shutdown.  It notices that sab closed and it restarts it. 

http://trinity.firedaemon.com/
terench
Newbie
Newbie
Posts: 5
Joined: March 22nd, 2008, 9:55 am

Re: SABnzbd windows service not working

Post by terench »

It took me a while, but i found it  :)

I had to disable dhcp media sense in the tcp ip parameters and it worked.
You can find the key in this microsoft article:
http://support.microsoft.com/kb/239924
Post Reply