0.7.6 beta1 crashes

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
lordjynx
Newbie
Newbie
Posts: 19
Joined: November 13th, 2012, 11:32 am

0.7.6 beta1 crashes

Post by lordjynx »

I'm currently running 0.7.5 successfully as a service. After an upgrade to 0.7.6 beta 1, the sabnzbd service crashes every time with this error in event viewer:

The instance's SvcRun() method failed
Traceback (most recent call last):
File "win32serviceutil.pyo", line 806, in SvcRun
File "SABnzbd.pyo", line 1698, in SvcDoRun
File "SABnzbd.pyo", line 1121, in main
File "SABnzbd.pyo", line 730, in check_for_sabnzbd
File "sabnzbd\misc.pyo", line 698, in exit_sab
SystemExit: 0
%2: %3

Running the sabnzbd.exe instead of the service also doesn't appear to work. The .exe dies almost immediately upon launch.
Reverting back to 0.7.5 works.

OS is Windows 2008 R2

Any suggestions?

TIA,

LJ
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.6 beta1 crashes

Post by shypike »

How does SABnzbd's own log file end?
Set debug logging on by editing the sabnzbd.ini file directly:

Code: Select all

[logging]
    log_level = 2
It looks very much like SABnzbd thinks there's another instance running on the same machine.
Is that so?
coolspot
Newbie
Newbie
Posts: 6
Joined: November 13th, 2012, 11:13 pm

Re: 0.7.6 beta1 crashes

Post by coolspot »

I had a similar thing happen when I tried installing 0.7.6 beta 1. I ran it and saw the .exe show in process manager for a second, then it disappeared. I ended up just deleting my programfiles/sabnzbd directory and reinstalling 0.7.5 without any problems, but it did seem like it was crashing out, but I didn't look for any log files.
lordjynx
Newbie
Newbie
Posts: 19
Joined: November 13th, 2012, 11:32 am

Re: 0.7.6 beta1 crashes

Post by lordjynx »

shypike wrote:How does SABnzbd's own log file end?
Set debug logging on by editing the sabnzbd.ini file directly:

Code: Select all

[logging]
    log_level = 2
It looks very much like SABnzbd thinks there's another instance running on the same machine.
Is that so?
SABnzbd is set to run as a service and the .exe isn't loaded in processes.

I've set that now in the .ini... tried installing it again and I must be blind because I'm not finding a .log file - either when running it via the service or the sabnzbd.exe. My INI looks like this:

log_dir = h:\sabnzbd\logs <--- sabnzbd.log should be there (it's there in 0.7.5)
admin_dir = h:\sabnzbd\admin
[logging]
log_new = 0
max_log_size = 5242880
log_level = 2
log_backups = 5
enable_cherrypy_logging = 0

Thanks,
LJ
lordjynx
Newbie
Newbie
Posts: 19
Joined: November 13th, 2012, 11:32 am

Re: 0.7.6 beta1 crashes

Post by lordjynx »

log_dir = h:\sabnzbd\logs <--- sabnzbd.log should be there (it's there in 0.7.5)
To clarify my statement: I can delete the sabnzbd.log in 0.7.5 and it'll recreate it next time I start the service. It doesn't recreate in 0.7.6b1

LJ
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.6 beta1 crashes

Post by shypike »

Did you install the new version over the new one.
In other words, are the locations off files still the same.
Maybe you should delete both services are redefine them.
From my testing, I can find no issues with running it as a service.
lordjynx
Newbie
Newbie
Posts: 19
Joined: November 13th, 2012, 11:32 am

Re: 0.7.6 beta1 crashes

Post by lordjynx »

Yeap, same location, I just did an upgrade. I'll try removing the services, upgrading, then reinstall them.

LJ
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.6 beta1 crashes

Post by shypike »

I looked at the code change that removed the version check, when checking for an already running instance.
Under some circumstances the new code can give unpredictable results.
This could explain your issue.
I will change the code for 0.7.6Beta2 and PM you as soon as it is available.
lordjynx
Newbie
Newbie
Posts: 19
Joined: November 13th, 2012, 11:32 am

Re: 0.7.6 beta1 crashes

Post by lordjynx »

shypike wrote:I looked at the code change that removed the version check, when checking for an already running instance.
Under some circumstances the new code can give unpredictable results.
This could explain your issue.
I will change the code for 0.7.6Beta2 and PM you as soon as it is available.
Awesome, thanks.

As a side note, I also got it working as a service again.

Like you suggested: try removing the service then re-adding.. Here's what I did:

Remove the SABnzbd service and the helper service.
Upgraded to 0.7.6b1 (no other removals, just a simple update).
reinstalled the services from the 0.7.6b1 exes. Appears to be running ok now.

LJ
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.6 beta1 crashes

Post by shypike »

It could be that after your last stop of 0.7.5, registry info was left behind.
In such a case, the incorrect change in the code would let SABnzbd assume that
an instance was already running (and therefore bailing out).
In some sense, it's a pity that you already removed the cause.
Of course I cannot blame you for doing that :)
lordjynx
Newbie
Newbie
Posts: 19
Joined: November 13th, 2012, 11:32 am

Re: 0.7.6 beta1 crashes

Post by lordjynx »

lol... I can always go back to 0.7.5 and try it again if you want :)
lordjynx
Newbie
Newbie
Posts: 19
Joined: November 13th, 2012, 11:32 am

Re: 0.7.6 beta1 crashes

Post by lordjynx »

Skypike:

I just installed Beta 2 over Beta 1. No issues with the service going from 1 to 2. I can still test 0.7.5 --> beta 2 if you want.

At any rate, thanks for quick fixes you devs do!

LJ
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 0.7.6 beta1 crashes

Post by shypike »

I pretty confident that the issue is what I described.
Given that the most probable initial cause was left behind registry info,
it's not certain that a new upgrade 0.7.5->0.7.6 would show the problem again.
Thanks for trying the Betas and so preventing problems for future upgraders.
Post Reply