Page 1 of 1

SABnzbd windows service not working

Posted: March 22nd, 2008, 10:06 am
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

Re: SABnzbd windows service not working

Posted: March 22nd, 2008, 1:33 pm
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?

Re: SABnzbd windows service not working

Posted: March 22nd, 2008, 3:37 pm
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.

Re: SABnzbd windows service not working

Posted: March 22nd, 2008, 4:30 pm
by DeXeS
Is there anything in the sabnzbd log that say's something is wrong?

Re: SABnzbd windows service not working

Posted: March 22nd, 2008, 5:04 pm
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??

Re: SABnzbd windows service not working

Posted: March 22nd, 2008, 5:26 pm
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...

Re: SABnzbd windows service not working

Posted: March 22nd, 2008, 5:31 pm
by terench
Thanks DeXeS for your help, i will try to work around it.

Re: SABnzbd windows service not working

Posted: March 22nd, 2008, 7:51 pm
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/

Re: SABnzbd windows service not working

Posted: March 24th, 2008, 7:05 am
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