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

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
adix
Newbie
Newbie
Posts: 4
Joined: May 26th, 2023, 10:18 pm

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

Post 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.
adix
Newbie
Newbie
Posts: 4
Joined: May 26th, 2023, 10:18 pm

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

Post 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'.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

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

Post 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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
adix
Newbie
Newbie
Posts: 4
Joined: May 26th, 2023, 10:18 pm

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

Post 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'
adix
Newbie
Newbie
Posts: 4
Joined: May 26th, 2023, 10:18 pm

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

Post 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
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

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

Post by safihre »

You can send it to me at [email protected]
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply