Help please - Hass.io not showing in Home Assistant after installation

I am trying to install Home Assistant/Hass.io on a Raspberry pi3 B+. I initially just installed Home Assistant,and then subsequently with help here installed docker and Hass io. I then installed portainer. I have rebooted the RPi but still do not see Hass io in the HA menu.

I believe I have the required containers running (as shown in portainer below).

So I’m not sure what is wrong. I should emphasise that I am close to being a novice on RPi and Linux. I wonder if installing HA first and then Hass io is the problem, as I came across some info which suggested if you had and existing HA installation you would need to copy the config file to Hass io. However, I haven’t been able to locate the suggested config folders for either HA or HAss io, only configuration.yaml in my cd /home/pi/homeassistant folder. I can access the /home/user/docker/hassio folders but I only see a config.json file.

In addition, with the HA working as it is, I am not seeing a device (tado) that I hoped would be detected.

I would really appreciate some help to get this working and if I need correct the configuration, some clear pointers how to do this.

Many thanks

I would first get rid of those excess docker containers.

You sure your old HA isn’t still running? Did you remove the startup files and service?

Sounds like you’re seeing regular home assistant and not your hassio install.

Well they are different locations.

If you had it running in python venv first, your files are probably in /home/homeassistant/. homeassistant

If you want access to your hassio config, it’s in /usr/share/hassio

Thanks for your reply

  • Excess containers: will do. I assume the ‘homeassistant/intel-nuc-homeassistant’ one is not required?

*You asked if ‘old’ HA is still running. I checked using ‘sudo service --status-all’ and there is no home assistant service running. I also tried to uninstall HA (from the pi@raspberrypi: ~$ prompt), but the response was that it isn’t installed! ie

sudo pip3 uninstall homeassistant
Skipping homeassistant as it is not installed.

Yet clearly something is running as I can log into HA and display the dashboard. Would it show up in the list of services?

  • Finally, in /usr/share/hassio there is one folder /apparmor with one file in it (hassio-supervisor). No config file.

I really don’t understand what is going on here. I assumed that hass.io was effectively an addon to HA, but am I right that Hass io includes HA? Would any instance of HA that was running prevent Hass io from running properly? Is that the issue I have?

I guess I have demonstrated clearly my ignorance of all this, but trying to learn quickly! Any further advice appreciated.

Only if you made a service file and set it up. That’s on you.

But if you followed directions properly when installing originally you installed it in a python venv…

Then hassio is NOT running.

Nope.

Yes. Hassio contains 2 docker containers. Supervisor and home assistant.

Of course it would. Hassio is trying to open port 8123 which is already in use.

Sounds like it.

Delete the venv and try to run hassio again.

Thanks again your help. Following up on your responses/suggestions:

  • I’m not aware (!) I had installed a venv but have tried to uninstall any virtual environment package using “sudo pip uninstall virtualenv” and got the reply ’ skipping virtualenv as it is not installed"

  • using netstat -lntp I checked and port 8123 is in use when the home assistant container is running. Stopping the container and then checking netstat agan shows the port is now free, and restarting the container it becomes busy again. Doesn’t this suggest that it is not in use by another process such as another installation of Home assistant? The PID/package name using the port is not specified but this seems a reasonable assumption. (The HA container’s labels are all prefixed with hassio so I’m assuming this is part of the hassio installation).

  • I’m not sure if this helps or not, but on rebooting the RPi, 3 containers restarted (hassio-dns, portainer and hassio-supervisor) and the home-assistant container does not restart and the web interface is not accessible. If I start it manually then the interface is accessible.

Any further suggestions on what I can do to resolve this?
Thanks

Venv not virtualenv.

Then your home assistant container isn’t correct or you are missing something in your configuration.

Do you have hassio: in your configuration yaml?

I get the same response using venv, ie not installed
I assume you mean the home assistant configuration.yaml. No it doesn’t have hass.io, in fact there’s very little in it. Nothing immediately after “default_config:” and nothing in the group, automation etc lines. Looks like an initial default template. What should be in the default config line, which I assume is the important bit at the moment? What would be the syntax to include for hassio?

Thanks

Yes.

default_config: is just that.

Just add hassio: after default_config: and restart home assistant

default_config:
hassio:

I don’t even know if that is required any more

default_config includes discovery and to make hassio work, you can use discovery instead of specifying hassio (discovery includes hassio)

Thanks for clarifying that for me. I wasn’t sure where it fell these days.

Gotta admit it’s hard to keep on top of it.
Oh FFS!!! it’s not included in default_config.

I do have discovery: in my config yaml… you need either discovery or hassio…

SMH.

I have no idea what’s going on any more.

So I understand from the recent comments that adding hassio: isn’t strictly necessary, but I tried it anyway, and restarted home assistant. I got a notification in HA saying:
Invalid config
The following integrations and platforms could not be set up:
** hassio*
Please check your config.

Don’t know if this adds anything useful! I’m at a loss what to do next. Is there further information I can provide to help figure out what the problem is?
Thanks

I examined the container logs…after restarting the home-assistant container note the lines where it says missing hassio environment variable and then that the hassio intregration has failed, and then it continues to load components, as follows: (there are many more similar lines afterwards that I have not included here).
2020-01-26 14:20:00 INFO (MainThread) [homeassistant.setup] Setting up logbook
2020-01-26 14:20:00 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
2020-01-26 14:20:00 INFO (MainThread) [homeassistant.setup] Setting up hassio
2020-01-26 14:20:00 ERROR (MainThread) [homeassistant.components.hassio] Missing HASSIO environment variable.
2020-01-26 14:20:00 INFO (MainThread) [homeassistant.setup] Setup of domain hassio took 0.0 seconds.
2020-01-26 14:20:00 ERROR (MainThread) [homeassistant.setup] Setup failed for hassio: Integration failed to initialize.,
2020-01-26 14:20:09 INFO (SyncWorker_15) [homeassistant.loader] Loaded locative from homeassistant.components.locative
2020-01-26 14:20:00 ERROR (MainThread) [homeassistant.setup] Setup failed for hassio: Integration failed to initialize.,
2020-01-26 14:20:09 INFO (SyncWorker_3) [homeassistant.loader] Loaded openuv from homeassistant.components.openuv,
2020-01-26 14:20:09 INFO (SyncWorker_18) [homeassistant.loader] Loaded zwave from homeassistant.components.zwave,
2020-01-26 14:20:09 INFO (SyncWorker_0) [homeassistant.loader] Loaded wwlln from homeassistant.components.wwlln,
2020-01-26 14:20:09 INFO (SyncWorker_10) [homeassistant.loader] Loaded geonetnz_quakes from homeassistant.components.geonetnz_quakes,
2020-01-26 14:20:09 INFO (SyncWorker_9) [homeassistant.loader] Loaded emulated_roku from homeassistant.components.emulated_roku

Earlier today the log shows:
2020-01-26 06:06:04 INFO (MainThread) [homeassistant.components.updater] The latest available version of Home Assistant is 0.104.3
2020-01-26 06:44:11 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.217
2020-01-26 06:58:13 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.1906304624] Connection closed by client
2020-01-26 06:59:38 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.1905025904] Connection closed by client
2020-01-26 07:25:01 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.1861188144] Connection closed by client
2020-01-26 07:26:26 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.1905008144] Connection closed by client

…and this went on with similar “connection closed” messages for several hours roughly every five minutes, until I restarted

Looking at the hassio_supervisor container, I stopped it and it then restarted automatically, and I have copied the log for that period below. (Note the timing stamp for hassio-supervisor is my local time and the home-assistant seems to be running five hours behind that!?). It confirms it is up and running but then reports a problem with Home assistant Docker and tries to start homeassistant/intel-nuc-homeassistant. The reports Home assistant has crashed (to clarify, not me stopped the HA container, that was earlier), and that reanimation has failed. I was a bit puzzled about trying to start the intel-nuc-homeassistant docker as I assume this was not a container required as I’m running on a RPi. If i try to run it produces errors and stops anyway, but why is the hassio-supervisor trying to start it?

For completeness, the hassio-dns log shows this:
.:53
2020-01-25T21:51:36.640Z [INFO] CoreDNS-1.6.1
2020-01-25T21:51:36.659Z [INFO] linux/arm, go1.12.7, 1fda570
CoreDNS-1.6.1
linux/arm, go1.12.7, 1fda570
[INFO] SIGTERM: Shutting down servers then terminating
.:53
2020-01-26T19:33:52.669Z [INFO] CoreDNS-1.6.1
2020-01-26T19:33:52.671Z [INFO] linux/arm, go1.12.7, 1fda570
CoreDNS-1.6.1
linux/arm, go1.12.7, 1fda570

Does this information indicate what the problem is and how to resolve it. Clearly hassio and home assistant are both starting up but not integrating but I dont have the expertise to know why.

Thanks

Apologies…forgot to post the hasso-supervisor log:

20-01-26 06:53:39 INFO (MainThread) [hassio.store] Load add-ons from store: 63 all - 0 new - 0 remove,
20-01-26 07:53:37 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json,
20-01-26 08:26:57 INFO (MainThread) [hassio.host.info] Update local host information,
20-01-26 08:26:57 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1,
20-01-26 08:26:58 INFO (MainThread) [hassio.host.services] Update service information,
20-01-26 08:26:58 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1,
20-01-26 08:26:58 INFO (MainThread) [hassio.host.network] Update local network DNS information,
20-01-26 08:26:58 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager,
20-01-26 09:53:37 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository,
20-01-26 09:53:37 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/hassio-addons/repository repository,
20-01-26 09:53:38 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json,
20-01-26 09:53:39 INFO (MainThread) [hassio.store] Load add-ons from store: 63 all - 0 new - 0 remove,
20-01-26 10:33:37 INFO (MainThread) [hassio.host.info] Update local host information,
20-01-26 10:33:37 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1,
20-01-26 10:33:38 INFO (MainThread) [hassio.host.services] Update service information,
20-01-26 10:33:38 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1,
20-01-26 10:33:38 INFO (MainThread) [hassio.host.network] Update local network DNS information,
20-01-26 10:33:38 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager,
20-01-26 11:53:38 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json,
20-01-26 12:40:17 INFO (MainThread) [hassio.host.info] Update local host information,
20-01-26 12:40:17 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1,
20-01-26 12:40:18 INFO (MainThread) [hassio.host.services] Update service information,
20-01-26 12:40:18 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1,
20-01-26 12:40:18 INFO (MainThread) [hassio.host.network] Update local network DNS information,
20-01-26 12:40:18 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager,
20-01-26 12:53:37 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository,
20-01-26 12:53:37 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/hassio-addons/repository repository,
20-01-26 12:53:39 INFO (MainThread) [hassio.store] Load add-ons from store: 63 all - 0 new - 0 remove,
20-01-26 13:53:38 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json,
20-01-26 14:46:57 INFO (MainThread) [hassio.host.info] Update local host information,
20-01-26 14:46:57 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1,
20-01-26 14:46:58 INFO (MainThread) [hassio.host.services] Update service information,
20-01-26 14:46:58 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1,
20-01-26 14:46:58 INFO (MainThread) [hassio.host.network] Update local network DNS information,
20-01-26 14:46:58 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager,
20-01-26 15:53:37 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/hassio-addons/repository repository,
20-01-26 15:53:37 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository,
20-01-26 15:53:38 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json,
20-01-26 15:53:39 INFO (MainThread) [hassio.store] Load add-ons from store: 63 all - 0 new - 0 remove,
20-01-26 16:53:38 INFO (MainThread) [hassio.host.info] Update local host information,
20-01-26 16:53:38 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1,
20-01-26 16:53:38 INFO (MainThread) [hassio.host.services] Update service information,
20-01-26 16:53:38 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1,
20-01-26 16:53:38 INFO (MainThread) [hassio.host.network] Update local network DNS information,
20-01-26 16:53:38 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager,
20-01-26 17:53:37 INFO (MainThread) [hassio.snapshots] Found 0 snapshot files,
20-01-26 17:53:38 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json,
20-01-26 18:53:37 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/hassio-addons/repository repository,
20-01-26 18:53:37 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository,
20-01-26 18:53:39 INFO (MainThread) [hassio.store] Load add-ons from store: 63 all - 0 new - 0 remove,
20-01-26 19:00:18 INFO (MainThread) [hassio.host.info] Update local host information,
20-01-26 19:00:18 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1,
20-01-26 19:00:18 INFO (MainThread) [hassio.host.services] Update service information,
20-01-26 19:00:18 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1,
20-01-26 19:00:18 INFO (MainThread) [hassio.host.network] Update local network DNS information,
20-01-26 19:00:18 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager,
20-01-26 19:33:29 INFO (MainThread) [main] Stopping Hass.io,
20-01-26 19:33:29 INFO (MainThread) [hassio.api] Stop API on 172.30.32.2,
20-01-26 19:33:29 INFO (MainThread) [hassio.misc.forwarder] Stop DNS forwarding,
20-01-26 19:33:29 INFO (MainThread) [hassio.core] Hass.io is down,
20-01-26 19:33:29 INFO (MainThread) [main] Close Hass.io,
20-01-26 19:33:46 INFO (MainThread) [main] Initialize Hass.io setup,
20-01-26 19:33:46 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to Supervisor homeassistant/armv7-hassio-supervisor with version 195,
20-01-26 19:33:47 INFO (MainThread) [main] Setup HassIO,
20-01-26 19:33:47 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1,
20-01-26 19:33:47 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1,
20-01-26 19:33:47 WARNING (MainThread) [hassio.dbus.rauc] Host has no rauc support. OTA updates have been disabled.,
20-01-26 19:33:47 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.NetworkManager - /org/freedesktop/NetworkManager/DnsManager,
20-01-26 19:33:47 INFO (MainThread) [hassio.host.info] Update local host information,
20-01-26 19:33:47 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1,
20-01-26 19:33:47 INFO (MainThread) [hassio.host.services] Update service information,
20-01-26 19:33:47 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1,
20-01-26 19:33:48 INFO (MainThread) [hassio.host.network] Update local network DNS information,
20-01-26 19:33:48 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager,
20-01-26 19:33:48 INFO (MainThread) [hassio.host.apparmor] Load AppArmor Profiles: {‘hassio-supervisor’},
20-01-26 19:33:48 INFO (MainThread) [hassio.host.services] Reload local service hassio-apparmor.service,
20-01-26 19:33:48 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1,
20-01-26 19:33:48 INFO (SyncWorker_2) [hassio.docker.interface] Attach to homeassistant/armv7-hassio-dns with version 1,
20-01-26 19:33:48 INFO (MainThread) [hassio.misc.forwarder] Start DNS port forwarding to 172.30.32.3,
20-01-26 19:33:48 INFO (SyncWorker_2) [hassio.docker.interface] Restart homeassistant/armv7-hassio-dns,
20-01-26 19:33:51 INFO (SyncWorker_3) [hassio.docker.interface] Attach to homeassistant/intel-nuc-homeassistant with version 0.104.2,
20-01-26 19:33:52 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/core repository,
20-01-26 19:33:52 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/a0d7b954 repository,
20-01-26 19:33:53 INFO (MainThread) [hassio.store] Load add-ons from store: 63 all - 63 new - 0 remove,
20-01-26 19:33:53 INFO (MainThread) [hassio.addons] Found 0 installed add-ons,
20-01-26 19:33:53 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json,
20-01-26 19:33:53 INFO (MainThread) [hassio.snapshots] Found 0 snapshot files,
20-01-26 19:33:53 INFO (MainThread) [hassio.discovery] Load 0 messages,
20-01-26 19:33:53 INFO (MainThread) [hassio.ingress] Load 0 ingress session,
20-01-26 19:33:53 INFO (MainThread) [hassio.secrets] Load Home Assistant secrets: 0,
20-01-26 19:33:53 INFO (MainThread) [main] Run Hass.io,
20-01-26 19:33:53 INFO (MainThread) [hassio.api] Start API on 172.30.32.2,
20-01-26 19:33:53 INFO (MainThread) [hassio.addons] Phase ‘initialize’ start 0 add-ons,
20-01-26 19:33:53 INFO (MainThread) [hassio.core] Hass.io reboot detected,
20-01-26 19:33:53 INFO (MainThread) [hassio.tasks] All core tasks are scheduled,
20-01-26 19:33:53 INFO (MainThread) [hassio.core] Hass.io is up and running,
20-01-26 19:34:08 WARNING (MainThread) [hassio.tasks] Watchdog found a problem with Home Assistant Docker!,
20-01-26 19:34:08 INFO (SyncWorker_2) [hassio.docker.interface] Start homeassistant/intel-nuc-homeassistant,
20-01-26 19:34:14 ERROR (MainThread) [hassio.homeassistant] Home Assistant has crashed!,
20-01-26 19:34:14 ERROR (MainThread) [hassio.tasks] Watchdog Home Assistant reanimation fails!,

but you are running on a pi…

Did you modify the installer script and include the machine code for the NUC?

Looking at the command I used, it’s possible that I ran it without amending the machine type from the default version I copied, which was:

sudo su
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s – -m intel-nuc -d /home/user/docker/hassio

At the time I may not have realised the significance of the intel-nuc phrase.
I have rerun that command since with raspberrypi3 replacing intel-nuc, but I’m unsure if that would have overwritten any incorrect code (I received no errors).

Could this be the source of the problems I have had, and if so can I edit the code (if so how) or delete and replace with the correct package. However, I had assumed that as the home assistant container I have running is using a raspberry pi image, and the intel-nuc container is not running, that was ok, but maybe not?

This will likely not work.

100% the cause

It’s not really a package.

Stop the 2 services, remove the scripts, stop and remove all the docker containers, then you can re-run the installer

Understood, except which specific scripts do I need to remove?

Thanks again for your help.

Have you read the installer script that you ran?

Start reading here:

Look at the locations of the files that it downloads.

curl -sL ${URL_BIN_HASSIO} > "${PREFIX}"/sbin/hassio-supervisor

Everything is right there in the installer script.