Page 1 of 1

Legacy 4.0.1 Failing to run as a Service [Windows 7]

Posted: May 27th, 2023, 7:54 am
by adix
I have just updated my Win7 machine from legacy 32-bit v3.7.2 to 4.0.1 and it no longer stayed running as a service. It starts and then stops a few seconds later. It does run as a normally run exe. The last line in the log is”loading postproc queue”. Any advice would be appreciated.

Re: Legacy 4.0.1 Failing to run as a Service [Windows 7]

Posted: June 1st, 2023, 5:08 am
by adix
The Event Log shows the following error with Event ID 3

The instance's SvcRun() method failed
Traceback (most recent call last):
File "win32serviceutil_py", line 1067, in SvcRun
File "SABnzbd_py", line 1684, in SvcDoRun
File "SABnzbd_py", line 1255, in main
File "sabnzbd\decorators_py", line 39, in call_func
File "sabnzbd\__init__py", line 315, in initialize
File "sabnzbd\dirscanner_py", line 69, in __init__
File "asyncio\locks_py", line 164, in __init__
File "asyncio\events_py", line 639, in get_event_loop
RuntimeError: There is no current event loop in thread 'Dummy-1'.

Re: Legacy 4.0.1 Failing to run as a Service [Windows 7]

Posted: June 1st, 2023, 12:04 pm
by safihre
I have no Windows 7 system to fix this.. Can you maybe enable Debug logging in the Status window when running SABnzbd not as a service and then check the full logs after trying to run as a service.

Re: Legacy 4.0.1 Failing to run as a Service [Windows 7]

Posted: June 2nd, 2023, 4:06 am
by adix
Ok I have done that....how would you like me to send you the log file. Trying to post the text here just gives me 'New users are not allowed to post links'

Re: Legacy 4.0.1 Failing to run as a Service [Windows 7]

Posted: June 2nd, 2023, 4:09 am
by adix
The last lines of the log are:
2023-06-02 17:08:12,288::INFO::[postproc:135] Loading postproc queue
2023-06-02 17:08:12,289::DEBUG::[filesystem:1193] [sabnzbd\postproc.py.load] Loading data for postproc2.sab
2023-06-02 17:08:12,289::DEBUG::[filesystem:1152] [sabnzbd\filesystem.py.load_admin] Loading data for postproc2.sab from \\?\C:\Users\anthony\AppData\Local\sabnzbd\admin\postproc2.sab

Re: Legacy 4.0.1 Failing to run as a Service [Windows 7]

Posted: June 2nd, 2023, 8:09 am
by safihre
You can send it to me at [email protected]