Not saving changes to ini file ubuntu nginx

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
guinness
Newbie
Newbie
Posts: 1
Joined: March 30th, 2017, 3:54 pm

Not saving changes to ini file ubuntu nginx

Post by guinness »

I have been running sab for years. Just installed it on a new server and I am having issues saving settings to the .ini file.

Version: 0.7.20
OS: Ubuntu 16.04
Install-type: apt-get install sabnzbdplus
Skin (if applicable): default gold
Firewall Software: disabled
Is the issue reproducible? yes

I have my config files in /opt/sabnzbdplus
User: sabnzbdplus
Group: sabnzbdplus

Code: Select all

drwxr-xr-x  6 sabnzbdplus sabnzbdplus 4096 Mar 30 16:27 .
drwxr-xr-x 11 root        root        4096 Mar 22 00:48 ..
drwxr-xr-x  2 sabnzbdplus sabnzbdplus 4096 Mar 31 00:40 admin
drwxr-xr-x  4 sabnzbdplus sabnzbdplus 4096 Mar 22 01:01 Downloads
drwxr-xr-x  2 sabnzbdplus sabnzbdplus 4096 Mar 30 14:19 logs
-rw-r-xr--  1 sabnzbdplus sabnzbdplus 4484 Mar 31 00:40 sabnzbd.ini
-rw-r--r--  1 sabnzbdplus sabnzbdplus 4484 Mar 31 00:40 sabnzbd.ini.bak
drwxr-xr-x  2 sabnzbdplus sabnzbdplus 4096 Mar 22 01:01 scripts
sudo service sabnzbdplus status

Code: Select all

sabnzbdplus.service - LSB: SABnzbd+ binary newsgrabber
   Loaded: loaded (/etc/init.d/sabnzbdplus; bad; vendor preset: enabled)
   Active: active (running) since Thu 2017-03-30 16:31:26 EDT; 8h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 8387 ExecStop=/etc/init.d/sabnzbdplus stop (code=exited, status=0/SUCCESS)
  Process: 8498 ExecStart=/etc/init.d/sabnzbdplus start (code=exited, status=0/SUCCESS)
    Tasks: 33
   Memory: 6.2G
      CPU: 2h 30min 34.980s
   CGroup: /system.slice/sabnzbdplus.service
           └─6146 /usr/bin/python /usr/bin/sabnzbdplus --daemon --pidfile /var/run/sabnzbdplus/pid --config-file /opt/sabnzbdplus/sabnzbd.ini

Mar 30 16:31:23 MEDIA systemd[1]: Starting LSB: SABnzbd+ binary newsgrabber...
Mar 30 16:31:23 MEDIA sabnzbdplus[8498]:  * Starting SABnzbd+ binary newsgrabber
Mar 30 16:31:26 MEDIA sabnzbdplus[8498]:    ...done.
Mar 30 16:31:26 MEDIA systemd[1]: Started LSB: SABnzbd+ binary newsgrabber.
Mar 30 17:09:10 MEDIA systemd[1]: Started LSB: SABnzbd+ binary newsgrabber.

I am running nginx with a reverse proxy setup. I can access sab fine but I can no longer save settings via the web interface. The save button just goes to "Failed".

As a test I:
1) stopped the sab service (sudo service sabnzbdplus stop)
2) set the password to "" in the .ini file
3) saved the changes as the sabnzbdplus user
4) restarted sab

I noticed that the change took effect as I could login with no password. However, I see my old settings (such as a password and theme) set in the web GUI -> config page -> General settings. I don't understand where it could be pulling this data from as I would think it would be loaded from the .ini on startup.

I can't seem to figure out why I can't save settings. I verified that ACL is not an issue in that config folder and that the files are all owned by the service user (sabnzbdplus). The nginx log is showing no errors as well as the sabnzbd log.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Not saving changes to ini file ubuntu nginx

Post by sander »

Version: 0.7.20
Upgrade to SAB 1.2.3 (or higher) first. Pro-tip: Google "SABnzbd PPA Ubuntu"
Post Reply