esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
292 stars 36 forks source link

ESPHome Dashboard - Logs button does nothing when connecting through reverse-proxy addon #2219

Closed mjoshd closed 3 years ago

mjoshd commented 3 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.):

System Health

version core-2021.6.6
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.8.9
os_name Linux
os_version 5.10.45
arch x86_64
timezone America/Detroit
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 4712 Installed Version | 1.13.2 Stage | running Available Repositories | 920 Installed Repositories | 25
AccuWeather can_reach_server | ok -- | -- remaining_requests | 19
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | July 16, 2021, 8:00 PM relayer_connected | true remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | true can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 6.1 -- | -- update_channel | stable supervisor_version | supervisor-2021.06.8 docker_version | 20.10.6 disk_total | 109.3 GB disk_used | 17.4 GB healthy | true supported | true board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | Visual Studio Code (3.5.0), Samba share (9.5.1), WireGuard (0.5.1), Node-RED (9.2.0), phpMyAdmin (0.4.2), AppDaemon 4 (0.6.2), Traccar (0.13.0), Mosquitto broker (6.0.1), Home Assistant Google Drive Backup (0.104.3), Portainer (1.5.1), deCONZ (6.9.0), AdGuard Home (4.1.6), MariaDB (2.4.0), SSH & Web Terminal (9.0.0), RPC Shutdown (2.2), ESPHome (1.19.4), Duck DNS (1.12.5), NGINX Home Assistant SSL proxy (3.0.1), Check Home Assistant configuration (3.7.1), TasmoBackup (1.04.13), Samba Backup (4.5.0), Zigbee2mqtt (1.20.0-1)
Lovelace dashboards | 1 -- | -- resources | 17 views | 16 mode | storage

ESP (ESP32/ESP8266, Board/Sonoff):

All devices are affected ESPHome version (latest production, beta, dev branch)

1.19.4

Affected component:

https://esphome.io/guides/getting_started_hassio.html#dashboard-interface

Description of problem:

Problem occurs in the ESPHome Dashboard.

Problem started occuring after the recent ESPHome visual/functional redesign as shown in the linked video - https://www.youtube.com/watch?v=du38Oir_xp8

When connecting to the Dashboard via either of the provided reverse-proxy addons (NGINX Home Assistant SSL proxy or Nginx Proxy Manager) then the Logs button does not work.

When using either the Nabu Casa URL or my LAN IP then the Logs button works as expected.

Problem-relevant YAML-configuration entries:

N/A

Logs (if applicable):

N/A

Additional information and things you've tried:

I have tried connecting to the ESPHome addon multiple ways and found that only the Logs button is affected; Edit, Validate, and Install all still work as expected.

When connecting via LAN IP: all 4 buttons work Nabu Casa URL: all 4 buttons work Duck DNS through NGINX Home Assistant SSL proxy addon: Logs button fails, other 3 buttons work Duck DNS through Nginx Proxy Manager addon: Logs button fails, other 3 buttons work

While connecting through the reverse-proxy, and using the Chrome Developer Console, I found and error occurs when clicking the Logs button though I have no idea what it means:

github_espHome_logsButton_reverseProxy

mjoshd commented 3 years ago

Sorry, I didn't realize there was a separate issue queue for the Dashboard and someone had already logged this problem in there: https://github.com/esphome/dashboard/issues/35#issuecomment-872540831