Error Installing Hass.io on NAS QNAP

Hi, I would migrate an Hass.io from RaspberryPI3 to my NAS QNAP TS231P2.
I have executed these activities:

  1. install Ubuntu 18.04 as docker container of NAS
docker pull ubuntu:latest
docker run -it --name hassio --privileged ubuntu:latest bash
apt-get update 
apt-get -y install sudo
sudo apt-get -y install systemd

Result : OK

  1. install Docker CE inside above Ubuntu container
useradd -m docker 
echo "docker:docker" | chpasswd 
adduser docker sudo
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository  "deb [arch=armhf] https://download.docker.com/linux/ubuntu  $(lsb_release -cs)  stable"
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
sudo service docker start
sudo systemctl enable docker

Result : OK

  1. install Hass.IO
sudo -s
apt-get upgrade
apt-get update
apt-get install -y bash jq curl avahi-daemon dbus network-manager apparmor-utils
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s -x -- -m arm -d /home/hassio/hassiocfg   

Result : System has not been booted with systemd as init system (PID 1). Can’t operate
after executing : systemctl start hassio-apparmor.service

I have spent 2 days for this, but I don’t know how to continue.
Any suggestion please ?

Thanks in advance

Did you give up on hass.io?

I’ve got hass.io running on a Synology DiskStation NAS and it should be similar for qnap.

Have you tried LXC container?

I think we have the same problem. I’ve done pretty much the same thing as you and nothing seemed to run :frowning:

Just ran systemctl start hassio-apparmor.service and that seemed to run something and I have a process called hassio-supervis running, however I have no user interface or anything else. Going to :8123 just gets me a time out still.

It is really easy getting Home Assistant working using a container on QNAP (although it is quite out of date). Getting HASSio to work though seems to be a lot tougher than it looks! Feeling like just stikcing with domoticz because it does work.

1 Like

I’ve looked at this. The instructions don’t match my QNAPs setup. Can’t find a settings file and the config directory given by the file with more details just does not exist. Another false start :frowning:

edit: and smiling again as I found the config files having been confused by two LXCs in the file path so moving on to the next bit :slight_smile:

Well that looks as good as I am getting. I have the hassio-supervisor showing in ps -A.

That seems to do nothing. No UI is seen on :8123 and I can find nothing else that might make this work. I have to run the sysemctl command to get this much going, it does not start on boot up.

If I knew what SHOULD be running maybe I can take the next steps. I’m finding it hard to help myself here as the information differs wildly and different instructions seem to take me to different places. Others report success just with what I’m doing so can’t work out why I can’t.

If you read the script and the service files you can figure out what containers need to be running. Having a supervisor by itself doesn’t actually do anything. You need the home assistant docker image as well.

Is there a “run” command that should start this stuff up?

Read the script you ran to “install” hassio.

Look at the services file. Look at what the script does.

Verify the installation took place, and that you didn’t see any errors. If you had any errors, that’s important information to have.

The install script given by the QNAP website has been depricated. The new one is https://github.com/home-assistant/hassio-installer

Instead of
curl -sL “https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install” | bash -s

use
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s

It is not simply on Qnap nas. After run this script the hassio_supervisor container go on start and restart continuously.

Good day to all.
I was able to successfully install hass.io on a qnap TS-235A.
I had the same issues but the upgraded qnap firmware to 4.4.1.1146 and it all worked.
One can do the same by the following steps:

  1. Install Ubuntu LXC with this tutorial - https://www.qnap.com/en/how-to/tutorial/article/how-to-use-container-station - I have picked ubuntu-xenial:latest
  2. If you intend to use z-wave - load the kernel module on qnap - https://www.home-assistant.io/docs/installation/docker/#z-wave - insmod /usr/local/modules/cdc-acm.ko
  3. Follow this instruction to install the rest of deps needed for hass.io - mainly the docker-ce - https://qiot.qnap.com/blog/en/2019/01/15/install-docker-x86-qnap-nas-lxc-container/
    At this step it is important to make a bridge setting for the network (this will give a separate ip address to the ubuntu container) and attach z-wave hardware devices to ubuntu container
  4. Finally install the hass.io with this - https://qiot.qnap.com/blog/2019/01/15/install-hass-io-qnap-nas/

For me all worked fine but only after qnap firmware update - before I had the same problem with supervisor constantly restarting.