Service starts and stops immediately
Forum rules
Help us help you:
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.
Service starts and stops immediately
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?
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?
Re: Service starts and stops immediately
Is there anything in the sabnzbd.log file?
Re: Service starts and stops immediately
What happens when you start SABnzbd from a command prompt with the -f parameter?
Re: Service starts and stops immediately
I think you may have to go back to 0.6.15.
The service doesn't seem to start any more.
Under investigation now.
The service doesn't seem to start any more.
Under investigation now.
Re: Service starts and stops immediately
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.
Re: Service starts and stops immediately
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.
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.
Re: Service starts and stops immediately
Hi, Did this problem get resolved as I'm having exactly the same problem on Windows Server 2008 R2?
Cheers
Jamie
Cheers
Jamie
Re: Service starts and stops immediately
Define "exact same problem".
My experience is that it seldom is that.
My experience is that it seldom is that.
Re: Service starts and stops immediately
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.
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.
Re: Service starts and stops immediately
Do you see anything in SABnzbd's own log file?
The usual culprit is an incorrect host IP address.
The usual culprit is an incorrect host IP address.
Re: Service starts and stops immediately
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.
Re: Service starts and stops immediately
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?
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?
Re: Service starts and stops immediately
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).
Re: Service starts and stops immediately
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.
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.