Unable to update Hassio even when using SSH

Hi, my current Hassio is v0.75 and I wanted to update to the latest version. The trouble is that the Hass.io page on the UI is empty. I googled and searched the forum and many people suggested a reboot and to SSH into the pi to reboot.

I tried a hard reboot by removing the power supply to the pi. When it reboots, the problem persists.
I tried to SSH into the pi.

I get this when I run hassio ha info
core-ssh:~# hassio ha info
{
“result”: “ok”,
“data”: {
“version”: “0.75.0”,
“last_version”: “0.80.3”,
“machine”: “raspberrypi3”,
“image”: “homeassistant/raspberrypi3-homeassistant”,
“custom”: false,
“boot”: true,
“port”: 8123,
“ssl”: false,
“watchdog”: true,
“wait_boot”: 600
}
}

When I run hassio ha update I get this
core-ssh:~# hassio ha update
Error decoding json invalid character ‘:’ after top-level value: 403: Forbiddencore-ssh:~#

When I try to be more specific with the command I get this
core-ssh:~# hassio ha update -o ‘version=0.80.3’
Error decoding json invalid character ‘:’ after top-level value: 403: Forbiddencore-ssh:~#

Even a restart on SSH does not work
core-ssh:~# hassio ha restart
Error decoding json invalid character ‘:’ after top-level value: 403: Forbiddencore-ssh:~#

I am at wits end here. Any help would be much appreciated.

Much thanks

do you get anymore info if you do

hassio -d ha update

Do you have any auth config or access control of any kind in your setup?

Have you checked the status of the supervisor and OS?

 hassio os info
 hassio su info

Hi Allan,

No I don’t have any form of access control on the setup.

This is what I get with:

core-ssh:~# hassio -d ha update
DEBUG [CmdHomeassistant]: action->‘update’, endpoint=‘update’, serverOverride->‘’, GET->‘false’, options->‘’, rawjson->‘false’, filter->‘’
DEBUG [ExecCommand]: basepath->‘homeassistant’, endpoint->‘update’, serverOverride->‘’, get->‘false’, Options->‘’, Filter->‘’, RawJSON->‘false’
DEBUG [GenerateURI]: basepath->‘homeassistant’, endpoint->‘update’, serverOverride->‘’
DEBUG [RestCall]: data->‘http://hassio/homeassistant/update’, GET->‘false’, payload->‘’
DEBUG [RestCall]: ResponseBody->‘403: Forbidden’
Error decoding json invalid character ‘:’ after top-level value: 403: Forbiddencore-ssh:~#

core-ssh:~# hassio os info
hassio: ‘os’ is not a hassio command. See ‘hassio --help’.core-ssh:~#

and finally

core-ssh:~# hassio su info

{
“result”: “ok”,
“data”: {
“version”: “138”,
“last_version”: “138”,
“channel”: “stable”,
“arch”: “armhf”,
“wait_boot”: 5,
“timezone”: “Australia/Perth”,
“addons”: [
{
“name”: “Node-RED”,
“slug”: “27e642c6_nodered”,
“description”: “Node-RED - (https://nodered.org/)”,
“state”: “started”,
“version”: “0.1.12”,
“installed”: “0.1.12”,
“repository”: “27e642c6”,
“icon”: false,
“logo”: false
},
{
“name”: “Mopidy”,
“slug”: “53caca22_mopidy”,
“description”: “mopidy music server”,
“state”: “started”,
“version”: “0.2.4”,
“installed”: “0.2.4”,
“repository”: “53caca22”,
“icon”: false,
“logo”: false
},
{
“name”: “Terminal”,
“slug”: “a0d7b954_terminal”,
“description”: “Terminal access to your Home Assistant instance via the web”,
“state”: “started”,
“version”: “2.5.0”,
“installed”: “2.5.0”,
“repository”: “a0d7b954”,
“icon”: false,
“logo”: false
},
{
“name”: “Samba share”,
“slug”: “core_samba”,
“description”: “Expose Hass.io folders with SMB/CIFS”,
“state”: “started”,
“version”: “6”,
“installed”: “4.1”,
“repository”: “core”,
“icon”: false,
“logo”: true
},
{
“name”: “SSH server”,
“slug”: “core_ssh”,
“description”: “Allows connections over SSH”,
“state”: “started”,
“version”: “4”,
“installed”: “3.7”,
“repository”: “core”,
“icon”: false,
“logo”: true
},
{
“name”: “MariaDB”,
“slug”: “core_mariadb”,
“description”: “An SQL database server”,
“state”: “started”,
“version”: “0.2”,
“installed”: “0.2”,
“repository”: “core”,
“icon”: false,
“logo”: true
},
{
“name”: “Mosquitto broker”,
“slug”: “core_mosquitto”,
“description”: “An Open Source MQTT broker”,
“state”: “started”,
“version”: “2.0”,
“installed”: “2.0”,
“repository”: “core”,
“icon”: false,
“logo”: true
}
],
“addons_repositories”: [
GitHub - hassio-addons/repository: Home Assistant Community Add-ons”,
https://github.com/notoriousbdg/hassio-addons”,
GitHub - bestlibre/hassio-addons
]
}
}

I guess that your install is pre HassOS maybe?

whats the output from just hassio with no args?

No. I install Hass.io from the start.

core-ssh:~# hassio
NAME:
hassio - Commandline tool to allow interation with hass.io

USAGE:
hassio [global options] command [command options] [arguments…]

VERSION:
1.3.1

AUTHOR:
Home-Assistant [email protected]

COMMANDS:
homeassistant, ha info, logs, check, restart, start, stop, update
supervisor, su info, logs, reload, update
host, ho reboot, shutdown, update
hardware, hw info, audio
network, ne info, options
snapshots, sn list, info, reload, new, restore, remove
addons, ad list, info, logo, changelog, logs, stats,
reload, start, stop, install, uninstall, update
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
–debug, -d Prints Debug information
–help, -h show help
–version, -v print the version

may be a bug between the supervisor and a version of HA that’s that old.
Maybe try the following after ssh’ing in:

curl -d '{"version": "0.80.3"}' http://hassio/homeassistant/update

As @allan also mentioned, that’ll be pre hassOS based hassio image. Recommend once you’ve figured out the upgrade and got access back to the hassio panel to do a backup, upgrade your base with the latest hassOS image on your sd and restore from those backups

Hi CBRHerms. this is what I get:

core-ssh:~# curl -d ‘{“version”: “0.80.3”}’ http://hassio/homeassistant/update
401: Unauthorizedcore-ssh:~#

the hassio command is out of date too

you have v 1.3.1 the current version I am on is 1.4

Any idea what I should change?

dont know if it will work ( may give you the same error)

hassio ad update -name core_ssh

I think thats the right syntax ( its almost 5am here so im a but groggy lol)

Silly question but you do have

hassio:

in your configuration.yaml?

Yes certainly do. That is the first thing I tried.

Thanks for staying up!

No. that does not work.

core-ssh:~# hassio ad update -name core_ssh
Error decoding json invalid character ‘:’ after top-level value: 403: Forbiddencore-ssh:~#

I am wondering if the hassio cli command is now too out of sync with the supervisor (as the supervisor auto updates) as I think I saw some mention of the new auth system is some notes for it.

So what should I try?

Will explain non of the commands working.
The curl command should work though. but, if cli on the hassio server doesn’t work it may work on a different machine that has curl installed.

what OS is the computer you’re currently working from?

its a bit of a hail mary but this may work…

cd /tmp
wget https://github.com/home-assistant/hassio-cli/releases/download/1.4.0/hassio_armhf
chmod +x hassio_armhf
./hassio_armhf os info

you could then try the cli upgrade

./hassio_armhf ha update

The hassio is installed onto a MicroSD card and inserted into the Pi3. This was prepared on a windows PC by following the instructions to create the MicroSD image.

Still no go.

core-ssh:/tmp# wget https://github.com/home-assistant/hassio-cli/releases/download/1.4.0/hassio_armhf
Connecting to github.com (192.30.255.112:443)
wget: error getting response: Connection reset by peer
core-ssh:/tmp#

if you have samba access to your configs you could download it on a windows PC and save it there.

its a bit odd that you cant get access to the github URL too though