Core: Websocket Error

Created on 6 Sep 2020  路  3Comments  路  Source: home-assistant/core

Home Assistant release with the issue:
Home Assistant 0.114.4

Operating environment (HassOS/Generic):
Generic

System Health

arch | x86_64
-- | --
chassis | vm
dev | false
docker | true
docker_version | 19.03.12
hassio | true
host_os | Ubuntu 18.04.5 LTS
installation_type | Home Assistant Supervised
os_name | Linux
os_version | 4.15.0-115-generic
python_version | 3.8.3
supervisor | 240
timezone | America/New_York
version | 0.114.4
virtualenv | false

Supervisor logs:

20-09-06 04:38:52 INFO (MainThread) [supervisor.ingress] Load 41 ingress session
20-09-06 04:38:52 ERROR (MainThread) [supervisor.core] Detected unsupported OS: Ubuntu 18.04.5 LTS
20-09-06 04:38:52 INFO (MainThread) [__main__] Run Supervisor
20-09-06 04:38:52 INFO (MainThread) [supervisor.api] Start API on 172.30.32.2
20-09-06 04:38:52 CRITICAL (MainThread) [supervisor.core] System running in a unsupported environment!
20-09-06 04:38:53 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' start 0 add-ons
20-09-06 04:38:53 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SYSTEM' start 0 add-ons
20-09-06 04:38:53 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SERVICES' start 2 add-ons
20-09-06 04:38:53 INFO (SyncWorker_4) [supervisor.docker.addon] Start Docker add-on homeassistant/amd64-addon-samba with version 9.0
20-09-06 04:38:55 INFO (SyncWorker_5) [supervisor.docker.addon] Start Docker add-on hassioaddons/vscode-amd64 with version 2.4.0
20-09-06 04:39:00 INFO (SyncWorker_5) [supervisor.docker.interface] Start homeassistant
20-09-06 04:39:01 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
20-09-06 04:57:29 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
20-09-06 04:57:32 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.32.1:63010 ssl:default [Connection refused]
20-09-06 04:57:39 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
20-09-06 04:57:39 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.APPLICATION' start 5 add-ons
20-09-06 04:57:40 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.32.1:63010 ssl:default [Connection refused]
20-09-06 04:57:41 INFO (SyncWorker_0) [supervisor.docker.addon] Start Docker add-on sabeechen/hassio-google-drive-backup-amd64 with version 3.12
20-09-06 04:57:41 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.32.1:63010 ssl:default [Connection refused]
20-09-06 04:57:45 INFO (SyncWorker_1) [supervisor.docker.addon] Start Docker add-on hassioaddons/appdaemon3-amd64 with version 5.0.1
20-09-06 04:57:46 INFO (MainThread) [supervisor.api.security] /homeassistant/info access from cebe7a76_hassio_google_drive_backup
20-09-06 04:57:46 INFO (MainThread) [supervisor.api.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
20-09-06 04:57:47 INFO (MainThread) [supervisor.api.security] /snapshots access from cebe7a76_hassio_google_drive_backup
20-09-06 04:57:47 INFO (MainThread) [supervisor.api.security] /snapshots/d7093554/info access from cebe7a76_hassio_google_drive_backup
20-09-06 04:57:47 INFO (MainThread) [supervisor.api.security] /snapshots/b0362a17/info access from cebe7a76_hassio_google_drive_backup
20-09-06 04:57:47 INFO (MainThread) [supervisor.api.security] /snapshots/376e890b/info access from cebe7a76_hassio_google_drive_backup
20-09-06 04:57:47 INFO (MainThread) [supervisor.api.security] /snapshots/73182535/info access from cebe7a76_hassio_google_drive_backup
20-09-06 04:57:47 INFO (MainThread) [supervisor.api.security] /homeassistant/info access from cebe7a76_hassio_google_drive_backup
20-09-06 04:57:47 INFO (MainThread) [supervisor.api.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
20-09-06 04:57:47 INFO (MainThread) [supervisor.api.security] /snapshots/new/full access from cebe7a76_hassio_google_drive_backup
20-09-06 04:57:47 INFO (MainThread) [supervisor.snapshots] Full-Snapshot dba4cbcc start
20-09-06 04:57:47 INFO (MainThread) [supervisor.snapshots] Snapshot dba4cbcc store Add-ons
20-09-06 04:57:47 INFO (MainThread) [supervisor.addons.addon] Build snapshot for add-on core_samba
20-09-06 04:57:47 INFO (MainThread) [supervisor.addons.addon] Finish snapshot for addon core_samba
20-09-06 04:57:47 INFO (MainThread) [supervisor.addons.addon] Build snapshot for add-on cebe7a76_hassio_google_drive_backup
20-09-06 04:57:47 INFO (MainThread) [supervisor.addons.addon] Finish snapshot for addon cebe7a76_hassio_google_drive_backup
20-09-06 04:57:47 INFO (MainThread) [supervisor.addons.addon] Build snapshot for add-on a0d7b954_appdaemon3
20-09-06 04:57:47 INFO (MainThread) [supervisor.addons.addon] Finish snapshot for addon a0d7b954_appdaemon3
20-09-06 04:57:47 INFO (MainThread) [supervisor.addons.addon] Build snapshot for add-on a0d7b954_logviewer
20-09-06 04:57:47 INFO (MainThread) [supervisor.addons.addon] Finish snapshot for addon a0d7b954_logviewer
20-09-06 04:57:47 INFO (MainThread) [supervisor.addons.addon] Build snapshot for add-on core_configurator
20-09-06 04:57:47 INFO (MainThread) [supervisor.addons.addon] Finish snapshot for addon core_configurator
20-09-06 04:57:47 INFO (MainThread) [supervisor.addons.addon] Build snapshot for add-on 15ef4d2f_esphome
20-09-06 04:57:48 INFO (SyncWorker_0) [supervisor.docker.addon] Start Docker add-on hassioaddons/log-viewer-amd64 with version 0.9.0
20-09-06 04:57:51 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.32.1:63010 ssl:default [Connection refused]
20-09-06 04:57:51 INFO (SyncWorker_2) [supervisor.docker.addon] Start Docker add-on homeassistant/amd64-addon-configurator with version 5.0.0
20-09-06 04:57:51 WARNING (MainThread) [supervisor.addons.validate] Unknown options port
20-09-06 04:57:54 INFO (MainThread) [supervisor.api.security] /dns/info access from a0d7b954_logviewer
20-09-06 04:57:56 INFO (SyncWorker_6) [supervisor.docker.addon] Start Docker add-on esphome/esphome-hassio-amd64 with version 1.14.5
20-09-06 04:58:01 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled

Description of problem:

I'm not able to log in via external URL anymore. I'm proxying my traffic from DNS -> Cloudflare -> Traefik Proxy -> HomeAssistant Server (running in docker)

Nothing has changed on any of my upstream configs, but now I'm seeing an error being thrown in the console as well as Zipkin

Zipkin

--
error true
http.host [URL]
http.method GET
http.status_code 500
http.url /api/websocket

Console

core.abb95f18.js:1 WebSocket connection to 'wss://[URL]/api/websocket' failed: Error during WebSocket handshake: Unexpected response code: 500
e @ core.abb95f18.js:1
2lovelace:1 Uncaught (in promise) 1

Most helpful comment

I have the same issue, and managed to fix by rolling back Traefik to v2.2.8.

I believe the actual issue is addressed in https://github.com/containous/traefik/pull/7252 and released in v2.2.11 (which has not been pushed yet to Docker Hub, if anyone goes looking for it there).

All 3 comments

I have the same issue, and managed to fix by rolling back Traefik to v2.2.8.

I believe the actual issue is addressed in https://github.com/containous/traefik/pull/7252 and released in v2.2.11 (which has not been pushed yet to Docker Hub, if anyone goes looking for it there).

I have the same issue, and managed to fix by rolling back Traefik to v2.2.8.

I believe the actual issue is addressed in containous/traefik#7252 and released in v2.2.11 (which has not been pushed yet to Docker Hub, if anyone goes looking for it there).

Is that right? Let me try that and report back.

I was able to fix this issue by rolling back traefik to 2.2.8.

We're all set here. I have then set the version from latest to 2.2.8

Thanks for your help @tpansino

Was this page helpful?
0 / 5 - 0 ratings