ESPHome 502 error

I’m trying to get ESPHome working on my HA setup, but am having issues.

ESPHome installed: 1.16.2
HA: core-2021.3.4
Supervisor: supervisor-2021.03.6

Initially tried with default config, open in sidebar takes forever, then shows 502: bad gateway. Open web UI from supervisor panel shows black screen constant.
Changed config to enable “leave_front_door_open”, tried again. Same results.

Biggest issue I think i’m having is, all the “guides” in the documentation, in the esphome.io, etc all show configs and options that aren’t synonymous with the 1.16.2 version (don’t know what version the examples are, don’t have experience with any other versions)

So… does anyone have a guide to setup on 1.16.2? Or could possibly walk me through how to get to the UI? Thanks.

My set up was as follows:

  1. install the addon.
  2. start the addon (no changes to the addon config).
  3. click the open web page button.

Server error 502 means the addon is still starting. Wait for a bit then refresh the page.

What hardware are you running Home Assistant on?

Yep, no config needed.

And there is a log tab in the addon, what did it say?

Docker in Ubuntu Server 20.04.

Log shows this:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Hass.io Add-on: ESPHome
 ESPHome Hass.io add-on for intelligently managing all your ESP8266/ESP32 devices.
-----------------------------------------------------------
 Add-on version: 1.16.2
 You are running the latest version of this add-on.
 System: Ubuntu 20.04.2 LTS  (amd64 / qemux86-64)
 Home Assistant Core: 2021.3.4
 Home Assistant Supervisor: 2021.03.6
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 10-requirements.sh: executing... 
[cont-init.d] 10-requirements.sh: exited 0.
[cont-init.d] 20-nginx.sh: executing... 
[cont-init.d] 20-nginx.sh: exited 0.
[cont-init.d] 30-esphome.sh: executing... 
[cont-init.d] 30-esphome.sh: exited 0.
[cont-init.d] 40-migrate.sh: executing... 
[cont-init.d] 40-migrate.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[11:44:37] INFO: Waiting for dashboard to come up...
[11:44:37] INFO: Starting ESPHome dashboard...
INFO Starting dashboard web server on unix socket /var/run/esphome.sock and configuration dir /config/esphome...
[11:44:38] INFO: Starting NGINX...

As of now, it’s been more than an hour, and same result. I think it’s getting hung up on something else, not “just wait it’ll happen” BUT, i’d imagine a log somewhere would show, but I can’t find it in a log, (or don’t know the log to look for)

After “Starting nginx” mine says

INFO 200 GET / (0.0.0.0) 30.57ms
INFO 101 GET /ace (0.0.0.0) 0.99ms
INFO Running command 'esphome --dashboard -q /config/esphome vscode --ace'

After opening the web map.

That is not hardware. I was trying to work out if you’re attempting to run home assistant on a pi zero or something.

Sorry, I’m running my docker instance on a Dell R710 server.

The docker container installation method does not support addons. https://www.home-assistant.io/installation/#compare-installation-methods

Yes, the container installation method doesn’t But it also doesn’t support the supervisor, or snapshots,… and my setup is running the supervisor, and I have snapshots… so something isn’t congruent here.

Yeah forget that. I had a brain fade. You are running a supervised install (also uses docker), albeit on an officially unsupported OS.

Hi, I have the same problem as the author of the topic. I don’t see the dashboard, in the logs:
[cont-init.d] 20-nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[12:07:53] INFO: Waiting for dashboard to come up …
[12:07:54] INFO: Starting ESPHome dashboard …
INFO Starting dashboard web server on unix socket /var/run/esphome.sock and configuration dir / config / esphome …
[12:07:54] INFO: Starting NGINX …

I use the setup from here:

Debian 11

Once “starting nginx” has been logged, is the web page still saying 502?

No, empty page

Ctrl-f5 do anything?