Skip to content

Hass.io Installation Fails #442

@ShortPutt

Description

@ShortPutt

Ran Native installs Hass.io installation fails on a new Raspian 10.11 (buster) installation on a Raspberry Pi 4 Model B.
I am using the 10.11 buster version of Raspian because the xrdp does not work on bullseye.
Although the script says it was successful in installing Home Assistant, it actually fails to install properly as evidenced by running the following after exiting the menu:
sudo su
root@raspberrypi:/home/pi/IOTstack# systemctl status hassio-supervisor.service
Unit hassio-supervisor.service could not be found.
root@raspberrypi:/home/pi/IOTstack# systemctl status hassio-apparmor.service
Unit hassio-apparmor.service could not be found.

Additionally docker.service also fails to run - and here is the first clue
/etc/docker/daemon.json contains "404 Not Found"
deleting /etc/docker/daemon.json and rebooting gets docker.service running again, but home assistant still fails w/ the above

So I traced through the code and found the following:
IOTstack/menu.sh calls IOTstack/scripts/menu_main.py
IOTstack/scripts/menu_main.py calls snative_installs.py
IOTstack/scripts/native_installs.py calls IOTstack/.native/hassio_supervisor.sh
IOTstack/.native/hassio_supervisor.sh contains:
curl -sL "https://raw.githubusercontent.com/Kanga-Who/home-assistant/master/supervised-installer.sh" | sudo bash -s -- -m $hassio_machine
https://raw.githubusercontent.com/Kanga-Who/home-assistant/master/supervised-installer.sh" contains:
URL_RAW_BASE="https://raw.githubusercontent.com/home-assistant/supervised-installer/master/files"
which resolves to 404 Not Found

Here is the offending code:

URL_RAW_BASE="https://raw.githubusercontent.com/home-assistant/supervised-installer/master/files"
URL_VERSION="https://version.home-assistant.io/stable.json"
URL_BIN_APPARMOR="${URL_RAW_BASE}/hassio-apparmor"
URL_BIN_HASSIO="${URL_RAW_BASE}/hassio-supervisor"
URL_DOCKER_DAEMON="${URL_RAW_BASE}/docker_daemon.json"
...
# Detect wrong docker logger config
if [ ! -f "$FILE_DOCKER_CONF" ]; then
  # Write default configuration
  info "Creating default docker daemon configuration $FILE_DOCKER_CONF"
  curl -sL ${URL_DOCKER_DAEMON} > "${FILE_DOCKER_CONF}"

URL_DOCKER_DAEMON resolves to "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/files/docker_daemon.json" which does not exist

Please understand I am new to github, so please excuse me if I did not report this issue properly. I am more than willing to learn. If there is a better way to report the issue, or if additional information is needed, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions