Closed GeistFighter closed 3 months ago
That's the error I got when I had a firewall issue.
Hello MaximilianKohler, thank you for your reply !
I've disabled my firewall :
but the problem is still there :
What's strange is that even if there are errors in the console, the site looks functional.
I think the problem is with the reverse proxy, because if you go directly via the IP address and port in the configuration it works without any errors in the console (I opened access to the port for the test, and set 0.0.0.0 in the listmonk configuration).
Do you have any ideas as to why the reverse proxy can causing these errors (I've tested the reverse proxy in 80 http and 443 https, and it makes no difference) ?
Hi, do you think this could be due to my Nginx reverse proxy configuration not respecting certain routes?
This is most likely an Nginx routing issue. A 502
is thrown when the reverse proxy is unable to reach a backend, where the backend is down or it's unreachable/misconfigured.
Where do you think the misconfiguration could have come from?
Version:
Description of the bug and steps to reproduce: Hi all,
I recently installed Listmonk on my server, in Binary mode, with the aim of putting the Listmonk server on a local server only and accessible via a Nginx reverse proxy.
But apparently I'm getting 502 Bad Gateway errors when I make changes in admin/settings, in the console I'm also getting errors, but in the GUI there aren't any, I'd like to know where this is coming from, have I made a mistake or not?
To explain my configurations better, I've put everything on a local infrastructure so that I can share them with you.
Screenshots:
I'll also put the request logs in which you'll find the answers in 502. newsletter.testing.local_Archive [24-06-01 16-31-49].log
Nginx error logs : 2024/06/01 16:26:22 [error] 86006#86006: 2 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.8.1, server: newsletter.testing.local, request: "GET /api/health HTTP/2.0", upstream: "http://127.0.0.1:16670/api/health", host: "newsletter.testing.local", referrer: "https://newsletter.testing.local/admin/settings" 2024/06/01 16:26:23 [error] 86006#86006: 2 upstream prematurely closed connection while reading response header from upstream, client: 192.168.8.1, server: newsletter.testing.local, request: "GET /api/events?type=error HTTP/2.0", upstream: "http://127.0.0.1:16670/api/events?type=error", host: "newsletter.testing.local", referrer: "https://newsletter.testing.local/admin/settings" 2024/06/01 16:26:27 [error] 86006#86006: 2 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.8.1, server: newsletter.testing.local, request: "GET /api/health HTTP/2.0", upstream: "http://127.0.0.1:16670/api/health", host: "newsletter.testing.local", referrer: "https://newsletter.testing.local/admin/settings" 2024/06/01 16:26:32 [error] 86006#86006: 2 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.8.1, server: newsletter.testing.local, request: "GET /api/health HTTP/2.0", upstream: "http://127.0.0.1:16670/api/health", host: "newsletter.testing.local", referrer: "https://newsletter.testing.local/admin/settings"
No error on the service :
My configuration
My config.toml :
The service :
My Nginx configuration :
Thank you in advance for your answers!