Home Assistant not starting on boot

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
subaquatic
Posts: 12
Joined: Sat Nov 28, 2015 7:25 pm

Home Assistant not starting on boot

Post by subaquatic »

I've installed Home Assistant via dietpi-software and it ran fine, but does not auto start on boot. Attempting to start it manually fails and returns the following errors:

Code: Select all

root@hass:~# sudo su -s /bin/bash homeassistant
bash: warning: setlocale: LC_ALL: cannot change locale (0.UTF-8)
homeassistant@hass:/root$ cd /srv/homeassistant
homeassistant@hass:/srv/homeassistant$ source bin/activate
(homeassistant) homeassistant@hass:/srv/homeassistant$ hass
Config directory: /home/homeassistant/.homeassistant
2017-09-07 20:14:16 ERROR (Thread-2) [homeassistant.util.yaml] while parsing a block mapping
  in "/home/homeassistant/.homeassistant/configuration.yaml", line 1, column 1
expected <block end>, but found '<block mapping start>'
  in "/home/homeassistant/.homeassistant/configuration.yaml", line 72, column 2
2017-09-07 20:14:16 ERROR (MainThread) [homeassistant.bootstrap] Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block mapping
  in "/home/homeassistant/.homeassistant/configuration.yaml", line 1, column 1
expected <block end>, but found '<block mapping start>'
  in "/home/homeassistant/.homeassistant/configuration.yaml", line 72, column 2
^CException ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
  File "/usr/lib/python3.4/threading.py", line 1294, in _shutdown
    t.join()
  File "/usr/lib/python3.4/threading.py", line 1060, in join
    self._wait_for_tstate_lock()
  File "/usr/lib/python3.4/threading.py", line 1076, in _wait_for_tstate_lock
    elif lock.acquire(block, timeout):
KeyboardInterrupt
(homeassistant) homeassistant@hass:/srv/homeassistant$
Thanks for any assistance.
User avatar
WarHawk
Posts: 631
Joined: Thu Jul 20, 2017 8:55 am

Re: Home Assistant not starting on boot

Post by WarHawk »

add that line to /etc/rc.local before exit 0 line

sudo su -s /bin/bash homeassistant

Or try this method
Dietpi is based on armbian...armbian is based on debian, same as ubuntu

https://askubuntu.com/questions/9853/ho ... on-startup

Specifically this post
https://askubuntu.com/a/401090/728555
Post Reply