Hi everyone, lets just get this out of the way and say im a total newbie to Linux so have mercy. But im willing to learn …just need a hand and some patience!
just starting out with hass that im running on an upgraded mac mini (2.1) ive had around running :
Intel Core2 (t7600)
4GB Ram
Debian 9 - Stretch 64Bit w/Gnome
Installed Hass using Python Virtual Environment
Is this the best way to run Hass on Debian. Should i have used a container like Docker instead?
Installation was no problem - hass ran fine. Trying to autostart using systemd
I dont think im doing it correctly.
When i type
whereis hass it returns hass:
However if i start the virtual environment - source bin/activate it returns hass: /home/theuser/homeassistant/bin/hass
ok from what i understand i need to edit or create? (unclear here) a file using the template for Python Virtual Env. So i did the following:
Then i follow the steps outlined in the autostart document:
sudo systemctl --system daemon-reload
sudo systemctl enable home-assistant@homeassistant Created symlink /etc/systemd/system/multi-user.target.wants/[email protected] → /etc/systemd/system/[email protected].
sudo systemctl start home-assistant@homeassistant
…and nothing happens
If i run sudo systemctl status home-assistant@homeassistant
Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2018-02-13 19:07:54 CST; 30s ago
Process: 1654 ExecStart=/home/theuser/homeassistant/bin/hass -c /home/homeassistant/.homeassistant (code=exited, status=1/FAILURE)
Main PID: 1654 (code=exited, status=1/FAILURE)
Feb 13 19:07:52 MacDebian systemd[1]: Started Home Assistant.
Feb 13 19:07:54 MacDebian hass[1654]: Fatal Error: Specified configuration directory does not exist /home/homeassistant/.homeassistant
Feb 13 19:07:54 MacDebian systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Feb 13 19:07:54 MacDebian systemd[1]: [email protected]: Unit entered failed state.
Feb 13 19:07:54 MacDebian systemd[1]: [email protected]: Failed with result 'exit-code'.
My guess is that im either not creating the template file in the right location or the path to the hass thing is incorrect for ExecStart
This did it! Thank you. It seems to boot on start now. Or at least when i access the Ip:port from my browser it loads the Hass Splash screen…however it seems to be stuck on Connecting…
Any thoughts?
also an additional question: In the autostart instructions it says:
For most systems, the file is /etc/systemd/system/home-assistant@[your user].service with [your user] replaced by the user account that Home Assistant will run as (normally homeassistant). In particular, this is the case for Ubuntu 16.04.
I just picked homeassistant to replace [your user] at random…is this correct or should i have checked what the actual user created was?! Im not sure what is meant by
replaced by the user account that Home Assistant will run as