Updates wipe settings

Report & discuss bugs found in SABnzbd

Updates wipe settings

Postby toekneebullard » May 7th, 2012, 12:44 am

OK, I've got two issues:
1) When Windows updates, all my Sabnzbd settings get wiped. The setup wizard comes up, and I have to start from scratch. It got so annoying I set up a batch script to backup the sabnzbd.ini file so I could replace it when that happened.
2) when updating to .6.15, I lost all my settings again. Well, most. The port settings were still intact, but my history was gone, all my categories wiped, the download directories changed...

I tired using my backup file, but it's not working. Or perhaps it backed up the fucked up file, I'm not sure.

Anyway, is there any reason why the settings for Sabnzbd should be so volatile? Is there something I can do to ensure updating won't wipe my settings?

Thanks for any help,
Tony

EDIT: I just found this in my warnings tab:
2012-05-07 00:46:51,561 ERROR: Cannot create backup file for C:\Program Files\SABnzbd\sabnzbd.ini
2012-05-07 00:46:18,430 ERROR: Cannot create backup file for C:\Program Files\SABnzbd\sabnzbd.ini
2012-05-07 00:45:45,295 ERROR: Cannot create backup file for C:\Program Files\SABnzbd\sabnzbd.ini
2012-05-07 00:45:35,046 ERROR: Cannot create backup file for C:\Program Files\SABnzbd\sabnzbd.ini
2012-05-07 00:45:29,710 ERROR: Cannot create backup file for C:\Program Files\SABnzbd\sabnzbd.ini
2012-05-07 00:36:52,075 ERROR: Cannot create backup file for C:\Program Files\SABnzbd\sabnzbd.ini
Last edited by toekneebullard on May 9th, 2012, 9:15 am, edited 2 times in total.
toekneebullard
Newbie
Newbie
 
Posts: 8
Joined: July 29th, 2011, 10:28 pm

Re: Updates wipe settings

Postby shypike » May 7th, 2012, 8:50 am

Where are you storing your INI file, in SABnzbd's program folder?
It should be in the user profile.
Remove sabnzbd.ini from "C:\Program Files\SABnzbd".
User avatar
shypike
Administrator
Administrator
 
Posts: 16573
Joined: January 18th, 2008, 1:49 pm

Re: Updates wipe settings

Postby toekneebullard » May 7th, 2012, 11:20 am

Yes, it was in "C:\Program Files\SABnzbd." It looks like by deleting it, and resetting everything again, It's now placed it in "C:\Users\admin\AppData\Local\sabnzbd\sabnzbd.ini". Not sure why it put itself in the Program Files folder in the first place...

Well, thanks!
toekneebullard
Newbie
Newbie
 
Posts: 8
Joined: July 29th, 2011, 10:28 pm

Re: Updates wipe settings

Postby shypike » May 7th, 2012, 2:04 pm

It won't put itself in the program folder, unless you specifically told SABnzbd to do that once.
Once the file is there, old (backward-compatible) behaviour is triggered.
User avatar
shypike
Administrator
Administrator
 
Posts: 16573
Joined: January 18th, 2008, 1:49 pm

Re: Updates wipe settings

Postby toekneebullard » May 9th, 2012, 9:16 am

OK, it appears to be in the right place now, but this morning I noticed this error:

2012-05-09 03:39:37,690 ERROR: Cannot create backup file for C:\Users\admin\AppData\Local\sabnzbd\sabnzbd.ini


Any idea why it would fail to make a backup? It was doing this with the old file location also.
toekneebullard
Newbie
Newbie
 
Posts: 8
Joined: July 29th, 2011, 10:28 pm

Re: Updates wipe settings

Postby shypike » May 9th, 2012, 11:12 am

This usually has to do with permissions.
Stop SABnzbd, remove the backup file once, start SABnzbd.
User avatar
shypike
Administrator
Administrator
 
Posts: 16573
Joined: January 18th, 2008, 1:49 pm

Re: Updates wipe settings

Postby toekneebullard » May 9th, 2012, 8:44 pm

I shut down Sabnzbd, I opened up C:\Users\admin\AppData\Local\sabnzbd\ and all that was in there was two folder and "sabnzbd.ini.tmp"

UGH! I restarted, and all my settings are gone again.
toekneebullard
Newbie
Newbie
 
Posts: 8
Joined: July 29th, 2011, 10:28 pm

Re: Updates wipe settings

Postby shypike » May 10th, 2012, 2:29 am

How do you start up SABnzbd?
User avatar
shypike
Administrator
Administrator
 
Posts: 16573
Joined: January 18th, 2008, 1:49 pm

Re: Updates wipe settings

Postby toekneebullard » May 10th, 2012, 8:55 am

In this case, after shutting it down through the interface, I just double-clicked the shortcut that was placed on the Desktop.
toekneebullard
Newbie
Newbie
 
Posts: 8
Joined: July 29th, 2011, 10:28 pm

Re: Updates wipe settings

Postby shypike » May 10th, 2012, 12:07 pm

Check the properties of the shortcut.
I suspect that it has odd parameters.
User avatar
shypike
Administrator
Administrator
 
Posts: 16573
Joined: January 18th, 2008, 1:49 pm

Re: Updates wipe settings

Postby toekneebullard » May 11th, 2012, 2:26 pm

I fear I'm just annoying you at this point...

The shortcut is nothing but to SABnzbd.exe. No additional parameters.
toekneebullard
Newbie
Newbie
 
Posts: 8
Joined: July 29th, 2011, 10:28 pm

Re: Updates wipe settings

Postby shypike » May 11th, 2012, 3:08 pm

There is something weird going on with access rights.
Try this work around.
Create a folder on a drive with ample space, so e.g. d:\usenet
Modify the shortcut so that the "target" ends with
-f d:\usenet
This will make all settings and default folders go to d:\usenet.
If you want you can move individual folders to other locations in Config->Folders.
User avatar
shypike
Administrator
Administrator
 
Posts: 16573
Joined: January 18th, 2008, 1:49 pm

Re: Updates wipe settings

Postby Tagden » July 11th, 2012, 2:34 pm

Have exactely the same problem today.. all settings lost after server had run Windows updates..
My ini files are default placed at C:\Users\Administrator\AppData\Local\sabnzbd and both ini and bak file are missing my settings.
Tagden
Newbie
Newbie
 
Posts: 6
Joined: December 25th, 2009, 10:24 am

Re: Updates wipe settings

Postby shypike » July 11th, 2012, 4:13 pm

Did you un-install the previous version first?
By default the un-installer will remove all settings.
User avatar
shypike
Administrator
Administrator
 
Posts: 16573
Joined: January 18th, 2008, 1:49 pm


Return to Bug Reports