Windows service installation fails.

Report & discuss bugs found in 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
PostItNote
Newbie
Newbie
Posts: 1
Joined: February 8th, 2023, 3:30 pm

Windows service installation fails.

Post by PostItNote »

After upgrading to 3.7.2 , the SABnzbd service installation fails.

I'm using a custom config on Windows.

I needed to tweak the error output below _py = .py because of link detection [new user] :-\

Code: Select all

 
 C:\SABnzbd\SABnzbd-console.exe  -f "C:\CustomConfig\sabnzbd.ini" update
 Changing service configuration
Traceback (most recent call last):
  File "SABnzbd_py", line 1761, in <module>
  File "SABnzbd_py", line 1733, in handle_windows_service
  File "win32serviceutil_py", line 896, in HandleCommandLine
  File "win32serviceutil_py", line 286, in ChangeServiceConfig
  File "win32serviceutil_py", line 49, in LocatePythonServiceExe
RuntimeError: Can't find 'C:\SABnzbd\pythonservice.exe'
[9132] Failed to execute script 'SABnzbd' due to unhandled exception!
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Windows service installation fails.

Post by safihre »

Seems to be a bug in a dependency we use. Too bad!
https://github.com/mhammond/pywin32/issues/1985
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Windows service installation fails.

Post by safihre »

Actually I cannot reproduce this? At least with my default install of SABnzbd in C:\Program Files\SABnzbd, it works as expected:

Code: Select all

C:\Program Files\SABnzbd>SABnzbd-console.exe -f "%localappdata%\sabnzbd\sabnzbd.ini" install
Installing service SABnzbd
Service installed

You may need to set additional Service parameters!
Verify the settings in Windows Services (services.msc).

Code: Select all

C:\Program Files\SABnzbd>SABnzbd-console.exe -f "%localappdata%\sabnzbd\sabnzbd.ini" update
Changing service configuration
Service updated

You may need to set additional Service parameters!
Verify the settings in Windows Services (services.msc).

https://sabnzbd.org/wiki/advanced/sabnzbd-as-a-windows-service
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply