Cannot upgrade hassio from 97.2

I have been unable to update HASSIO since version 97.2. Not 100% sure what is happening but seems to to be something with SSL possibly? Logs below…

19-12-20 19:10:15 INFO (MainThread) [hassio.homeassistant] Update Home Assistant to version 0.103.2
19-12-20 19:10:15 INFO (SyncWorker_3) [hassio.docker.interface] Update image homeassistant/raspberrypi3-homeassistant:0.97.2 to homeassistant/raspberrypi3-homeassistant:0.103.2
19-12-20 19:10:15 INFO (SyncWorker_3) [hassio.docker.interface] Pull image homeassistant/raspberrypi3-homeassistant tag 0.103.2.
19-12-20 19:10:52 INFO (MainThread) [hassio.api.security] /homeassistant/info access from core_ssh
19-12-20 19:23:36 INFO (SyncWorker_3) [hassio.docker.interface] Stop homeassistant application
19-12-20 19:24:39 INFO (SyncWorker_3) [hassio.docker.interface] Clean homeassistant application
19-12-20 19:24:43 INFO (SyncWorker_5) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi3-homeassistant with version 0.103.2
19-12-20 19:25:28 INFO (MainThread) [hassio.auth] Auth request from core_mosquitto for rrymar
19-12-20 19:25:28 ERROR (MainThread) [hassio.homeassistant] Error on call http://172.30.32.1:8123/api/: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused]
19-12-20 19:25:28 INFO (MainThread) [hassio.auth] Home Assistant not running, check cache
19-12-20 19:25:28 INFO (MainThread) [hassio.auth] Cache hit for XXXXX
19-12-20 19:34:46 WARNING (MainThread) [hassio.homeassistant] Don't wait anymore of Home Assistant startup!
19-12-20 19:34:46 CRITICAL (MainThread) [hassio.homeassistant] HomeAssistant update fails -> rollback!

Any ideas how to resolve this please?

Have you read the release notes between that version and 0.103.2, paying particular attention to breaking changes?

Do you happen to have api_password under http: in your config? If so, remove it.

Wow - fast reponse - No I dont have the api_password in the config.

I also should mention that I had originally tried to upgrade to the next nearest update to 97.2 some time ago but it did not work then either. Not had time to look at it since.

Using the “Check Home Assistant configuration” add on before attempting the update I get no errors. Oddly this add on seems to install the update temporarily to check the config and as far as I can tell this does work?

So the next things I tried:-

Check manually to see if there are any breaking changes between 0.97.2 and 0.98.0 that would affect my configuration - can’t see any.

Use the “Check Home Assistant configuration” add on to check my current config against version 0.98.0. No errors found.

Tried to update HASSIO to 0.98.0 - update fails.
Similar logs as shown before.

Any help appreciated.

There are dozens and dozens of breaking changes between 97.2 and 103.2.

You will need to read through each versions breaking changes and see if any apply to anything in your configuration and make the appropriate changes.

I have tried to update to 0.98.0 to reduce the amount or breaking changes that might effect my setup. Could not find any breaking changes in the release notes for 0.98.0 at all but the update still does not work.

The logs seem to state that it tries but fails then rolls back to 0.97.2

You seem to have a connection problem with the home assistant docker containers.

A couple of commands that might help:

Reinstalls (current version)

hassio homeassistant rebuild

Update supervisor to the latest version.

hassio supervisor update

Thanks for this. Unless I have done something wrong, this has ot cured the problem.
A list of what I have done so far:-

Reinstall current version
hassio homeassistant rebuild

Update supervisor (was up to date) anyway
hassio supervisor update

Try update to 103
hassio ha update

Try update to 98
hassio ha update --version=0.98.0

added the following to configuration yaml (from this page)

  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - 172.30.32.0/24

Disabled several addons

  • Configurator
  • Grafana
  • InfluxDB
  • LogViewer

Also noticed this in the system logs during a reboot

19-12-21 19:14:37 INFO (MainThread) [hassio.api] Start API on 172.30.32.2
19-12-21 19:14:37 INFO (MainThread) [hassio.addons] Phase 'initialize' start 0 add-ons
19-12-21 19:14:37 INFO (MainThread) [hassio.addons] Phase 'system' start 1 add-ons
19-12-21 19:14:37 WARNING (MainThread) [hassio.addons.validate] Unknown options quiet_logs
19-12-21 19:14:42 INFO (SyncWorker_5) [hassio.docker.addon] Start Docker add-on homeassistant/armv7-addon-mosquitto with version 5.1
19-12-21 19:14:45 INFO (MainThread) [hassio.services.modules.mqtt] Set core_mosquitto as service provider for mqtt
19-12-21 19:14:47 INFO (MainThread) [hassio.addons] Phase 'services' start 3 add-ons
19-12-21 19:14:47 WARNING (MainThread) [hassio.addons.validate] Unknown options name
19-12-21 19:14:47 WARNING (MainThread) [hassio.addons.validate] Unknown options guest
19-12-21 19:14:47 WARNING (MainThread) [hassio.addons.validate] Unknown options map
19-12-21 19:14:48 INFO (MainThread) [hassio.auth] Auth request from core_mosquitto for rrymar
19-12-21 19:14:48 ERROR (MainThread) [hassio.homeassistant] Error on call https://172.30.32.1:8123/api/: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused]

This suggests the API start on 172.30.32.2 but connection is being attempted on 172.30.32.1 if am iterpreting this right?

So - still no luck getting the system updated

It is working!

I uninstalled the MQTT component, updated to 98.0 - successfully.
Reinstalled and reconfigured the MQTT component and then upgraded to 103.2 via the CLI, again successfully.
I then upgraded successfully to 103.4 using the we interface - all successful.

No idea why this should solve the issue but it now works.