Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Systemd Startup Fails

$
0
0

@PolarLava wrote:

I’m having a bit of a dilemma here… I have been running my system for a little over a year initially using SQLite and later MariaDB. I recently switched back to using SQLite (new DB) while I worked on upgrading MariaDB (as part of a project to replicate it to Amazon RDS). I’m not sure what happened, but since I started this little side project I can’t seem to get HA to start using systemd. Or more accurately it starts and then shuts down without an error after completing initialization. If I jump to a shell running as the homeassistant user (also, via root as sudo, but running as homeassistant makes more sense, but I digress) I can start HA at the command line using the exact command that is is the systemd file:

/srv/homeassistant/bin/python3 /srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant

Yet the systemd startup via systemctl doesn’t work. (i.e. starts and stops) My systemd file which had been working previously:

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

[Service]
Type=simple
User=homeassistant
Group=nogroup

ExecStart=/srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"

[Install]
WantedBy=multi-user.target

Has anyone ever seen anything like this? I’m stumped as things seem fine, but the startup just dies via systemd, but works interactively via the command line. ???

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>