Is there indication that Home Assistant is being installed after "sudo systemctl start install_homeassistant.service"?

Do you think it could be the SD card, even if it looks like it installs properly and has not problems?

At this point, I’m just bloody lost. I follow the instructions again and again and again and still the damn software, folders, everything just don’t seem to be on the damn device :frowning:

sudo apt install -y hassbian-config

Should work now if you followed this:

sudo apt install -y apt-transport-https
echo "deb [trusted=yes] https://gitlab.com/hassbian/repository/raw/master $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hassbian.list
sudo apt-get update
sudo apt install upgrade -y

ho-leeeeee shit

Used that tool to format and for the first time ever… saw this on boot!!!

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

system info:
  Distro......: Raspbian GNU/Linux 9 (stretch)
  Kernel......: Linux 4.14.71+

  Uptime......: up 1 minute
  Load........: 1.19 (1m), 0.77 (5m), 0.30 (15m)
  Processes...: 73 (root), 11 (user) | 84 (total)

  CPU.........: ARMv6-compatible processor rev 7 (v6l)
  Memory......: 41M used, 319M free, 433M in total

services:
  home-assistant@homeassistant:  inactive

I think I may have cried.

But I followed the guide but hit a snag.

pi@hassbian:~ $ sudo systemctl enable install_homeassistant.service
pi@hassbian:~ $ sudo systemctl start install_homeassistant.service
Job for install_homeassistant.service failed because a timeout was exceeded.
See "systemctl status install_homeassistant.service" and "journalctl -xe" for details.
pi@hassbian:~ $ sudo systemctl start install_homeassistant.service
Warning: install_homeassistant.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for install_homeassistant.service failed because the control process exited with error code.
See "systemctl status install_homeassistant.service" and "journalctl -xe" for details.

I trued the daemon-reload command it suggests, but it asks for a root password that I don’t know and never set. I know my “pi” password, but not root.

==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: root

@ludeeus Am I getting close? Is that time out normal and can I recover from it? Will your commands fix this? I FEEL SO CLOSE! IT SAYS HASSBIAN!!!

Now you are close, assuming your network is in order this should take care of the rest:

sudo hassbian-config install homeassistant --force

Thanks @ludeeus .

Here’s the error;

pi@hassbian:~ $ sudo hassbian-config install homeassistant --force
sudo: hassbian-config: command not found

Any ideas?

That should not be possible… but ok…

sudo apt install -y hassbian-config
sudo hassbian-config install homeassistant --force

We haven’t met, but something being impossibly difficult is my luck!

Here’s what I got;

pi@hassbian:~ $ sudo apt install -y hassbian-config
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package hassbian-config

It looks like you are missing this part:

sudo apt install -y apt-transport-https
echo "deb [trusted=yes] https://gitlab.com/hassbian/repository/raw/master $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hassbian.list
sudo apt-get update
sudo apt install upgrade -y

But you should not have these kind of issue, so it may be a sign of a bad SD card.

1 Like

Well. Time for a midnight run to buy a new SD card.

Thank you so much for your help @ludeeus .

Can I send a pizza to your house? Is there a way to donate to Home Assistant?

@ludeeus, mate! I bought a new SD card. Have seen things that I haven’t seen before! We are really moving along now.

I tried your sudo hassbian-config install homeassistant --force and it looked great, but some error messages happened at the end. Any idea what I am dealing with?

Thanks again! Pizza or donation is still a standing offer.

pi@hassbian:~ $ sudo hassbian-config install homeassistant --force
Home Assistant install script for Hassbian.
Copyright(c) 2017 Fredrik Lindqvist <https://github.com/Landrash>.

Setting correct premissions
Changing to the homeassistant user
Creating Home Assistant venv
Changing to Home Assistant venv
Installing latest version of Home Assistant
Requirement already satisfied: setuptools in /srv/homeassistant/lib/python3.5/site-packages
Requirement already satisfied: wheel in /srv/homeassistant/lib/python3.5/site-packages
Collecting homeassistant
  Using cached https://files.pythonhosted.org/packages/27/1a/07b993184854bc38b8384312e305e54cbf2e06abcdf0f9f110247ada576f/homeassistant-0.89.2-py3-none-any.whl
Collecting async-timeout==3.0.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl
Collecting requests==2.21.0 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)
Collecting voluptuous-serialize==2.1.0 (from homeassistant)
**Exception:**

** Traceback (most recent call last):**
** File “/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 594, in urlopen**
** chunked=chunked)**
** File “/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 391, in _make_request**
** six.raise_from(e, None)**
** File “”, line 2, in raise_from**
** File “/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 387, in _make_request**
** httplib_response = conn.getresponse()**
** File “/usr/lib/python3.5/http/client.py”, line 1198, in getresponse**
** response.begin()**
** File “/usr/lib/python3.5/http/client.py”, line 297, in begin**
** version, status, reason = self._read_status()**
** File “/usr/lib/python3.5/http/client.py”, line 266, in _read_status**
** raise RemoteDisconnected(“Remote end closed connection without”**
** http.client.RemoteDisconnected: Remote end closed connection without response**

** During handling of the above exception, another exception occurred:**

** Traceback (most recent call last):**
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/basecommand.py”, line 215, in main**
** status = self.run(options, args)**
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/commands/install.py”, line 353, in run**
** wb.build(autobuilding=True)**
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/wheel.py”, line 749, in build**
** self.requirement_set.prepare_files(self.finder)**
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py”, line 380, in prepare_files**
** ignore_dependencies=self.ignore_dependencies))**
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py”, line 554, in _prepare_file**
** require_hashes**
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py”, line 278, in populate_link**
** self.link = finder.find_requirement(self, upgrade)**
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/index.py”, line 465, in find_requirement**
** all_candidates = self.find_all_candidates(req.name)**
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/index.py”, line 423, in find_all_candidates**
** for page in self._get_pages(url_locations, project_name):**
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/index.py”, line 568, in _get_pages**
** page = self._get_page(location)**
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/index.py”, line 683, in _get_page**
** return HTMLPage.get_page(link, session=self.session)**
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/index.py”, line 792, in get_page**
** “Cache-Control”: “max-age=600”,**
** File “/srv/homeassistant/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 501, in get**
** return self.request(‘GET’, url, kwargs)
** File “/srv/homeassistant/lib/python3.5/site-packages/pip/download.py”, line 386, in request**
** return super(PipSession, self).request(method, url, args, kwargs)
** File “/srv/homeassistant/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 488, in request
*
** resp = self.send(prep, send_kwargs)
** File “/srv/homeassistant/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 609, in send**
** r = adapter.send(request, kwargs)
** File “/srv/homeassistant/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py”, line 47, in send**
** resp = super(CacheControlAdapter, self).send(request, kw)
** File “/srv/homeassistant/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py”, line 423, in send**
** timeout=timeout**
** File “/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 643, in urlopen**
** _stacktrace=sys.exc_info()[2])**
** File “/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py”, line 315, in increment**
** total -= 1**
** TypeError: unsupported operand type(s) for -=: ‘Retry’ and ‘int’**
Deactivating virtualenv
Enabling Home Assistant service
Disabling the Home Assistant install script
Starting Home Assistant
Checking the installation…

Installation failed...

If you have issues with this script, please say something in the #devs_hassbian channel on Discord.
pi@hassbian:~ $

That last error is a network issue, probably on pypo’s end, try again later

Oh. Damn. So a network error would explain that wall of damn errors?

I guess I will have to wait and try again. Any recommendations on how long? Might it be worth trying wifi somewhere else or is it definitely the other end?

Thanks again matey

Network issues will give that result, lately I have see that exact issue more frequently, if it where me I would try again every hour until it works :sweat_smile:

@ludeeus you’re awesome thank you

Hey is there a way I can donate to home assistant project?

1 Like

Only thing that comes to mind is signing up for Home Assistant cloud

Hi @anon34565116!

It’s just available within my network. I think. Initially I was unable to log into the iOS app or using iOS browser. Attempting both gives the error “safari cannot open the page because it could not establish a secure connection to the server”.

I was eventually able to log in with the iOS app by selecting “basic authentication” or something similar, but I sure got a lot of different ssl-like errors.

I’ve tried to add a picture of what I’m faced with when I am in home assistant. Does this look right? Screenshot

I don’t seem to have the same options in a lot of the guides online. In the “common tasks” guide it says “Click on the menu icon in the top left and select Hass.io in the sidebar.” I do not have this option :frowning: so I can’t see the “add on store” on any browser or the app!

I have to say that I am absolutely over the moon that this is running. I feel like now I have the OS running, I can stop asking @ludeeus for help on installing it, and now I just need to configure it.

1 Like

So is your Home Assistant accessible externally or just inside your network with http?

Damn. I replied to the wrong comment. Answer is above!

1 Like

That image looks like you can get to Home Assistant fine but you have a broken card. I had a similar issue after an upgrade where things looked OK in my Chrome browser because it was using some cached information instead of the real broken card. After I fixed the errors, it worked OK on my phone.

Can you test using a different browser? I think you have errors with hui-custom-state-card. There were some recent changes that affected custom components.

That is interesting, thank you @anon34565116 . I am not surprised that my luck has remained bad

I’ve tried with safari, chrome and the home assistant app. Same issue. Is there a way to force it to refresh?