sabnzbd is not saving settings

Support for the Debian/Ubuntu package, created by JCFP.
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
Larske
Newbie
Newbie
Posts: 3
Joined: May 7th, 2014, 9:55 am

sabnzbd is not saving settings

Post by Larske »

Yesterday i did a fresh install of Ubuntu and installed sabnzbd. I have installed sabnzbd through the terminal. After setting it up i have walked through the wizard and ended in the normal sabnzbd download overview.

I wanted to make some personal settings like a customer folder for scripts but i noticed that none of the settings i make in the GUI are saved.

To solve the problem i have tried to remove sabnzbd trough the terminal (purge) and reinstall it through the Ubuntu Software center. After the reinstallation the problem remains.

I have tried to stop sabnzbd and make the settings mannualy in the home/user/.sabnzbd/sabnzbd.ini file using sudo, i am able to edit the file and save it without errors. But when i reopen the file none of my changes have been saved.

My knowlegde of Ubuntu and sabnzbd is not that large, so i don't know what i can do to solve this problem. Does anyone here can help me?
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: sabnzbd is not saving settings

Post by sander »

What is the output of:

Code: Select all

ls -al ~/.sabnzbd/sabnzbd.ini
or

Code: Select all

cd
ls -al .sabnzbd/sabnzbd.ini
Larske
Newbie
Newbie
Posts: 3
Joined: May 7th, 2014, 9:55 am

Re: sabnzbd is not saving settings

Post by Larske »

-rw------- 1 lars lars 3579 mei 7 22:04 /home/lars/.sabnzbd/sabnzbd.ini

I have read in another topic that it could work with chmod 664 but that gives the same problem, it's now back with the rights as above described. In the meantime i have tried to first remove sabnzbd and then removed the completed .sabnzbd folder. After that i did a reinstall so the complete .sabnzbd is recreated, but it does not help.
Larske
Newbie
Newbie
Posts: 3
Joined: May 7th, 2014, 9:55 am

Re: sabnzbd is not saving settings

Post by Larske »

Don't know how, but after lot of different tests sabnzbd is now saving my settings....

Thank you for your reply.
timofcourse
Newbie
Newbie
Posts: 9
Joined: January 17th, 2010, 3:38 pm

Re: sabnzbd is not saving settings

Post by timofcourse »

Im having a similar issue as the OP. Settings were stored from the initial wizard setup, but Im unable to make changes via the web interface.

I have updated /etc/default/sabnzbdplus to use an alternate config location and Ive chmod'ed the folder the config file is stored in and the config file itself to 777.

Any thoughts as to why Im not able to save settings?

Thanks!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: sabnzbd is not saving settings

Post by shypike »

timofcourse wrote: Any thoughts as to why Im not able to save settings?
Not without more information about your OS, package source, etc.
timofcourse
Newbie
Newbie
Posts: 9
Joined: January 17th, 2010, 3:38 pm

Re: sabnzbd is not saving settings

Post by timofcourse »

Lubuntu 14.04
Installed via:

Code: Select all

sudo apt-get install sabnzbdplus
And as stated previously, I updated /etc/default/sabnzbdplus to point to an alternative config location (/etc/sabnzbdplus/sabnzbd.ini). Here's the directory listing of that location:

Code: Select all

tim@vpnserv:~$ ls -l /etc/sabnzbdplus/
total 24
drwxr-xr-x 2 tim domain^users 4096 Jul  7 16:08 admin
drwxr-xr-x 2 tim domain^users 4096 Jul  7 08:58 logs
-rwxrwxrwx 1 tim domain^users 4329 Jul  7 16:08 sabnzbd.ini
-rw-rw-rw- 1 tim domain^users 4329 Jul  7 16:08 sabnzbd.ini.bak
Let me know if there's any other info I can provide.
Thanks!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: sabnzbd is not saving settings

Post by shypike »

Does SABnzbd run under the account that owns the folders (like admin)?
timofcourse
Newbie
Newbie
Posts: 9
Joined: January 17th, 2010, 3:38 pm

Re: sabnzbd is not saving settings

Post by timofcourse »

I managed to get this working by just chmod'ing the sab folders to 777.
dkerlee
Newbie
Newbie
Posts: 9
Joined: December 19th, 2011, 10:34 am

Re: sabnzbd is not saving settings

Post by dkerlee »

I'm on ubuntu 16.04, sabnzbd 0.7.20. I keep changing the Settings > General > Host SABnzbd should listen on, to 0.0.0.0. But the setting keeps disappearing. For some odd reason, it's the only way I can get Sonarr to connect to sab, if it's set to 0.0.0.0
weird. But then it defaults back to the actual ip of the machine (both are) it's running on, 192.168.11.52

From sab General > Parameters

Code: Select all

/usr/bin/sabnzbdplus --daemon --pidfile /var/run/sabnzbdplus/pid --config-file /home/drew/.sabnzbd --server 192.168.11.52:8080

Code: Select all

drew@mimi:~/.sabnzbd$ ll
total 36
drwxrwxr-x  5 drew drew 4096 Jul  7 23:43 ./
drwxr-xr-x 33 drew drew 4096 Sep 26 08:59 ../
drwxrwxr-x  3 drew drew 4096 Sep 30 12:34 admin/
drwxrwxr-x  3 drew drew 4096 Jul 20 18:08 Downloads/
drwxrwxr-x  2 drew drew 4096 Sep  1 14:30 logs/
-rw-------  1 drew drew 7684 Sep 30 12:34 sabnzbd.ini
-rw-------  1 drew drew 7684 Sep 30 12:34 sabnzbd.ini.bak

Code: Select all

drew@mimi:~/.sabnzbd$ ps -ef | grep sab
drew      1606     1  0 12:34 ?        00:00:02 /usr/bin/python -OO /usr/bin/sa nzbdplus --daemon --pidfile /var/run/sabnzbdplus/pid --config-file /home/drew/.sabnzbd --server 192.168.11.52:8080
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: sabnzbd is not saving settings

Post by shypike »

If you use the package for Ubuntu, the server is set in the startup script.
I'm not sure where that file is located.
dkerlee
Newbie
Newbie
Posts: 9
Joined: December 19th, 2011, 10:34 am

Re: sabnzbd is not saving settings

Post by dkerlee »

/etc/init/sabnzbdplus
says to edit
/etc/default/sabnzbdplus

In that file, I had both:

CONFIG=/home/<username>/.sabnzbd

-=and=-

HOST=192.168.11.52
PORT=8080

So the HOST and PORT specified in /etc/default/sabnzbdplus overrode the ones in /home/<user>/.sabnzbd/sabnzbd.ini

I commented out the HOST and PORT line in /etc/default/sabnzbdplus file, and the changes now stick.
Post Reply