Issue connecting via browser to HA after installing Hassbian

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

So not sure what I need to do next

https://www.home-assistant.io/docs/installation/hassbian/installation/

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 .

Apologies before posting & after checking the service was active - files seem to be there - so what would the next step be?

ls -alR /home/homeassistant/.homeassistant/
/home/homeassistant/.homeassistant/:
total 136
drwxr-xr-x 5 homeassistant homeassistant 4096 Feb 27 15:39 .
drwxr-xr-x 4 homeassistant homeassistant 4096 Feb 27 15:38 …
-rw-r–r-- 1 homeassistant homeassistant 2 Feb 27 15:10 automations.yaml
drwxr-xr-x 2 homeassistant homeassistant 4096 Feb 27 15:30 .cloud
-rw-r–r-- 1 homeassistant homeassistant 991 Feb 27 15:10 configuration.yaml
-rw-r–r-- 1 homeassistant homeassistant 0 Feb 27 15:10 customize.yaml
drwxr-xr-x 2 homeassistant homeassistant 4096 Feb 27 15:10 deps
-rw-r–r-- 1 homeassistant homeassistant 0 Feb 27 15:10 groups.yaml
-rw-r–r-- 1 homeassistant homeassistant 6 Feb 27 15:10 .HA_VERSION
-rw-r–r-- 1 homeassistant homeassistant 360 Feb 27 15:25 home-assistant.log
-rw-r–r-- 1 homeassistant homeassistant 98304 Feb 27 15:39 home-assistant_v2.db
-rw-r–r-- 1 homeassistant homeassistant 0 Feb 27 15:10 scripts.yaml
-rw-r–r-- 1 homeassistant homeassistant 157 Feb 27 15:10 secrets.yaml
drwxr-xr-x 2 homeassistant homeassistant 4096 Feb 27 15:29 tts

/home/homeassistant/.homeassistant/.cloud:
total 8
drwxr-xr-x 2 homeassistant homeassistant 4096 Feb 27 15:30 .
drwxr-xr-x 5 homeassistant homeassistant 4096 Feb 27 15:39 …

/home/homeassistant/.homeassistant/deps:
total 8
drwxr-xr-x 2 homeassistant homeassistant 4096 Feb 27 15:10 .
drwxr-xr-x 5 homeassistant homeassistant 4096 Feb 27 15:39 …

/home/homeassistant/.homeassistant/tts:
total 8
drwxr-xr-x 2 homeassistant homeassistant 4096 Feb 27 15:29 .
drwxr-xr-x 5 homeassistant homeassistant 4096 Feb 27 15:39 …

Seems like it should be operational now.

Check the log file

Still not operational & which log file? Can you provide me with the command?

The one with the extension of .log?

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:

this means the service did not install. If you don’t have a service, it can’t run the service.

Looks like it has an issue configuring your database and connecting to the internet.

Very strange - I have internet access - so am completely stumped with DB issues

pi@hassbian:~ $ ping google.com
PING google.com (216.58.203.110) 56(84) bytes of data.
64 bytes from syd09s15-in-f14.1e100.net (216.58.203.110): icmp_seq=1 ttl=56 time=30.4 ms
64 bytes from syd09s15-in-f14.1e100.net (216.58.203.110): icmp_seq=2 ttl=56 time=29.9 ms
64 bytes from syd09s15-in-f14.1e100.net (216.58.203.110): icmp_seq=3 ttl=56 time=30.0 ms
64 bytes from syd09s15-in-f14.1e100.net (216.58.203.110): icmp_seq=4 ttl=56 time=30.0 ms
64 bytes from syd09s15-in-f14.1e100.net (216.58.203.110): icmp_seq=5 ttl=56 time=31.1 ms
^C
google.com ping statistics —
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 29.920/30.315/31.101/0.433 ms

Yes - as I highlighted at the beginning of my post

But did you do as the INSTRUCTIONS state?

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.

I’m going to try a reboot

Well… somethings broken as I don’t get the welcome message ie the one below


| |__ __ _ ___ | | () __ _ _ __
| '_ \ / / __/ __| '_ \| |/ _ | ’ \
| | | | (| _ __ \ |) | | (| | | | |
|| ||_,|//.__/||_,|| ||

system info:
Distro…: Raspbian GNU/Linux 9 (stretch)
Kernel…: Linux 4.14.71-v7+

Uptime…: up 7 minutes
Load…: 0.00 (1m), 0.11 (5m), 0.08 (15m)
Processes…: 84 (root), 7 (user) | 91 (total)

CPU…: ARMv7 Processor rev 5 (v7l)
Memory…: 26M used, 731M free, 927M in total

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.

Thanks - that may be the best bet - where do I find an earlier version to download?

Found it here

While I’m waiting for the download of an earlier version - what are the actual commands I would need to run to manually update HA?

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