我正在尝试运行一个名为 Janitorr 的 docker compose。https

我与作者有一个故障线程,似乎在我的服务器端发生了一些重定向。https
我真的不知道我需要做什么。

我通过 Swizzin 运行 nginx。我对 nginx 的了解几乎为零。

这是 nginx sonarr.conf

location /sonarr {
proxy_pass http://127.0.0.1:8989;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
auth_basic "What's the password?";
auth_basic_user_file /etc/htpasswd.d/htpasswd.rickardfransson;
}
# Allow the API External Access via NGINX
location /sonarr/api {
    auth_basic off;
    proxy_pass http://127.0.0.1:8989;
}

# Allow Calendar Feed External Access via NGINX

location ^~ /sonarr/feed/calendar {
    auth_basic off;
    proxy_pass http://127.0.0.1:8989;
}

编辑:这是我启动 Janitorr 并找到时间戳后的访问日志。在 11:13 时,程序触发 PUT 请求,然后停止

.127.0.0.1 - rickardfransson [29/Sep/2024:11:13:18 +0200] "GET /qbittorrent/api/v2/torrents/info?category=tv-sonarr HTTP/2.0" 200 5240 "-" "Sonarr/4.0>
172.20.0.3 - - [29/Sep/2024:11:13:19 +0200] "GET /emby/sessions HTTP/1.1" 200 4085 "-" "axios/1.6.7"
78.46.88.19 - - [29/Sep/2024:11:13:20 +0200] "GET /radarr4k/api/v3/system/status HTTP/1.1" 200 433 "-" "Go-http-client/1.1"
78.46.88.19 - - [29/Sep/2024:11:13:20 +0200] "GET /sonarr/api/v3/system/status HTTP/1.1" 200 425 "-" "Go-http-client/1.1"
172.20.0.3 - - [29/Sep/2024:11:13:20 +0200] "GET /emby/sessions HTTP/1.1" 200 4085 "-" "axios/1.6.7"
172.20.0.3 - - [29/Sep/2024:11:13:21 +0200] "GET /emby/sessions HTTP/1.1" 200 4084 "-" "axios/1.6.7"
172.20.0.3 - - [29/Sep/2024:11:13:22 +0200] "GET /emby/sessions HTTP/1.1" 200 4085 "-" "axios/1.6.7"
172.20.0.3 - - [29/Sep/2024:11:13:23 +0200] "GET /emby/sessions HTTP/1.1" 200 4084 "-" "axios/1.6.7"
172.20.0.3 - - [29/Sep/2024:11:13:24 +0200] "GET /emby/sessions HTTP/1.1" 200 4084 "-" "axios/1.6.7"
172.20.0.3 - - [29/Sep/2024:11:13:25 +0200] "GET /emby/sessions HTTP/1.1" 200 4084 "-" "axios/1.6.7"
172.20.0.3 - - [29/Sep/2024:11:13:26 +0200] "GET /emby/sessions HTTP/1.1" 200 4082 "-" "axios/1.6.7"
172.20.0.3 - - [29/Sep/2024:11:13:27 +0200] "GET /emby/sessions HTTP/1.1" 200 4081 "-" "axios/1.6.7"

这是同一时间戳附近的错误日志

2024/09/29 11:10:05 [error] 3135544#3135544: r11.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, re>
2024/09/29 11:12:30 [error] 3135543#3135543: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53
2024/09/29 11:12:30 [error] 3135543#3135543: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53
2024/09/29 11:12:35 [error] 3135543#3135543: r11.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, re>
2024/09/29 11:18:10 [error] 3135543#3135543: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.1:53

以下是 Janitorr 的日志。我们看到程序进入了取消监控阶段并发送了一个 PUT 请求。该请求被重定向并且程序停止运行。

2024-09-29T09:13:24.888Z  INFO 1 --- [   scheduling-1] c.g.s.j.s.sonarr.SonarrRestService       : Unmonitoring Monarch: Legacy of Mons                ters - season 1
2024-09-29T09:13:26.175Z ERROR 1 --- [   scheduling-1] o.s.s.s.TaskUtils$LoggingErrorHandler    : Unexpected error occurred in schedul                ed task

feign.RetryableException: cannot retry due to redirection, in streaming mode executing PUT http://127.0.0.1:8989/api/v3/series/54

10

  • 什么不起作用?


    – 

  • 据我从作者那里了解到,有些东西会重定向程序中的 PUT 调用。程序的作者谈到,可能是从 http 到 https 的重定向导致的。我现在知道 Sonarr 位于 http 后面,并且重定向直到 https 发生。但是,我真的不知道,这就是我在这里寻求帮助的原因


    – 


  • 该程序旨在删除/取消监控 *arrs。DELETE 函数似乎可以工作,但一旦程序达到取消监控(PUT 请求),它就会因重定向错误而停止。程序中的日志告诉我发生了重定向并且程序停止了。sonarr 中的日志还告诉我,在程序即将取消监控的那一刻发生了重定向。就我的基本知识而言,似乎在我的服务器端发生了一些事情,重定向了 PUT 调用…


    – 

  • 哪个 URL 会导致重定向?您是否尝试使用 重现该情况curl


    – 

  • 我没有在程序配置中使用 URL。试过了,但根本不起作用。该程序旨在通过 ipadress 和端口连接到 *arrs。像这样:。否则,*arrs 完全可以正常工作。只是这个程序与 PUT 调用不兼容


    – 

0