Service no longer starts on Raspberry Pi?

I attempted an update today to my configuration.yaml file for homeassistant and issued the restart command for the service (sudo systemctl restart home-assistant.service), which I had used a few times today to add a password and do some other setup with no problem. However, after attempting to add my amcrest camera the service did not restart. I attempted a reboot of the pi as well to no avail… I changed the configuration file back to the previous version (i usually have a backup just in case) and still the service did not start when my pi began.

I’m very new to HomeAssistant on the pi (and linux as well for the more intricate stuff). Any idea what my problem is or how to diagnose the issue? The current configuration file was running fine but I am perhaps missing something in how it updates and could have broken it with the previous configuration iteration?

NOTE: By “did not start” I mean I am now unable to access the webapp (ip_address:8123). I am assuming this means the service is down.

Background:
I used the “All In One” Installer yesterday with success. My Raspberry Pi 2.0 worked perfectly yesterday through a few updates and today until attempting to add my amcrest IP camera.

Thank you for any help you’re able to offer!

UPDATE:
I checked the running services with “sudo systemctl” and see this (below) is included currently…

home-assistant.service loaded active running Home Assistant

– Still no idea what is going on…

Try “sudo systemctl status home-assistant.service” to know the status of the service.
And to see the log try “sudo journalctl -f -u home-assistant@homeassistant”

3 Likes

Just a quick note; if you add a “-l” to the end of that, you’ll see more detail in the log lines displayed.

sudo systemctl status home-assistant.service -l

1 Like

Brilliant. Thanks guys. The status gave me the information I needed.

It was actually a line in the configuration file that I didn’t realize I had changed (accidental backspace?) which had fouled up the configuration yaml syntax in a location I didn’t even look.

Thank you very much for the help! All is up and running again :slight_smile:

2 Likes

The logs were important for me figuring out what was causing my HA to not load the front end.