Pretty much any settings fails to save, with “Failed to save general settings” red pop up. I tried with quality settings as well as changing monitored status of a few shows, nothing works although changing monitored status fails silently (no popup).
There is nothing in the log either on the web UI or in the .txt (my last warnings & errors were 6 hours ago about some of my indexers).
Allright I launch Sonarr at start through systemd with user nzbdrone (works, ps -U nzbdrone shows my sonarr PID).
I installed the package with root so Sonarr config is is /root/.config/Nzbdrone, which is owned by user nzbdrone.
My bad, there’s nothing in /var/lib/Nzbdrone, was writing from memory and checked on my phone right now.
I don’t have any /root/.config/Sonarr though (and no /home/nzbdrone either) . Could it be that Sonarr can’t create this folder and thus fails to save settings ? if yes, would renaming my /root/.config/Nzbdrone to /root/.config/Sonarr work ?
mmmh no it’s not, AppData in System: Status shows /var/lib/nzbdrone/.config/Nzbdrone (which actually exists, contradicts my prev. post, sorry about that).
User nzbdrone has rwx on that folder as well.
Lets try this, stop Sonarr, create a backup of the DB and config.xml. Wipe out the current files in /var/lib/nzbdrone/.config/NzbDrone and restart Sonarr. It should recreate them and lets see if we can make changes to settings.
Here I got some new info (I tried wiping Sonarr and resinstalling, does not work).
Sonarr is being a nginx reverse proxy. When I access it directly it works, I can save settings. When I access it through reverse proxy it fails as described before.
Heres the reverse proxy settings
location /nzbdrone {
include /etc/nginx/includes.d/auth_basic;
include /etc/nginx/includes.d/proxy_control;
access_log /var/log/nginx/nzbdrone_access.log;
error_log /var/log/nginx/nzdrone_error.log;
proxy_pass http://127.0.0.1:8989/nzbdrone;
}
Best thing to do would be to debug the request to the server and see what the response your getting back is. You can do that by checking the Network tab in your browser’s developer tools (F12 in Chrome/FF on Windows).
I have an nginx reverse proxy, handling SSL in front of the Sonarr installation.
When I look at the develop tools, a call is made to https://my.hostname.com/sonarr/api/config/host trying to post (PUT), which fails because the response is empty. To emulate the request the browser is making, I could right click and select right click the Network analyzer under Develop Tools of my webbrowser and select “Copy as cURL”. This is what it does, which returns NULL (completely empty):