2021.7: A new entity, trigger IDs and script debugging

hi, seeking further assistance in my discoveries using Nginx (since yesterday…) I did post NGINX configuration - connection refused - #8 by Mariusthvdb, but we couldn’t work this out completely.

cut it short, during startup I see this logged frequently:

2021/07/19 23:02:51 [error] 222#222: *7441 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.1, server: mydomain.duckdns.org, request: "GET /api/websocket HTTP/1.1", upstream: "http://172.30.32.1:8123/api/websocket", host: "mydomain.duckdns.org:myport"

after startup it seems this is no longer happening.

@Burningstone suggested it might be

Could be that it’s because NGINX starts faster than HA.

which seems reasonable, because after initial startup there’s always a gap of about 2 minutes:

2021-07-19 23:20:05 INFO (MainThread) [homeassistant.setup] Setup of domain proximity took 0.3 seconds
2021-07-19 23:21:56 INFO (MainThread) [homeassistant.core] Starting Home Assistant

during which the system fully loads.

can I prevent these errors in Nginx log somehow. of course I already have the relevant address in the trusted_proxies:

  use_x_forwarded_for: true
  trusted_proxies:
#    - 127.0.0.1
    - 172.30.33.7
    - 172.30.32.0/24
#    - 172.30.33.0/24

thanks for having a look!

1 Like