Unable to access home assistant

HI, I have just installed home assistant but am not able to access it on my web browser using the ip and 8123 port, It gives me a message this site cant be reached and ip refused to connect . I also port forwarded 8123 on my router.
when i run sudo systemctl status home-assistant.service -l, It gives the following results.
● home-assistant.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)

What would i need to do to fix this, or what am i doing wrong? thanks for future reply’s :).

What method of installation did you use and what device did you install home assistant on?

I used the Raspberry pi all in one installer following BRUH Automation and am using the raspberry pi 3

Run the following command on your Pi:

sudo /srv/homeassistant/bin/hass --script check_config -c /home/homeassistant/.homeassistant

any errors will show up in red.

This is what it gave me after running the sudo.
sudo: /srv/homeassistant/bin/hass: command not found

You can use the locate command to see where hass is installed. Locate isn’t installed by default, so install it:

sudo apt install locate

Once it is installed you need to update the database:

sudo updatedb

After the locate database has been updated run:

locate hass

On my Pi running Hassbian it is located here:

/srv/homeassistant/bin/hass

when running your first command i get this error.

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
locate
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 140 kB of archives.
After this operation, 220 kB of additional disk space will be used.
Err Index of /raspbian jessie/main locate armhf 4.4.2-9
Could not resolve ‘mirrordirector.raspbian.org
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/f/findutils/locate_4.4.2-9_armhf.deb Could not resolve ‘mirrordirector.raspbian.org

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Try

sudo apt-get update && sudo apt get upgrade

the try installing locate:

sudo apt-get install locate

I’ve been using a newer version of apt on other systems, than the one included in the Hassbian image.

after running
sudo apt-get update && sudo apt get upgrade
and
sudo apt-get install locate

This is what happened:

pi@hassbian:~ $ sudo apt-get update
Get:1 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
Get:2 http://mirrordirector.raspbian.org jessie/main armhf Packages [9,532 kB]
Get:3 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Get:4 http://archive.raspberrypi.org jessie/ui armhf Packages [57.9 kB]
Get:5 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [43.3 kB]
Get:6 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [84.2 kB]
Get:7 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9,757 kB in 14h 48min 36s (183 B/s)
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/main/binary-armhf/Packages Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used

After that:
pi@hassbian:~ $ sudo apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Then i ran:
pi@hassbian:~ $ sudo apt-get install locate
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
locate
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 140 kB of archives.
After this operation, 220 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main locate armhf 4.4.2-9 [140 kB]
Fetched 140 kB in 17s (8,131 B/s)
Selecting previously unselected package locate.
(Reading database … 36620 files and directories currently installed.)
Preparing to unpack …/locate_4.4.2-9_armhf.deb …
Unpacking locate (4.4.2-9) …
Processing triggers for man-db (2.7.0.2-5) …
Setting up locate (4.4.2-9) …

When i ran locate hass, i found that it was under USR and not SRV here is what it gave:

pi@hassbian:~ $ locate hass
/etc/sudoers.d/020_homeassistant_hassbian-scripts
/home/pi/hass_rpi_installer.sh
/opt/hassbian
/opt/hassbian/suites
/opt/hassbian/suites/files
/opt/hassbian/suites/files/mosquitto.conf
/opt/hassbian/suites/install_homeassistant.sh
/opt/hassbian/suites/install_hue.sh
/opt/hassbian/suites/install_libcec.sh
/opt/hassbian/suites/install_mosquitto.sh
/opt/hassbian/suites/install_openzwave-pip.sh
/opt/hassbian/suites/install_openzwave.sh
/opt/hassbian/suites/install_samba.sh
/opt/hassbian/suites/install_tellstick.sh
/opt/hassbian/suites/install_tradfri.sh
/srv/homeassistant/hassbian
/srv/homeassistant/hassbian-scripts-0.4.deb
/srv/homeassistant/hassbian/suite-state.lock
/srv/homeassistant/hassbian/suite-states
/srv/homeassistant/hassbian/suite-states.lock
/usr/local/bin/hassbian-config
/var/lib/dpkg/info/hassbian-scripts.conffiles
/var/lib/dpkg/info/hassbian-scripts.list
/var/lib/dpkg/info/hassbian-scripts.md5sums

So I run your previous suggestion, still give the message command not found.
sudo /srv/homeassistant/bin/hass --script check_config -c /home/homeassistant/.homeassistant

Would this not run due to the directory being wrong, if so how would i change it?

If the above is a full listing of what locate finds, it looks like your is missing several directories.

Have you tried it this way?

sudo su -s /bin/bash homeassistant

source /srv/homeassistant/bin/activate

hass --script check_config

Yes this seems true. How would i reset my sd card so that i can reinstall the program?
i also ran the hass check config code and it says command not found.

It would probably be best to rewrite the hassbian image to your SD card. I use Etcher. You can write the image directly to the SD card, no need to unzip it.

No need to reset/format sd card, etcher will take care of it.

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

How is this possible because i used Etcher to put hassbian onto the SD card now when i use it to re-flash it with hassbian it says the SD card is to small for the image?

What size sd card are you using? 4GB seems to be the minimum size.

I am using a 16GB sandisk ultra

Where are you seeing SD card is to small for the image message?

I managed to reinstall hassbian

hello
i have the same problem canot access home assistant.I try hassbian no luck then try all in one then no luck every time i try to run the home assistant i have error browser “page not found”.
I am very new to this all but i want to try it.
try to found a a very analitic tutorial for this but no luck, do you have eny saggestions?
Thank you and sorry for my english