Page 1 of 1

Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 4th, 2012, 9:47 am
by Aezrith
Version: 0.7.6
OS: Windows 7 Ult x64
Install-type: Windows Installer
Skin (if applicable): smpl skin
Firewall Software: Windows Firewall / Avira (exceptions have been made in both programs)
Are you using IPV6? No
Is the issue reproducible? Yes

Sab will open and wait for about 5 seconds, then shutdown. That's without opening as Admin. If opening as Admin, then it actually works. Adding NZBs requires admin access though (inconvenient when remotely adding NZBs, or turn on by WAN). If I view the sabnzbd.log file, no errors or events are reported.

This only started after my OS HD failed and I decided to start from scratch to cleanup the programs I wasn't using etc. It's the same hardware, same OS, I changed ownership of all previous files I had, and that's it. I imagine I was using an older version of Sabnzbd, but unsure why or how this issue is happening now. Reading the FAQ, this is an issue with Vista but not XP/W7, and also considering I was using Sab previously without issue, why is it now starting?

Appreciate any help.
Thanks

Re: Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 4th, 2012, 1:01 pm
by shypike
How do you start SABnzbd?

Re: Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 4th, 2012, 1:52 pm
by Aezrith
Normally I put a shortcut in the startup folder. I'm now forced to right click, run as administrator.

Re: Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 4th, 2012, 2:32 pm
by shypike
Examine the properties of the shortcut.
Are there any additional parameters after the "SABnzbd.exe" part?
There shouldn't be.
However, possibly you ran it once as an admin and for some reason
the sabnzbd.ini file ended up in the program folder.
Check "c:\program files (x86)\SABnzbd\".
There should not be a sabnzbd.ini file in there. If so, remove it.
(Or copy it, you might need the content.)

Re: Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 4th, 2012, 2:42 pm
by Aezrith
I'll have to check the extention when iI get home. As for the configuration files, everything is in the correct place (app data folder). several reinstalls and even changing the. ini location didn't help.

Re: Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 4th, 2012, 2:53 pm
by shypike
Do check for an INI file in the program folder.
Also, are all folders accessible from the current user account?

Re: Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 4th, 2012, 3:22 pm
by Aezrith
So the .ini is in it's appdata/sabnzbd/sabnzbd.ini location. Nothing in the program folder itself. The startup shortcut has " -b0" at the end.

My user account has full access to the .ini and program folder.

Re: Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 4th, 2012, 3:24 pm
by Aezrith
Aezrith wrote:So the .ini is in it's appdata/sabnzbd/sabnzbd.ini location. Nothing in the program folder itself. The startup shortcut has " -b0" at the end.

My user account has full access to the .ini and program folder.
I just removed the " -b0" extension, results are the exact same.

Re: Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 4th, 2012, 3:57 pm
by shypike
Can you get the log file from the profile folder?
Or open a command prompt and start it with:
"c:\program files (x86)\SABnzbd\SABnzbd-console.exe" -l2

(That's minus lowercase-L two)
This should show you where SABnzbd gives up.

Re: Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 5th, 2012, 12:35 am
by Aezrith
OK so it displays "Can't write to logfile"

I have access to the logfile and my user account is the owner of the file. hmmm

Re: Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 5th, 2012, 12:47 am
by Aezrith
And fixed. Seems "take ownership" doesn't remove or override inherent security from previous OS installs. all my HD's think my previous OS owns it still. Now to change all my drives and remove this "lock" symbol from my folders :/

Re: Sabnzbd ending itself if it doesn't have Admin rights

Posted: December 5th, 2012, 1:34 am
by Aezrith
Thanks for the help shypike.