SAB RC2 Randomly changing its Configuration Directory

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
brodie7838
Newbie
Newbie
Posts: 3
Joined: April 20th, 2011, 3:06 pm

SAB RC2 Randomly changing its Configuration Directory

Post by brodie7838 »

I searched the web and this forum and didn't see this or similar posted. The issue started after upgrading from standard release to the 0.6.0 beta/RC and intermittently presents after making changes in SAB's web interface, then restarting SAB, (also via the web interface). Once the SAB process has restarted, I am presented with the initial setup wizard, and all settings are gone.

It appears that, when this issue occurs, SAB shows 'C:\Documents and Settings\NetworkService\Local Settings\Application Data\sabnzbd\sabnzbd.ini' as the default location for the configuration file instead of 'C:\Documents and Settings\USERNAME\Local Settings\Application Data\sabnzbd\sabnzbd.ini'
The ini file in the expected 'USERNAME' directory still contains my settings, while the one in the 'NetworkService' directory is a clean slate, hence the setup wizard upon startup. If I replace the ini file in the 'NetworkService' directory with the one in the 'USERNAME' directory and restart SAB, everything goes back to normal again.

Has anyone else seen this? Is there a permissions issue or similar I may need to look into on my OS that would cause this?

Host OS: Windows XP SP3 x86
SAB Version: 0.6.0RC2
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SAB RC2 Randomly changing its Configuration Directory

Post by shypike »

How do you start SABnzbd?
brodie7838
Newbie
Newbie
Posts: 3
Joined: April 20th, 2011, 3:06 pm

Re: SAB RC2 Randomly changing its Configuration Directory

Post by brodie7838 »

Hi shypike, just with a shortcut in the 'Startup' folder.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SAB RC2 Randomly changing its Configuration Directory

Post by shypike »

Looks like your OS has an identity crisis.
SABnzbd asks the OS what the user's profile folder is and uses what is returned.
There is a way to force the use of an INI file.
Open the properties of the SABnzbd icon (in the Startup folder) and
add this at the end of the "Target" filed, after the last quote character:
-f "c:\documents and settings\USERNAME\Local Settings\Application Data\sabnzbd"

The side effect will be that "Downloads" and some other folders will no longer be
in the normal location. So you will have to change those.
brodie7838
Newbie
Newbie
Posts: 3
Joined: April 20th, 2011, 3:06 pm

Re: SAB RC2 Randomly changing its Configuration Directory

Post by brodie7838 »

I'm not so sure; I've had SAB installed for quite some time on this particular box, and the issue only started after upgrading to 0.6.0 Beta. It could easily fall on either side of the fence without more details I suppose. Either way, I know how to fix it now and I have a backup of the ini file, so I'll just keep an eye on it.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SAB RC2 Randomly changing its Configuration Directory

Post by shypike »

Try looking at the logging file, next time it fails.
That may give some clues.
Post Reply