Hi all,
I wasn’t sure if I should add on to the other Autostart thread or not, but I’m having a similar issue.
I’m on Fedora 25, and I followed the Installation howto using a Python 3 venv and the Autostart howto and I’m getting this when I try to update and start systemd:
[homeassistant@mythtv system]$ sudo systemctl --system daemon-reload
[homeassistant@mythtv system]$ sudo systemctl enable [email protected]
[homeassistant@mythtv system]$ sudo systemctl start home-assistant@homeassistant
[homeassistant@mythtv system]$ sudo systemctl status home-assistant@homeassistant -l
[email protected] - Home Assistant
Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2017-01-29 19:42:38 CST; 4s ago
Process: 29699 ExecStart=/srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant (code=exited, status=203/EXEC)
Main PID: 29699 (code=exited, status=203/EXEC)
Jan 29 19:42:38 mythtv systemd[1]: Started Home Assistant.
Jan 29 19:42:38 mythtv systemd[1]: [email protected]: Main process exited, code=exited, status=203/EXEC
Jan 29 19:42:38 mythtv systemd[1]: [email protected]: Unit entered failed state.
Jan 29 19:42:38 mythtv systemd[1]: [email protected]: Failed with result 'exit-code'.
Here is my [email protected] systemd file:
[Unit]
Description=Home Assistant
After=network.target
[Service]
Type=simple
User=homeassistant
#make sure the virtualenv python binary is used
Environment=VIRTUAL_ENV="/srv/homeassistant/"
Environment=PATH="$VIRTUAL_ENV/bin:$PATH"
ExecStart=/srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant
[Install]
WantedBy=multi-user.target
If I run the command
/srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant
From the commandline as the homeassistant user, Home Assistant starts fine. Yet when I try to to start it via systemd, it fails. This makes me think I have the Path variables correct, as does:
[homeassistant@mythtv system]$ cd /srv/homeassistant/
[homeassistant@mythtv homeassistant]$ ls
bin include lib lib64 pip-selfcheck.json
[homeassistant@mythtv homeassistant]$
What am I missing?
Thanks in advance for any help.