#1
Heya,

Seem to be having a few issues deleting things in Radarr and Sonarr via Nginx.

If I use local connection switching, it works perfectly, but remotely via Nginx, it doesn't seem to allow me to delete things, coming back (after timeout) with "couldn't remove series, try again. Error: null".

I do have basic http authentication enabled within my nginx for both radarr and sonarr

I can add things, browse, download with no issues, but not delete or unmonitor.

Unsure where to start troubleshooting in this particular case.


Nginx access log states the following:

Code: Select all

<IP Address> - - [26/Mar/2019:11:42:29 +0000] "GET /api/series HTTP/1.1" 401 188 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:29 +0000] "GET /api/queue HTTP/1.1" 200 33 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:29 +0000] "GET /api/wanted/missing?page=1&pageSize=200&sortKey=airDateUtc&sortDir=desc&filterKey=monitored&filterValue=true HTTP/1.1" 200 1354 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:29 +0000] "GET /api/calendar?start=2019-03-26&end=2019-04-02 HTTP/1.1" 200 9634 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:30 +0000] "GET /api/series HTTP/1.1" 200 30523 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:39 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:40 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:41 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:42 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:43 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:44 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:45 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:46 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:47 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:48 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:50 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:51 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:52 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:53 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
<IP Address> - <user> [26/Mar/2019:11:42:54 +0000] "DELETE /api/series/130?deleteFiles=false HTTP/1.1" 444 0 "-" "-"
#2
OK, having a deeper look, looks like the issue is caused by the following lines in my nginx site config:

if ($request_method !~ ^(GET|HEAD|POST)$) {
return 444;
}

I've modified this to:

if ($request_method !~ ^(GET|HEAD|POST|DELETE|PUT)$) {

and all seems to work as expected now.

Cheers!
cron