HA 0.58.1 can't start - Loaded: not-found (Reason: No such file or directory)

After update to 0.58.1 the HA do not start:

sudo systemctl start [email protected]
Failed to start [email protected]: 
 Unit [email protected] failed to load: No such file or directory.
sudo systemctl status [email protected][email protected]
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)  

This will work:

sudo -u homeassistant -H /srv/homeassistant/bin/hass
  Config directory: /home/homeassistant/.homeassistant
  ....

How can i re-enable the sudo systemctl status [email protected] ?

Thanks

I am not familiar with systemd, but that error indicates that your startup script is missing. On init system, those scripts are located in /etc/rc.d/init.d/. I have no clue what the equivalent systemd location would be.

Thanks but there is a file:

/etc/systemd/system/[email protected]

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

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

[Install]
WantedBy=multi-user.target

File hass and folder /home/homeassistant/.homeassistant exits.

Starts HA.

pi@hassbian:/home/homeassistant/.homeassistant $ sudo systemctl status homeassitant.service
● homeassitant.service
   Loaded: not-found (Reason: No such file or directory)
   Active: failed (Result: exit-code) since Sat 2017-11-25 17:17:20 CET; 1h 0min ago
 Main PID: 3707 (code=exited, status=203/EXEC)

Nov 25 17:17:20 hassbian systemd[1]: Started Home Assistant.
Nov 25 17:17:20 hassbian systemd[1]: homeassitant.service: main process exited, code=exited, status=203/EXEC
Nov 25 17:17:20 hassbian systemd[1]: Unit homeassitant.service entered failed state.
Nov 25 17:17:55 hassbian systemd[1]: [/etc/systemd/system/homeassitant.service:9] Executable path is not absolute, ignoring: source /svr/homeassistant/bin/activate
pi@hassbian:/home/homeassistant/.homeassistant $

Did you try enabling the service…

You need to reload systemd to make the daemon aware of the new configuration.
$ sudo systemctl --system daemon-reload

To have Home Assistant start automatically at boot, enable the service.
$ sudo systemctl enable home-assistant@[your user]

To start Home Assistant now, use this command.
$ sudo systemctl start home-assistant@[your user]

Also the the start after network should be …
After=network-online.target
not sure that will make a difference tho’.

From the error it looks to me like you created it wrong…

/etc/systemd/system/homeassitant.service < ------- you are missing an s in homeassistant :wink: or rather you are calling it wrong :wink:

@keithh666

Thanks for your help, no it is working again, happy.

sudo nano /etc/systemd/system/[email protected]
-----------------------------------------------------------------
[Unit]
Description=Home Assistant
After=network.target

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

[Install]
WantedBy=multi-user.target
--------------------------------------------------------------------

sudo systemctl daemon-reload
sudo systemctl enable home-assistant@homeassitant
sudo systemctl start  home-assistant@homeassitant
1 Like

sudo nano /etc/systemd/system/[email protected]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>^<<<<<<<<<

I would recreate it with the correct name as later you will forget and won’t know why it’s not working again :stuck_out_tongue:

@keithh666

Thanks, :slight_smile:

THANK YOU!! This works great on rpi.