Page 1 of 1

Can't start sabnzbd

Posted: March 13th, 2015, 2:49 pm
by hat
Hi,

Whenever I try to run sabnzbd I just get an error message and it won't load up.

I am using Windows 7, sabnzbd 0.7.20, downloaded with the windows installer. Sabnzbd is allowed through the windows firewall, I can't see anywhere that AVG is blocking it either. The problem is very repeatable. I'm not using a skin, and I have no idea about ipv6.

The error is:

Traceback (most recent call last):
File "SABnzbd.py", line 1853, in <module>
File "SABnzbd.py", line 1083, in main
File "os.pyo", line 171, in makedirs
WindowsError: [Error 5] Access is denied: 'C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\sabnzbd'

When I went through that file location and ensured it had permissions, I can get all the way to Local, but there isn't a sabnzbd folder or file in it.

Any help figuring out what is causing this would be gratefully received.

Re: Can't start sabnzbd

Posted: March 13th, 2015, 3:16 pm
by shypike
There's something wrong in your Windows user profile.
The profile path should be something like c:\users\YOURNAME\AppData\Local\sabnzbd
Please open a cmd.exe window (Windows-key then type cmd.exe and then hit Enter)
In the black window type:
set appdata
Then hit Enter.
What do you see?

Re: Can't start sabnzbd

Posted: March 13th, 2015, 5:58 pm
by hat
It says -

c:\users\username\appdata\roaming

I checked under users\username\appdata\local and there is a sabnzbd folder there.

Re: Can't start sabnzbd

Posted: March 14th, 2015, 2:14 pm
by shypike
For some reason, SABnzbd gets garbage from the Windows registry.
One way to fix it is to modify SABnzbd's desktop icon (assuming you start it like that.
Open its properties and modify the field "Target". Fill it out, exactly like this (except for the username).
For a 32bit Windows:

Code: Select all

"C:\Program Files\SABnzbd\SABnzbd.exe" c:\users\USERNAME\AppData\Local\sabnzbd
otherwise:

Code: Select all

"C:\Program Files x86)\SABnzbd\SABnzbd.exe" c:\users\USERNAME\AppData\Local\sabnzbd
However, you will need to set explicit paths for a number of user folders in Config->Folders.

Re: Can't start sabnzbd

Posted: April 1st, 2015, 4:37 pm
by hat
I tried all those things and searched some more and got some help from a friend and nothing worked, until I hit 'run as administrator' on the right click menu for sabnzbd.exe and then it was fine.

Stupid windows.

Thanks for the help though!

Re: Can't start sabnzbd

Posted: April 2nd, 2015, 2:46 am
by shypike
SABnzbd normally doesn't need admin rights, unless you want it to use folders
that normal users are not allowed to write to.
There's also an obscure bug (or unfortunate combination of circumstances),
where SABnzbd finds its profile information in the admin part of the Windows Registry.
This may occur if you tried to run SABnzbd as a Windows service.