Docker NGINX Proxy Manager 504 GW Timeout nur bei 1 Host
Hallo zusammen,
ich teste aktuell in eriner Testumgebung den Umzug diverser Dienste in Docker Container.
Das Setup sieht wie folgt aus:
Server mit installiertem Docker - 192.168.2.3
Docker Netzwerk 1 - 10.0.3.0/24
Docker Netzwerk 2 - 10.0.10.0/24
Alle bisher erstellten Container sind in Netzwerk 1 und funktionieren ohne Probleme(mittlerweile ;)).
Den NGINX Proxy Manager Container habe ich zusätzlich zu Netzwerk 1 mit Netzwerk 2 verbunden.
Wenn ich jetzt einen Container in Netzwerk 2 erstelle, kann ich diesen auch vom Proxy Manager anpingen.
Jedoch funktioniert die Weiterleitung über den Domainname nicht...
Habe für alle anderen auch schon Let's Encrypt Certificate erstellt und es geht wirklich alles...
Nur der in Netzwerk 2 befindliche Container funktioniert garnicht.. Ich erhalte nur einen 504 Error mit dem Hinweis Gateway Timeout.
Hierbei ist übrigens auch das Container Image vollkommen egal. Ich hatte anfangs zum testen einfach ein normales unkonfiguriertes NGINX image genommen. Später aber auch mal ein Image was ich bereits unter Netzwerk 1 zum laufen bekommen habe und egal welches es funktioniert nicht.
Allerdings nur per Domain kommt der Fehler. Über bspw. 192.168.2.3:1234 erreiche ich auch den Container in Netzwerk 2.
Die Host Einstellungen im Proxy Manager habe ich schon komplett durchgetestet. Anfangs alles deaktiviert gelassen und nur die Daten eingetragen. Später auch mit SSL & Co wie die anderen.
Leider brachte nichts eine Änderung...
Stoppe ich den Proxy Manager, entferne ihn aus Netzwerk 1, starte ihn (nur mit Netzwerk 2 verbunden) und füge ihn dann Netzwerk 1 wieder hinzu funktioniert nur der 1 Container aus Netz 2 und die aus Netz 1 nicht mehr...
hier noch die logs vom Proxy Manager:
Error.log:
Access.log:
Ich hab momentan keine weitere Idee was ich noch testen könnte... bitte helft mir ^^
MfG Scarpall
ich teste aktuell in eriner Testumgebung den Umzug diverser Dienste in Docker Container.
Das Setup sieht wie folgt aus:
Server mit installiertem Docker - 192.168.2.3
Docker Netzwerk 1 - 10.0.3.0/24
Docker Netzwerk 2 - 10.0.10.0/24
Alle bisher erstellten Container sind in Netzwerk 1 und funktionieren ohne Probleme(mittlerweile ;)).
Den NGINX Proxy Manager Container habe ich zusätzlich zu Netzwerk 1 mit Netzwerk 2 verbunden.
Wenn ich jetzt einen Container in Netzwerk 2 erstelle, kann ich diesen auch vom Proxy Manager anpingen.
Jedoch funktioniert die Weiterleitung über den Domainname nicht...
Habe für alle anderen auch schon Let's Encrypt Certificate erstellt und es geht wirklich alles...
Nur der in Netzwerk 2 befindliche Container funktioniert garnicht.. Ich erhalte nur einen 504 Error mit dem Hinweis Gateway Timeout.
Hierbei ist übrigens auch das Container Image vollkommen egal. Ich hatte anfangs zum testen einfach ein normales unkonfiguriertes NGINX image genommen. Später aber auch mal ein Image was ich bereits unter Netzwerk 1 zum laufen bekommen habe und egal welches es funktioniert nicht.
Allerdings nur per Domain kommt der Fehler. Über bspw. 192.168.2.3:1234 erreiche ich auch den Container in Netzwerk 2.
Die Host Einstellungen im Proxy Manager habe ich schon komplett durchgetestet. Anfangs alles deaktiviert gelassen und nur die Daten eingetragen. Später auch mit SSL & Co wie die anderen.
Leider brachte nichts eine Änderung...
Stoppe ich den Proxy Manager, entferne ihn aus Netzwerk 1, starte ihn (nur mit Netzwerk 2 verbunden) und füge ihn dann Netzwerk 1 wieder hinzu funktioniert nur der 1 Container aus Netz 2 und die aus Netz 1 nicht mehr...
hier noch die logs vom Proxy Manager:
Error.log:
2022/06/08 15:34:47 [error] 9211#9211: *7482 upstream timed out (110: Operation timed out) while connecting to upstream, client: [CLIENT-IP], server: test.mydomain.com, request: "GET / HTTP/1.1", upstream: "http://192.168.2.3:1234/", host: "test.mydomain.com"
2022/06/08 15:36:17 [error] 9211#9211: *7482 upstream timed out (110: Operation timed out) while connecting to upstream, client: [CLIENT-IP], server: test.mydomain.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.2.3:1234/favicon.ico", host: "test.mydomain.com", referrer: "http://test.mydomain.com/"
2022/06/08 15:40:57 [error] 9220#9220: *7522 connect() failed (111: Connection refused) while connecting to upstream, client: [CLIENT-IP], server: test.mydomain.com, request: "GET / HTTP/1.1", upstream: "http://10.0.10.2:1234/", host: "test.mydomain.com"
2022/06/08 15:40:57 [error] 9220#9220: *7522 connect() failed (111: Connection refused) while connecting to upstream, client: [CLIENT-IP], server: test.mydomain.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://10.0.10.2:1234/favicon.ico", host: "test.mydomain.com", referrer: "http://test.mydomain.com/"
2022/06/08 15:40:59 [error] 9220#9220: *7522 connect() failed (111: Connection refused) while connecting to upstream, client: [CLIENT-IP], server: test.mydomain.com, request: "GET / HTTP/1.1", upstream: "http://10.0.10.2:1234/", host: "test.mydomain.com"
2022/06/08 15:41:00 [error] 9220#9220: *7522 connect() failed (111: Connection refused) while connecting to upstream, client: [CLIENT-IP], server: test.mydomain.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://10.0.10.2:1234/favicon.ico", host: "test.mydomain.com", referrer: "http://test.mydomain.com/"
2022/06/08 15:43:14 [error] 9229#9229: *7533 upstream timed out (110: Operation timed out) while connecting to upstream, client: [CLIENT-IP], server: test.mydomain.com, request: "GET / HTTP/1.1", upstream: "http://192.168.2.3:1234/", host: "test.mydomain.com"
2022/06/08 16:12:10 [error] 9229#9229: *7684 upstream timed out (110: Operation timed out) while connecting to upstream, client: [CLIENT-IP], server: test.mydomain.com, request: "GET / HTTP/1.1", upstream: "http://192.168.2.3:1234/", host: "test.mydomain.com"
2022/06/11 17:23:25 [error] 13267#13267: *10466 upstream timed out (110: Operation timed out) while connecting to upstream, client: [CLIENT-IP], server: test.mydomain.com, request: "GET / HTTP/2.0", upstream: "http://192.168.2.3:1234/", host: "test.mydomain.com", referrer: "http://192.168.2.3:81/"
2022/06/11 17:24:55 [error] 13267#13267: *10466 upstream timed out (110: Operation timed out) while connecting to upstream, client: [CLIENT-IP], server: test.mydomain.com, request: "GET /favicon.ico HTTP/2.0", upstream: "http://192.168.2.3:1234/favicon.ico", host: "test.mydomain.com", referrer: "https://test.mydomain.com/"
Access.log:
[08/Jun/2022:15:34:47 +0000] - 504 504 - GET http test.mydomain.com "/" [Client [CLIENT-IP]] [Length 164] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "-"
[08/Jun/2022:15:36:17 +0000] - 504 504 - GET http test.mydomain.com "/favicon.ico" [Client [CLIENT-IP]] [Length 164] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "http://test.mydomain.com/"
[08/Jun/2022:15:40:57 +0000] - 502 502 - GET http test.mydomain.com "/" [Client [CLIENT-IP]] [Length 154] [Gzip -] [Sent-to 10.0.10.2] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "-"
[08/Jun/2022:15:40:57 +0000] - 502 502 - GET http test.mydomain.com "/favicon.ico" [Client [CLIENT-IP]] [Length 154] [Gzip -] [Sent-to 10.0.10.2] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "http://test.mydomain.com/"
[08/Jun/2022:15:40:59 +0000] - 502 502 - GET http test.mydomain.com "/" [Client [CLIENT-IP]] [Length 154] [Gzip -] [Sent-to 10.0.10.2] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "-"
[08/Jun/2022:15:41:00 +0000] - 502 502 - GET http test.mydomain.com "/favicon.ico" [Client [CLIENT-IP]] [Length 154] [Gzip -] [Sent-to 10.0.10.2] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "http://test.mydomain.com/"
[08/Jun/2022:15:43:14 +0000] - 504 504 - GET http test.mydomain.com "/" [Client [CLIENT-IP]] [Length 164] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "-"
[08/Jun/2022:15:43:14 +0000] - - 499 - GET http test.mydomain.com "/favicon.ico" [Client [CLIENT-IP]] [Length 0] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "http://test.mydomain.com/"
[08/Jun/2022:16:12:10 +0000] - 504 504 - GET http test.mydomain.com "/" [Client [CLIENT-IP]] [Length 164] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "-"
[08/Jun/2022:16:12:10 +0000] - - 499 - GET http test.mydomain.com "/favicon.ico" [Client [CLIENT-IP]] [Length 0] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "http://test.mydomain.com/"
[11/Jun/2022:17:22:48 +0000] - - 301 - GET http test.mydomain.com "/" [Client [IP]] [Length 166] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (iPhone; CPU iPhone OS 15_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1" "-"
[11/Jun/2022:17:22:52 +0000] - - 499 - GET https test.mydomain.com "/" [Client [IP]] [Length 0] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (iPhone; CPU iPhone OS 15_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1" "-"
[11/Jun/2022:17:22:53 +0000] - - 499 - GET https test.mydomain.com "/.git/config" [Client [IP]] [Length 0] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (Linux; Android 8.0.0; HTC U11 plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.111 Mobile Safari/537.36" "-"
[11/Jun/2022:17:22:53 +0000] - - 301 - GET http test.mydomain.com "/.git/config" [Client [IP]] [Length 166] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1" "-"
[11/Jun/2022:17:23:17 +0000] - - 301 - GET http test.mydomain.com "/" [Client [IP]] [Length 166] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.71 Safari/537.36" "-"
[11/Jun/2022:17:23:25 +0000] - 504 504 - GET https test.mydomain.com "/" [Client [CLIENT-IP]] [Length 164] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "http://192.168.2.3:81/"
[11/Jun/2022:17:23:44 +0000] - - 499 - GET https test.mydomain.com "/" [Client [IP]] [Length 0] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.71 Safari/537.36" "-"
[11/Jun/2022:17:24:55 +0000] - 504 504 - GET https test.mydomain.com "/favicon.ico" [Client [CLIENT-IP]] [Length 164] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" "https://test.mydomain.com/"
[11/Jun/2022:17:25:09 +0000] - - 499 - GET https test.mydomain.com "/" [Client [IP]] [Length 0] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0" "-"
[11/Jun/2022:17:25:14 +0000] - - 499 - GET https test.mydomain.com "/" [Client [IP]] [Length 0] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0" "-"
[11/Jun/2022:17:25:16 +0000] - - 499 - GET https test.mydomain.com "/" [Client [IP]] [Length 0] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0" "-"
[11/Jun/2022:17:25:17 +0000] - - 499 - GET https test.mydomain.com "/" [Client [IP]] [Length 0] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0" "-"
[11/Jun/2022:17:25:19 +0000] - - 499 - GET https test.mydomain.com "/" [Client [IP]] [Length 0] [Gzip -] [Sent-to 192.168.2.3] "Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0" "-"
Ich hab momentan keine weitere Idee was ich noch testen könnte... bitte helft mir ^^
MfG Scarpall
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-Key: 3051026632
Url: https://administrator.de/contentid/3051026632
Ausgedruckt am: 28.03.2024 um 17:03 Uhr
3 Kommentare
Neuester Kommentar
Moin,
Gruß.
Dani
Den NGINX Proxy Manager Container habe ich zusätzlich zu Netzwerk 1 mit Netzwerk 2 verbunden.
Lass mal die Konfigurationsausschnitt dazu sehen.Nur der in Container 2 befindliche Container funktioniert garnicht..
Du meinst "Netzwerk befindliche...", oder? Wenn ich jetzt einen Container in Netzwerk 2 erstelle, kann ich diesen auch vom Proxy Manager anpingen.
Kannst du vom Container im N2 auch den NPM pingen?Stoppe ich den Proxy Manager, entferne ihn aus Netzwerk 1, starte ihn und füge dann Netzwerk 1 wieder hinzu funktioniert nur der 1 Container aus Netz 2 und die aus Netz 1 nicht mehr...
Du meinst sicherlich "...füge dann Netzwerk 2 wieder hinzu"... sonst macht das keinen Sinn.Gruß.
Dani