Service starts and stops immediately

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
Marc84
Newbie
Newbie
Posts: 4
Joined: June 27th, 2012, 12:46 pm

Service starts and stops immediately

Post by Marc84 »

I've upgrade to SABnzbd 0.7.0, but I have the following problem. The service I have created in WHS starts and stops immediately. I've looked in the WHS log files and I get this description of the error:

Traceback (most recent call last):
File "win32serviceutil.pyo", line 806, in SvcRun
File "SABnzbd.pyo", line 1616, in SvcDoRun
File "SABnzbd.pyo", line 1418, in main
File "SABnzbd.pyo", line 310, in Bail_Out
File "sabnzbd\misc.pyo", line 646, in exit_sab
SystemExit: 2

What have I done wrong?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Service starts and stops immediately

Post by shypike »

Is there anything in the sabnzbd.log file?
Marc84
Newbie
Newbie
Posts: 4
Joined: June 27th, 2012, 12:46 pm

Re: Service starts and stops immediately

Post by Marc84 »

No.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Service starts and stops immediately

Post by shypike »

What happens when you start SABnzbd from a command prompt with the -f parameter?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Service starts and stops immediately

Post by shypike »

I think you may have to go back to 0.6.15.
The service doesn't seem to start any more.
Under investigation now.
Marc84
Newbie
Newbie
Posts: 4
Joined: June 27th, 2012, 12:46 pm

Re: Service starts and stops immediately

Post by Marc84 »

I went back to 0.6.15 and the service still doesn't work. I've uninstalled 0.7.0 and deleted the SABnzbd and usenet folder and the services.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Service starts and stops immediately

Post by shypike »

Not sure what's going on here.
I just tested with Windows XP and Windows 7 64bit.
Both work OK now. I did something wrong while testing.
Make sure SABnzbd works properly when starting from the command line with the same
parameters as you entered when you installed the service.
Typically:
sabnzbd-service.exe -f d:\myfolder install
You can repeat this when needed.
lewisjsuk
Newbie
Newbie
Posts: 1
Joined: August 24th, 2012, 4:49 pm

Re: Service starts and stops immediately

Post by lewisjsuk »

Hi, Did this problem get resolved as I'm having exactly the same problem on Windows Server 2008 R2?

Cheers

Jamie
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Service starts and stops immediately

Post by shypike »

Define "exact same problem".
My experience is that it seldom is that.
jdlk
Newbie
Newbie
Posts: 4
Joined: August 30th, 2012, 12:38 pm

Re: Service starts and stops immediately

Post by jdlk »

I have what appears to be a very similar issue to the other two posters here. I successfully installed the service and ran through the first run wizard. Now when the service starts, it stops immediately. The windows error log is:

The instance's SvcRun() method failed
Traceback (most recent call last):
File "win32serviceutil.pyo", line 806, in SvcRun
File "SABnzbd.pyo", line 1684, in SvcDoRun
File "SABnzbd.pyo", line 1106, in main
File "SABnzbd.pyo", line 311, in Bail_Out
File "sabnzbd\misc.pyo", line 698, in exit_sab
SystemExit: 2
%2: %3

I am running WHS 2011. All suggestions welcome.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Service starts and stops immediately

Post by shypike »

Do you see anything in SABnzbd's own log file?
The usual culprit is an incorrect host IP address.
jdlk
Newbie
Newbie
Posts: 4
Joined: August 30th, 2012, 12:38 pm

Re: Service starts and stops immediately

Post by jdlk »

I did a bit more digging, and I think my problem was an extra copy of sabnzbd.ini that I hadn't deleted -- I had uninstalled and reinstalled SABnzbd, and somewhere along the line had managed to generate three versions of sabnzbd.ini in different locations. So if you're having this problem my advice would be to search for sabnzbd.ini and remove all copies before starting again.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Service starts and stops immediately

Post by shypike »

That is odd.
One of the things you need to do when installing the service, is to specify the path of the sabnzbd.ini file.
That will be the only location checked.
However when that location is unusable, I can imagine a crash.
Where did you find the INI files?
jdlk
Newbie
Newbie
Posts: 4
Joined: August 30th, 2012, 12:38 pm

Re: Service starts and stops immediately

Post by jdlk »

When I installed the service, I specified a new location for the ini file in the command line (leaving it at default didn't seem to be working).
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Service starts and stops immediately

Post by shypike »

The service will (or should) refuse to install without the -f <file> parameter.
The catch could be that you specified an unusable location.
SABnzbd's service installer doesn't check validity and then a crash on startup is the result.
Post Reply