Page 1 of 1

Windows service installation fails.

Posted: February 8th, 2023, 4:04 pm
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!

Re: Windows service installation fails.

Posted: February 8th, 2023, 5:08 pm
by safihre
Seems to be a bug in a dependency we use. Too bad!
https://github.com/mhammond/pywin32/issues/1985

Re: Windows service installation fails.

Posted: February 10th, 2023, 3:18 pm
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