Changed my account name folder with win7 and now sab crashes

Get help with all aspects of 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
ncaa76
Newbie
Newbie
Posts: 6
Joined: March 18th, 2013, 1:14 am

Changed my account name folder with win7 and now sab crashes

Post by ncaa76 »

I needed to change my account name and profile folder for win7 and now everytime I got to startup Sabnzbd I get an, 'error occurred'. I have tried to uninstall/reinstall and still not fixed.

See error log below:
Traceback (most recent call last):
File "SABnzbd.py", line 1808, in <module>
File "SABnzbd.py", line 1077, in main
File "os.pyo", line 164, in makedirs
File "os.pyo", line 164, in makedirs
File "os.pyo", line 164, in makedirs
File "os.pyo", line 171, in makedirs
WindowsError: [Error 5] Access is denied: 'C:\\Users\\Computer-Expert-2'

I need to change the 'Computer-Expert-2' to the new profile name.

*Note I am not familiar with programming
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Changed my account name folder with win7 and now sab cra

Post by shypike »

How did you change your account name?
In Windows it's not possible to change the base name (as used in in c:\users),
only the "fancy" name that shows in the login screen.
ncaa76
Newbie
Newbie
Posts: 6
Joined: March 18th, 2013, 1:14 am

Re: Changed my account name folder with win7 and now sab cra

Post by ncaa76 »

shypike wrote:How did you change your account name?
In Windows it's not possible to change the base name (as used in in c:\users),
only the "fancy" name that shows in the login screen.

I had to edit the registry using a different admin account.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Changed my account name folder with win7 and now sab cra

Post by shypike »

It does look like you didn't also adjust permissions.
Is the new name "Computer-Expert-2"?
ncaa76
Newbie
Newbie
Posts: 6
Joined: March 18th, 2013, 1:14 am

Re: Changed my account name folder with win7 and now sab cra

Post by ncaa76 »

shypike wrote:It does look like you didn't also adjust permissions.
Is the new name "Computer-Expert-2"?
No the new name is different, "Computer-Expert-2" is the old name.

If I right click on sabnzbd.exe and run as admin it will open and just create a new folder in my users called, "Computer-Expert-2" with new App Data/local/sabnzbd.

What I would like for the program to do is link to the New profile name and retrieve the old App Data/local/sabnzbd stuff.

Basically sabnzbd wants to only open with "Computer-Expert-2" as the user and not the New profile name.

Thanks again for all the help by the way, really appreciate it. :)
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Changed my account name folder with win7 and now sab cra

Post by shypike »

How do you start SABnzbd?
Somehow it looks like the user name is hard-coded in the sabnzbd.ini file.
That's normally not case, unless you set that in Config->Folders.
ncaa76
Newbie
Newbie
Posts: 6
Joined: March 18th, 2013, 1:14 am

Re: Changed my account name folder with win7 and now sab cra

Post by ncaa76 »

shypike wrote:How do you start SABnzbd?
Somehow it looks like the user name is hard-coded in the sabnzbd.ini file.
That's normally not case, unless you set that in Config->Folders.
I have start on start up or I use the short cut on my desktop, I even tried using the .exe straight from the folder and still get the same error occurred message. What .ini file is it pulling from, cause I did not see one in the main directory? I only saw it in new profile user folder and I changed the profile name call up already in their.

It has to be stored either in a .py file or in the registry?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Changed my account name folder with win7 and now sab cra

Post by shypike »

The default location is this:
c:\Users\xxx\AppData\Local\sabnzbd\sabnzbd.ini

Check the user environment variables like:
APPDATA=C:\Users\xxx\AppData\Roaming
LOCALAPPDATA=C:\Users\xxx\AppData\Local
USERNAME=xxx
USERPROFILE=C:\Users\xxx
ncaa76
Newbie
Newbie
Posts: 6
Joined: March 18th, 2013, 1:14 am

Re: Changed my account name folder with win7 and now sab cra

Post by ncaa76 »

shypike wrote:The default location is this:
c:\Users\xxx\AppData\Local\sabnzbd\sabnzbd.ini

Check the user environment variables like:
APPDATA=C:\Users\xxx\AppData\Roaming
LOCALAPPDATA=C:\Users\xxx\AppData\Local
USERNAME=xxx
USERPROFILE=C:\Users\xxx
The thing is I already deleted the everything in the c:\Users\xxx\AppData\Local\sabnzbd\sabnzbd.ini folder the last time I unistalled (I used revo uninstaller and did a full uninstall). So if you look in my AppData\Local\ folder you will not find a sabnzbd folder at all.

I think its these files that need to be changed, "SABnzbd.py" and "os.pyo" And I not know how to change or delete them?

Again this is the log from my SABnzbd.exe.log:
Traceback (most recent call last):
File "SABnzbd.py", line 1808, in <module>
File "SABnzbd.py", line 1077, in main
File "os.pyo", line 164, in makedirs
File "os.pyo", line 164, in makedirs
File "os.pyo", line 164, in makedirs
File "os.pyo", line 171, in makedirs
WindowsError: [Error 5] Access is denied: 'C:\\Users\\Computer-Expert-2'
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Changed my account name folder with win7 and now sab cra

Post by shypike »

SABnzbd uses the listed environment variables to locate the user profile.
If the variables have the wrong value, SABnzbd will be looking at the wrong location.
I still maintain that your account renaming isn't complete.

There is a work-around possible, but then you need to modify the shortcut used to start SABnzbd.
After the "c:\Program Files (x86)\SABnzbd\SABnzbd.exe" part, add -f c:\usenet
Where c:\usenet is the folder where SABnzbd will create its administration.
ncaa76
Newbie
Newbie
Posts: 6
Joined: March 18th, 2013, 1:14 am

Re: Changed my account name folder with win7 and now sab cra

Post by ncaa76 »

shypike wrote:SABnzbd uses the listed environment variables to locate the user profile.
If the variables have the wrong value, SABnzbd will be looking at the wrong location.
I still maintain that your account renaming isn't complete.

There is a work-around possible, but then you need to modify the shortcut used to start SABnzbd.
After the "c:\Program Files (x86)\SABnzbd\SABnzbd.exe" part, add -f c:\usenet
Where c:\usenet is the folder where SABnzbd will create its administration.
Thank you so much for your help, I will continue to look into why my profile renaming is incomplete.

The good news is, your work around worked and I am up add running again!

You are best and love this program!
carks
Newbie
Newbie
Posts: 1
Joined: July 26th, 2013, 6:17 am

Re: Changed my account name folder with win7 and now sab cra

Post by carks »

I ran into the exact same problem as mentioned here.
Do you happen to have a solution to this problem, apart from the mentioned workaround?
Thanks in advance!
prensman
Newbie
Newbie
Posts: 2
Joined: July 23rd, 2014, 6:42 pm

Re: Changed my account name folder with win7 and now sab cra

Post by prensman »

Has anyone found a solution for this yet?

I've changed my windows user account too and I'm running into the exact same problem... :(

The workaround works but it doesn't solve the problem with file associations when opening nzb files.

I even uninstalled sabnzbd, including the user settings, cleaned the registry and rebooted before I installed it again but it is still searching for the old user directory.

My first thought was to check the the environment variables but nothing is pointing to the old path. I really have no clue from where sabnzbd is getting the path to the old user account.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Changed my account name folder with win7 and now sab cra

Post by shypike »

Try to search the entire registry for "SABnzbd". Remove all you find.
You'll need to use regedit for that.
prensman
Newbie
Newbie
Posts: 2
Joined: July 23rd, 2014, 6:42 pm

Re: Changed my account name folder with win7 and now sab cra

Post by prensman »

shypike wrote:Try to search the entire registry for "SABnzbd". Remove all you find.
You'll need to use regedit for that.
That did the trick. Searched the registry and replaced all occurances of the old username with the new one (only where it was necessary of course ;)).

Thanks!
Post Reply