Page 1 of 1

Win 7 cannot create directory

Posted: October 26th, 2009, 12:18 pm
by alex350r
Hi,

I installed Sabnzbd on my Win 7 desktop today, it installs fine but when I run it/try to open the web interface it does not load.
I had a look in the users>AppData>sabnzbd folder and the ini file only contains this:
__version__=18
[misc]
[logging]
The logs file is showing the following errors:
009-10-26 16:58:57,969::INFO::--------------------------------
2009-10-26 16:58:57,969::INFO::SABnzbd.exe-0.4.12 (rev=2799)
2009-10-26 16:58:57,969::INFO::Platform=Windows-Vista-6.1.7600 Class=nt
2009-10-26 16:58:57,970::INFO::Python-version = 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit (Intel)]
2009-10-26 16:58:57,970::INFO::No download_dir defined, setting value to "downloads/incomplete"
2009-10-26 16:58:57,970::INFO::download_dir directory: M:\Users\Alex\Documents\downloads\incomplete does not exist, try to create it
2009-10-26 16:58:57,970::ERROR::[sabnzbd.misc] Cannot create directory M:\Users\Alex\Documents\downloads\incomplete
2009-10-26 16:58:57,970::INFO::download_dir directory: M:\Users\Alex\Documents\downloads\incomplete does not exist, try to create it
2009-10-26 16:58:57,971::ERROR::[sabnzbd.misc] Cannot create directory M:\Users\Alex\Documents\downloads\incomplete
2009-10-26 16:58:57,971::ERROR::Initializing SABnzbd.exe-0.4.12 failed, aborting

The strange thing is that the drive M: does not exist on my system so I can't understand how sabnzbd is getting this. My 'documents' folder is located on my D: drive/partition at D:\Users\Alex\Documents.
Any idea how I can fix this error/manually setup the folders in the ini file myself?

I installed it on my laptop and it worked first time :-(

Cheers,

Alex

Re: Win 7 cannot create directory

Posted: October 26th, 2009, 1:12 pm
by shypike
It must be picking up strange info from the Windows profile.
Check what's in the sabnzbd.ini file.
c:\Users\USER\AppData\Local\sabnzbd\sabnzbd.ini
Inspect the settings

Code: Select all

download_dir = 
complete_dir =
Set those to proper values (full path preferably).
That way you can start up and if needed modify further paths.

Re: Win 7 cannot create directory

Posted: October 26th, 2009, 1:21 pm
by alex350r
Thanks for the reply, ive changed the ini file and it now reads:

__version__=18
download_dir = C:\Downloads
complete_dir = C:\Downloads
[misc]
[logging]

Ive created the Downloads directly in my C: drive but still sabnzbd reports the following:
2009-10-26 18:13:41,581::INFO::SABnzbd.exe-0.4.12 (rev=2799)
2009-10-26 18:13:41,581::INFO::Platform=Windows-Vista-6.1.7600 Class=nt
2009-10-26 18:13:41,581::INFO::Python-version = 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit (Intel)]
2009-10-26 18:13:41,582::INFO::No download_dir defined, setting value to "downloads/incomplete"
2009-10-26 18:13:41,582::INFO::download_dir directory: M:\Users\Alex\Documents\downloads\incomplete does not exist, try to create it
2009-10-26 18:13:41,582::ERROR::[sabnzbd.misc] Cannot create directory M:\Users\Alex\Documents\downloads\incomplete
2009-10-26 18:13:41,582::INFO::download_dir directory: M:\Users\Alex\Documents\downloads\incomplete does not exist, try to create it
2009-10-26 18:13:41,582::ERROR::[sabnzbd.misc] Cannot create directory M:\Users\Alex\Documents\downloads\incomplete
2009-10-26 18:13:41,582::ERROR::Initializing SABnzbd.exe-0.4.12 failed, aborting

It's a bit worrying actually because I recently install need for speed shift and it won't save my gamer profile - this might be why. Any ideas how I can find out why its referencing M:?


Cheers,

Alex

Re: Win 7 cannot create directory

Posted: October 26th, 2009, 2:15 pm
by shypike
Well the only way out is this.
Modify the shortcut to sabnzbd to this:

Code: Select all

"c:\program files\sabnzbd\sabnzbd.exe" -f c:\users\alex\appdata\local\sabnzbd\sabnzbd.ini
This will prevent SABnzbd from reading your profile.
You will need to adjust some paths, because it will try put everything in subfolders of appdata/local.

You could try to create a new user account.
If that fixes things, you could consider using the new account.
Quite a bit of work, but I cannot tell you how to fix it from here :(

Re: Win 7 cannot create directory

Posted: October 26th, 2009, 2:44 pm
by switch
Out of interest, what path does the following open up when entered into Start>Run:

Code: Select all

%localappdata%

Re: Win 7 cannot create directory

Posted: October 26th, 2009, 4:55 pm
by shypike
You mean:
Start->Run Type: cmd.exe
wait for the black window and type

Code: Select all

echo %localappdata%

Re: Win 7 cannot create directory

Posted: October 26th, 2009, 4:56 pm
by switch
Either really

Re: Win 7 cannot create directory

Posted: October 27th, 2009, 4:29 am
by alex350r
Thanks for the replies folks, when I enter %localappdata% i recieve the correct directory (C:\Users\Alex\AppData).

I ran sabnzbd the way you said Shypike and it worked :-) but I think im going to rebuild the machine anyhow - its quite cluttered and could do with Win 7 re-installing. This way ill have a new user account too.

I'll let you know how it goes - hopefully it works!