#I'm Getting 502 Bad Gateway
1 messages ยท Page 1 of 1 (latest)
Check that that integration is correctly set up for your proxy
NginxProxyManager last log records:
[15/Jan/2024:10:38:48 +0100] - 502 502 - GET https ha.domain.com "/" [Client 37.47.149.115] [Length 154] [Gzip -] [Sent-to 192.168.2.234] "Mozilla/5.0 (Android 14; Mobile; rv:121.0) Gecko/121.0 Firefox/121.0" "-"
[15/Jan/2024:10:38:51 +0100] - 502 502 - GET https ha.domain.com "/" [Client 37.47.149.115] [Length 154] [Gzip -] [Sent-to 192.168.2.234] "Mozilla/5.0 (Android 14; Mobile; rv:121.0) Gecko/121.0 Firefox/121.0" "-"
I'm 99% sure your HA (Core) log has the answer ๐
2024/01/15 10:38:13 [error] 1747#1747: *9776 connect() failed (113: Host is unreachable) while connecting to upstream, client: 37.47.149.115, server: ha.domain.com, request: "GET /favicon.ico HTTP/2.0", upstream: "http://192.168.2.234:8123/favicon.ico", host: "ha.domain.com", referrer: "https://ha.domain.com/"
2024/01/15 10:38:38 [error] 1748#1748: *9785 connect() failed (113: Host is unreachable) while connecting to upstream, client: 37.47.149.115, server: ha.domain.com, request: "GET / HTTP/2.0", upstream: "http://192.168.2.234:8123/", host: "ha.domain.com"
2024/01/15 10:38:48 [error] 1748#1748: *9785 connect() failed (113: Host is unreachable) while connecting to upstream, client: 37.47.149.115, server: ha.domain.com, request: "GET / HTTP/2.0", upstream: "http://192.168.2.234:8123/", host: "ha.domain.com"
2024/01/15 10:38:51 [error] 1747#1747: *9789 connect() failed (113: Host is unreachable) while connecting to upstream, client: 37.47.149.115, server: ha.domain.com, request: "GET / HTTP/2.0", upstream: "http://192.168.2.234:8123/", host: "ha.domain.com"
OK. Let me have a look.
connect() failed (113: Host is unreachable) is interesting though
That may point to a deeper issue, such as HA not being on the IP listed there
I apologise for my lack of knowladge about Discord. What's up with the disable/enable pinging?
When using Discord's Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Use Shift + click on the Reply option, or click @ ON to @ OFF to stop this - on the right side of the compose bar.
You have to change this every time (thank the Discord devs for that).
that โ๏ธ
I'm not sat in this thread waiting for replies, so when the ping is on I get a notification ... that gets annoying fast
With that turned off then I still see you replied, but Discord isn't nagging me ๐
Got it. Thanks. I want to upload the log file from core but it's too big. What's the best way to do that so you can see it?
Please use a code share site to share code or logs, for example:
- https://dpaste.org/ (select YAML for the language, and consider picking a longer expiry)
- http://pastie.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
You've checked that HA is at 192.168.2.234 though?
Yes, it's always been at this IP.
Here is the log: https://dpaste.org/r5A2d#L26
And it still is? Because NGINX is saying it can't connect
That's the part you have to troubleshoot first
Please, don't share images of text
Text is text, share it as text... that's far easier
I meant to prove to that the IP returns web interface
It wasn't about the text ๐
in configuration.yaml I also have:
default_config:
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.2.5
ip_ban_enabled: true
login_attempts_threshold: 5
and at 192.168.2.5 is where I have Nginx Proxy Manager working
#1196388153041354803 message is you problem
Something is stopping the proxy from being able to reach HA
How is this possible if there has been no changes except for the recent update?
Thank you for your help. Everything runs as VMs or docker containers on Unraid, so maybe I should look into Unraid and it's networking setup.