Not saving changes to ini file

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
socketmail
Newbie
Newbie
Posts: 9
Joined: April 3rd, 2015, 1:13 am

Not saving changes to ini file

Post by socketmail »

Hello,

sabnzbd, the best!

I'm running sabnzbd version 1.2.3 on windows 10 home using Firefox browser 52.0.1; the problem I have is this: I check the "Launch Browser on Startup" box, save the changes but this change is not persistent across reboots. I had this issue with the previous version of sabnzbd so recently upgraded to 1.2.3 and it doesn't seem to make a difference. I opened the sabnzbd.ini file in a text editor to confirm that the auto_browser switch is set to 1, reboot the laptop and checked the file again, the auto_browser switch is set back to 0!
It looks like somehow the .ini file is getting overwritten after every reboot, can someone please help?

Thanks in advance.

-SR
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: Not saving changes to ini file

Post by sander »

Stop sabnzbd, then edit the ini
socketmail
Newbie
Newbie
Posts: 9
Joined: April 3rd, 2015, 1:13 am

Re: Not saving changes to ini file

Post by socketmail »

That didn't work, I shutdown sabnzbd, edited the ini file located in %userprofile%\AppData\Local\sabnzbd\ and rebooted. Browser didn't launch on restart and the auto_browser switch was reset to 0!

Any other suggestions would be greatly appreciated!

-SR
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: Not saving changes to ini file

Post by sander »

Then do it the official way: via de SABnzbd webGUI

http://127.0.0.1:8080/sabnzbd/config/ge ... to_browser

Or: config -> general -> Launch Browser on Startup
socketmail
Newbie
Newbie
Posts: 9
Joined: April 3rd, 2015, 1:13 am

Re: Not saving changes to ini file

Post by socketmail »

The "official way" is how I was doing it before I edited the file manually and it wouldn't save the changes. I was using the webgui to check the "Launch Browser on Startup" box, hit the "save changes" button but wouldn't persist across reboots.
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: Not saving changes to ini file

Post by sander »

socketmail wrote: hit the "save changes" button but wouldn't persist across reboots.
Does it persist without reboots?

And: are you running SABnzbd as a Windows service?
socketmail
Newbie
Newbie
Posts: 9
Joined: April 3rd, 2015, 1:13 am

Re: Not saving changes to ini file

Post by socketmail »

Yes it does persist without reboots and no I'm not running SABnzbd as a Windows service. I'm confused as to why, if anything, would overwrite a config file!
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: Not saving changes to ini file

Post by sander »

Weird. Could it be a Windows things? ... Windows restoring files?

As you don't run SAB as a Windows service, you can start sabnzbd like this "sabnzbd.exe -b1" to force-start a web browser.
socketmail
Newbie
Newbie
Posts: 9
Joined: April 3rd, 2015, 1:13 am

Re: Not saving changes to ini file

Post by socketmail »

Ok let me give that a try and get back to you.
socketmail
Newbie
Newbie
Posts: 9
Joined: April 3rd, 2015, 1:13 am

Re: Not saving changes to ini file

Post by socketmail »

Been a Unix engineer for more than 25 years, so don't deal with Windows much! I'm not sure why Windows would overwrite a 3rd party config file but who knows!

Anyhow, I ran the command 'sabnzbd.exe -b1' and it started sabnzbd AND launched the browser. So how can I make this permanent?

-SR
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: Not saving changes to ini file

Post by sander »

Anyhow, I ran the command 'sabnzbd.exe -b1' and it started sabnzbd AND launched the browser.
Good.
So how can I make this permanent?
I don't understand what you're asking. How to put 'sabnzbd.exe -b1' into a .bat or shortcut? Or are you repeating your question from your OP?
Post Reply