#I'm Getting 502 Bad Gateway

1 messages ยท Page 1 of 1 (latest)

snow marten
#

Check your proxy logs, check HA's logs again

grizzled cometBOT
snow marten
#

Check that that integration is correctly set up for your proxy

timid cloak
#

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" "-"
snow marten
#

I'm 99% sure your HA (Core) log has the answer ๐Ÿ˜‰

timid cloak
#
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"
timid cloak
snow marten
#

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

timid cloak
#

I apologise for my lack of knowladge about Discord. What's up with the disable/enable pinging?

grizzled cometBOT
#

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).

snow marten
#

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 ๐Ÿ˜‰

timid cloak
grizzled cometBOT
#

Please use a code share site to share code or logs, for example:

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.

snow marten
#

You've checked that HA is at 192.168.2.234 though?

timid cloak
snow marten
#

And it still is? Because NGINX is saying it can't connect

#

That's the part you have to troubleshoot first

timid cloak
#

Yes. It is there.

snow marten
#

Please, don't share images of text

#

Text is text, share it as text... that's far easier

timid cloak
#

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

snow marten
#

Something is stopping the proxy from being able to reach HA

timid cloak
#

How is this possible if there has been no changes except for the recent update?

snow marten
#

Something changed, clearly

#

Software update on one/both of the computers could do it

timid cloak
#

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.