operating-system: Cannot update Error: 502: Bad Gateway
HassOS release with the issue:
currently running version 3.11 Supervisor logs:
20-04-01 22:43:23 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:43:23 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:43:23 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:43:28 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:43:28 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:43:28 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:43:33 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:43:33 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:43:33 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:43:38 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:43:38 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:43:38 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:43:41 INFO (MainThread) [supervisor.homeassistant] Detect a running Home Assistant instance
20-04-01 22:43:43 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:43:43 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:43:43 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
20-04-01 22:44:53 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository
20-04-01 22:44:53 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
20-04-01 22:44:57 ERROR (MainThread) [supervisor.utils.json] Can't read json from /data/addons/git/5f2994cf/repository.json: [Errno 2] No such file or directory: '/data/addons/git/5f2994cf/repository.json'
20-04-01 22:44:57 WARNING (MainThread) [supervisor.store.data] Can't read repository information from /data/addons/git/5f2994cf/repository.json
20-04-01 22:44:57 INFO (MainThread) [supervisor.store] Load add-ons from store: 65 all - 0 new - 0 remove
20-04-01 22:45:27 INFO (SyncWorker_15) [supervisor.docker.interface] Stop addon_a0d7b954_nodered application
20-04-01 22:45:27 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
20-04-01 22:45:41 INFO (SyncWorker_15) [supervisor.docker.interface] Clean addon_a0d7b954_nodered application
20-04-01 22:46:10 INFO (SyncWorker_12) [supervisor.docker.addon] Start Docker add-on hassioaddons/node-red-armv7 with version 6.1.4
20-04-01 22:46:11 INFO (MainThread) [supervisor.api.security] /host/info access from a0d7b954_nodered
20-04-01 22:46:14 INFO (MainThread) [supervisor.api.security] /dns/info access from a0d7b954_nodered
20-04-01 22:46:19 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.32.1:62289 ssl:None [Connection refused]
20-04-01 22:46:37 INFO (MainThread) [supervisor.auth] Auth request from core_mosquitto for mqttuser2
20-04-01 22:46:37 INFO (MainThread) [supervisor.auth] Success login from mqttuser2
20-04-01 22:46:41 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:46:41 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:46:41 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
20-04-01 22:48:49 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Received message 8:0 is not WSMsgType.TEXT
20-04-01 22:48:49 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
20-04-01 22:48:54 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:48:54 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:48:54 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
20-04-01 22:56:44 INFO (SyncWorker_11) [supervisor.docker.interface] Restart homeassistant/raspberrypi4-homeassistant
20-04-01 22:56:49 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Received message 8:1000 is not str
20-04-01 22:56:49 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
20-04-01 22:56:52 ERROR (MainThread) [supervisor.homeassistant] Error on call https://172.30.32.1:8123/api/services/homeassistant/restart: None
20-04-01 22:56:52 ERROR (MainThread) [supervisor.api.proxy] Error on API for request services/homeassistant/restart
20-04-01 22:56:54 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:56:54 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:56:54 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:56:59 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:56:59 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:56:59 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:04 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:04 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:57:04 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:09 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:09 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:57:09 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:14 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:14 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:57:14 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:19 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:19 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:57:19 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:24 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:24 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:57:24 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:29 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:29 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:57:29 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:34 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:34 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:57:34 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:38 INFO (MainThread) [supervisor.auth] Auth request from core_mosquitto for mqttuser
20-04-01 22:57:38 ERROR (MainThread) [supervisor.homeassistant] Error on call https://172.30.32.1:8123/api/: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused]
20-04-01 22:57:38 INFO (MainThread) [supervisor.auth] Home Assistant not running, check cache
20-04-01 22:57:38 INFO (MainThread) [supervisor.auth] Cache hit for mqttuser
20-04-01 22:57:39 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:39 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:57:39 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:44 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:44 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:57:44 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:49 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:49 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:57:49 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:54 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:54 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:57:54 ERROR (MainThread) [supervisor.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-04-01 22:57:58 INFO (MainThread) [supervisor.homeassistant] Detect a running Home Assistant instance
20-04-01 22:57:59 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-01 22:57:59 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-01 22:58:00 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
20-04-01 23:06:34 INFO (MainThread) [supervisor.hassos] Fetch OTA update from https://github.com/home-assistant/operating-system/releases/download/3.12/hassos_rpi4-3.12.raucb
20-04-01 23:16:34 WARNING (MainThread) [supervisor.hassos] Can't fetch versions from https://github.com/home-assistant/operating-system/releases/download/3.12/hassos_rpi4-3.12.raucb:
20-04-01 23:16:34 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished coro=<HassOS.update() done, defined at /usr/src/supervisor/supervisor/hassos.py:129> exception=HassOSUpdateError()>
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/hassos.py", line 140, in update
int_ota = await self._download_raucb(version)
File "/usr/src/supervisor/supervisor/hassos.py", line 92, in _download_raucb
raise HassOSUpdateError()
supervisor.exceptions.HassOSUpdateError
Journal logs:
Kernel logs:
Description of problem: it shows ERROR:502: Bad Gateway every time i try to update from 3.11
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 38 (3 by maintainers)
Same here with the new update from 4.10 to 4.11
There hasn’t been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The error reoccurs with the new update from 4.10 to 4.11 😦
Error: 502: Bad Gateway
It may be caused by a time-out due to the long download time (>10 min). I solved it by performing the update via a USB stick. Instructions here.
You’ll need to:
I have exactly the same problem now, I did not see this topic because of the name, and only now I saw a 502 error at my side too.
https://github.com/home-assistant/operating-system/issues/738
Wait, you’ve opened issue about that you can’t reach the update server but forgot to mention that you’re blocking external access in your initial post?