After creating a fresh install of Hassbian on a RasPi 2 and finding the HA service inactive.
I ran
ls -alR /home/homeassistant/.homeassistant/
with the following result:
ls: cannot access ‘/home/homeassistant/.homeassistant/’: No such file or directory
so then ran
pi@hassbian:~ $ sudo hassbian-config install homeassistant --force
which finally resulted in:
Removed /etc/systemd/system/multi-user.target.wants/install_homeassistant.service.
Starting Home Assistant
Checking the installation…
Installation done…
Your Home Assistant installation is running at 192.168.1.4:8123 or if preferred http://hassbian.local:8123
At this point when I attempt to connect via any browser I get the following error:
This site can’t be reached
192.168.1.4 refused to connect.
I looked through a number of similar topics & ran the following:
cat /etc/systemd/system/[email protected]
and get
cat: /etc/systemd/system/[email protected]: No such file or directory
If you find that the web page is not reachable after 30 minutes or so, check that you have files in /home/homeassistant/.homeassistant/ , if there are no files in this location then run the installer manually using this command: sudo systemctl start install_homeassistant.service .
I’m not very familiar with Linux CLI as I try to operate primarily with X - so need help with command line.
pi@hassbian:~ $ cat /etc/systemd/system/[email protected]
cat: /etc/systemd/system/[email protected]: No such file or directory
pi@hassbian:~ $ cat /home/homeassistant/.homeassistant/home-assistant.log
2019-02-27 15:25:30 WARNING (Recorder) [homeassistant.components.recorder.migration] Database is about to upgrade. Schema version: None
2019-02-27 15:25:41 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform yr is taking over 10 seconds.
2019-02-27 15:25:41 ERROR (MainThread) [homeassistant.components.sensor.yr] Retrying in 15 minutes:
when i do i get the following:
pi@hassbian:~ $ sudo systemctl start install_homeassistant.service
Failed to start install_homeassistant.service: Unit install_homeassistant.service not found.
there was someone else just in the last week that was having problems getting their fresh install of the hassbian image to run.
I eventually recommended trying to install an older version of the image file. I don’t remember if that helped them fix it or not but it might be worth a try. then you can just update HA manually from there once it’s running.
Log in as the pi account and execute the following commands:
$ sudo systemctl stop [email protected]
$ sudo su -s /bin/bash homeassistant
$ source /srv/homeassistant/bin/activate
$ pip3 install --upgrade homeassistant
$ exit
I guess I forgot to mention that depending on which older version you pick then you might also have to upgrade your python. I can tell you how to do that if it comes to it. But if you pick the version right before the latest then I think you should be ok there.
Thanks exactly what I was after
I’m planning to try - image_2018-03-16-Hassbian.zip.
Hopefully all installs OK & then I’ll follow your suggested commands above to upgrade HA