GUI wont start after reboot

I am on Raspberry Pi 3.

I have installed Home Assistant and it all works fine, including the web interface at http://192.168.1.34:8123 when I run:
sudo /srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant

I have created a file /etc/systemd/system/[email protected] with the following contents:

[Unit]
Description=Home Assistant
After=network-online.target

[Service]
Type=simple
User=homeassistant
ExecStart=/srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"

[Install]
WantedBy=multi-user.target

When I reboot, homeassistant starts but the GUI does not. But as stated above running:
sudo /srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"
from the command line starts it OK. So this ExecStart line in the service file does not start it.

Can anyone help?

Checking the status shows its running:

sudo systemctl status [email protected][email protected] - Home Assistant
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-01-29 23:00:33 GMT; 9min ago
 Main PID: 697 (hass)
    Tasks: 32 (limit: 4915)
   CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
           └─697 /srv/homeassistant/bin/python3 /srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant

Jan 29 23:03:17 raspberrypi hass[697]: 2020-01-29 23:03:17 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
Jan 29 23:03:18 raspberrypi hass[697]: 2020-01-29 23:03:18 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: c
Jan 29 23:03:18 raspberrypi hass[697]: 2020-01-29 23:03:18 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.
Jan 29 23:03:18 raspberrypi hass[697]: 2020-01-29 23:03:18 INFO (SyncWorker_2) [homeassistant.loader] Loaded google_translate from homeassistant.components.google_translate
Jan 29 23:03:18 raspberrypi hass[697]: 2020-01-29 23:03:18 INFO (MainThread) [homeassistant.setup] Setting up tts
Jan 29 23:03:18 raspberrypi hass[697]: 2020-01-29 23:03:18 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.1 seconds.
Jan 29 23:03:19 raspberrypi hass[697]: 2020-01-29 23:03:19 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 12.76s
Jan 29 23:03:19 raspberrypi hass[697]: 2020-01-29 23:03:19 INFO (MainThread) [homeassistant.core] Starting Home Assistant
Jan 29 23:03:19 raspberrypi hass[697]: 2020-01-29 23:03:19 INFO (MainThread) [homeassistant.core] Timer:starting
Jan 29 23:03:19 raspberrypi hass[697]: 2020-01-29 23:03:19 INFO (SyncWorker_9) [homeassistant.components.zeroconf] Starting Zeroconf broadcast

The log file does not seem to show any elated errors - I dont think?? They seem to be just for integrations.

2020-01-29 23:03:15 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Unable to import component
2020-01-29 23:03:17 ERROR (MainThread) [homeassistant.setup] Setup failed for mobile_app: Unable to import component
2020-01-29 23:03:18 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: cloud, mobile_app
2020-01-29 23:03:18 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.

Thanks

Actually, maybe it is working, it seems to take about 5 minutes to start after its booted, and I have been impatient and rebooting and fiddling quicker than 5 minutes. Oh well, all good I guess!

yes, you’ll see that it takes a while on a RPi.

if you can eventually get to the frontend then it should be fine.

but it also might mean that you need a faster machine than a Pi to run it on. :wink: