Fresh install of Home Assistant going wrong

Hi all, I’m trying to install Home Assistant from scratch on a Raspbian lite (Pi 3 b+) yet somehow I can’t get it working.

I’ve followed these instructions

and these

to the letter, but when it comes to enabling the service to auto start, I get this error:

root@raspberrypi:/etc/systemd/system# systemctl enable home-assistant@pi
Failed to enable unit: File [email protected]: Bad message

Can someone enlighten me as to what I’m doing wrong, please.

You did not follow those instructions EXACTLY.
Where, exactly is your configuration directory? The first link puts it under /home/homeassistant/.homeassistant and expects the homeassistant user to run HASS.
The name of your service tells the system that the pi user is supposed to run it. What is the contents of your service file? There are several scenarios in your second link. Only one is correct.

I had a look at the service file and it appears I didn’t copy the text properly; it’s working now.

Thanks for the help!

1 Like

I know something was amiss since I am running the same install successfully, I made my own mistakes along the way too.