Replacing 4.2.0RC1 with RC2 lost my Windows service

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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
User avatar
Taomyn
Full Member
Full Member
Posts: 127
Joined: August 25th, 2008, 3:29 am

Replacing 4.2.0RC1 with RC2 lost my Windows service

Post by Taomyn »

I updated my 4.2.0RC1 folder with the RC2 files and everything seemed to be fine for a few hours. Now when I went to check on things the site was no longer loaded. I checked on the server and the Windows service has vanished - no idea why and can't find anything logged. So I tried to recreate it using the website instructions and I get this:

Code: Select all

D:\Program Files\SABnzbd>SABnzbd-console.exe -f "D:\Program Files\SABnzbd\sabnzbd.ini" install
Installing service SABnzbd
Traceback (most recent call last):
  File "SABnzbd.py", line 1742, in <module>
  File "SABnzbd.py", line 1714, in handle_windows_service
  File "win32serviceutil.py", line 841, in HandleCommandLine
  File "win32serviceutil.py", line 224, in InstallService
  File "win32serviceutil.py", line 56, in LocatePythonServiceExe
RuntimeError: Can't find 'D:\Program Files\SABnzbd\pythonservice.exe'
[10596] Failed to execute script 'SABnzbd' due to unhandled exception!
Any ideas? I cannot find pythonservice.exe anywhere, not even in the downloaded ZIP for RC2.
User avatar
Taomyn
Full Member
Full Member
Posts: 127
Joined: August 25th, 2008, 3:29 am

Re: Replacing 4.2.0RC1 with RC2 lost my Windows service

Post by Taomyn »

I continued digging and discovered the main executable changed from SABnzbd.exe to SABnzbd-console.exe between RC1 and RC2 - not sure how it continued to work before, but the older file must have been deleted by SABnzbd itself which I can only assume then tried to recover/reset the service and in the process deleted it.

Fortunately the old registry entry for the service was in ControlSet002, so I exported it, used the "sc" command to create a basic service and then restored the old service registry after changing it to use CurrentControlSet. Afterwards, I renamed the executable in the registry to match the new name and started it up. So for the moment everything is running again.
Post Reply