Falha upgrade do HA

Boas,

Tenho tido o meu HA a funcionar sem problemas e nos últimos dias está a surpreender-me porque faz rollback quando tento actualizar da versão 0.107 para 0.108.

A minha configuração é utiliza o Supervisor 217 e Ubuntu 18.04.3 LTS

O que será que o log me está a dizer mas eu não entendo??

20-04-14 20:29:12 INFO (MainThread) [supervisor.homeassistant] Update Home Assistant to version 0.108.4
20-04-14 20:29:12 INFO (SyncWorker_6) [supervisor.docker.interface] Update image homeassistant/qemux86-64-homeassistant:0.107.7 to homeassistant/qemux86-64-homeassistant:0.108.4
20-04-14 20:29:12 INFO (SyncWorker_6) [supervisor.docker.interface] Pull image homeassistant/qemux86-64-homeassistant tag 0.108.4.
20-04-14 20:29:16 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-14 20:29:16 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-14 20:29:16 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
20-04-14 20:30:12 ERROR (MainThread) [supervisor.utils] Can t execute update while a task is in progress
20-04-14 20:30:44 INFO (SyncWorker_6) [supervisor.docker.interface] Stop homeassistant application
20-04-14 20:30:44 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Received message 8:1000 is not str
20-04-14 20:30:44 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
20-04-14 20:30:44 ERROR (MainThread) [supervisor.homeassistant] Error on call https://172.30.32.1:8123/api/states/binary_sensor.snapshots_stale: None
20-04-14 20:30:44 ERROR (MainThread) [supervisor.api.proxy] Error on API for request states/binary_sensor.snapshots_stale
20-04-14 20:30:49 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-14 20:30:49 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-14 20:30: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-14 20:30:50 INFO (SyncWorker_6) [supervisor.docker.interface] Clean homeassistant application
20-04-14 20:30:51 INFO (MainThread) [supervisor.homeassistant] Update pulse/client.config: /data/tmp/homeassistant_pulse
20-04-14 20:30:51 INFO (SyncWorker_10) [supervisor.docker.homeassistant] Start homeassistant homeassistant/qemux86-64-homeassistant with version 0.108.4
20-04-14 20:30:54 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-14 20:30:54 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-14 20:30: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-14 20:30:56 INFO (MainThread) [supervisor.homeassistant] Home Assistant pip installation in progress
20-04-14 20:30:59 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-14 20:30:59 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-14 20:30: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-14 20:31:04 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-14 20:31:04 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-14 20:31: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-14 20:31:06 INFO (MainThread) [supervisor.homeassistant] Home Assistant pip installation done
20-04-14 20:31:09 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-14 20:31:09 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-14 20:31: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-14 20:31:11 ERROR (MainThread) [supervisor.homeassistant] Home Assistant has crashed!
20-04-14 20:31:11 CRITICAL (MainThread) [supervisor.homeassistant] HomeAssistant update fails -> rollback!
20-04-14 20:31:11 INFO (MainThread) [supervisor.homeassistant] Update Home Assistant to version 0.107.7

Obrigado

Sim, o log está a dizer, basta ler.
20-04-14 20:30:12 ERROR (MainThread) [supervisor.utils] Can t execute update while a task is in progress

Certifica-te que tens espaço livre em disco e reinicia a máquina onde tens o HA instalado.

Obrigado @j_assuncao
Já reiniciei a VM e, de acordo com o systemmonitor, tenho 60% de espaço ocupado em disco.

Depois de actualizar o Ubuntu e fazer shutdown e rearrancar com a NUC o erro Can t execute update while a task is in progress desapareceu mas continua a falhar a upgrade.

20-04-16 20:50:57 INFO (MainThread) [supervisor.homeassistant] Update Home Assistant to version 0.108.5
20-04-16 20:50:57 INFO (SyncWorker_17) [supervisor.docker.interface] Update image homeassistant/qemux86-64-homeassistant:0.107.7 to homeassistant/qemux86-64-homeassistant:0.108.5
20-04-16 20:50:57 INFO (SyncWorker_17) [supervisor.docker.interface] Pull image homeassistant/qemux86-64-homeassistant tag 0.108.5.
20-04-16 20:52:31 INFO (SyncWorker_17) [supervisor.docker.interface] Stop homeassistant application
20-04-16 20:52:31 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API error: Received message 8:1000 is not str
20-04-16 20:52:31 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API connection is closed
20-04-16 20:52:34 ERROR (MainThread) [supervisor.homeassistant] Error on call https://172.30.32.1:8123/api/states/binary_sensor.snapshots_stale: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused]
20-04-16 20:52:34 ERROR (MainThread) [supervisor.api.proxy] Error on API for request states/binary_sensor.snapshots_stale
20-04-16 20:52:36 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-16 20:52:36 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-16 20:52:36 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-16 20:52:38 INFO (SyncWorker_17) [supervisor.docker.interface] Clean homeassistant application
20-04-16 20:52:38 INFO (MainThread) [supervisor.homeassistant] Update pulse/client.config: /data/tmp/homeassistant_pulse
20-04-16 20:52:39 INFO (SyncWorker_2) [supervisor.docker.homeassistant] Start homeassistant homeassistant/qemux86-64-homeassistant with version 0.108.5
20-04-16 20:52:41 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-16 20:52:41 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-16 20:52:41 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-16 20:52:44 INFO (MainThread) [supervisor.homeassistant] Home Assistant pip installation in progress
20-04-16 20:52:46 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-16 20:52:46 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-16 20:52:46 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-16 20:52:51 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-16 20:52:51 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-16 20:52:51 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-16 20:52:54 INFO (MainThread) [supervisor.homeassistant] Home Assistant pip installation done
20-04-16 20:52:56 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
20-04-16 20:52:56 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
20-04-16 20:52:56 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-16 20:52:59 ERROR (MainThread) [supervisor.homeassistant] Home Assistant has crashed!
20-04-16 20:52:59 CRITICAL (MainThread) [supervisor.homeassistant] HomeAssistant update fails -> rollback!

Sendo o endereço do meu HA 192.168.1.101, serão normal as fachas de acesso a 172.30.32.1:8123 ?

Obrigado

Esses endereços são dos containers dos addons. Tens primeiro de corrigir esses erros de SSL que tens senão duvido que consigas fazer update.

Obrigado @j_assuncao
Tens ideia como é que isto se corrige? Desintalando e fazendo restore?

@j_assuncao, no portainter aparece isto
image

Será que assim se vê melhor?
image

O problema estará na configuração de um addon tens de procurar e ver qual está mal configurado. E não se vê nada nas imagens.


(vamos ver se se vê melhor)

Estão todos os containers com nesta network

Problema resolvido com a versão 0.109


Copyright © 2017-2020. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade