Can´t run/install Home Assistant with Hassbian install on PI 3 B+

Just bought a PI 3 B+ and can´t make it to Home Assistant to run/work, can any one help?

I’ve transferred the image to the SD Card with Win32Disk Imager and the Hassbian O.S. install on boot.
Tried to reach H.Assistant at the IP:8123 and the page doesn’t load.
Tried the “/home/homeassistant/.homeassistant/” via Putty on SSH and it says no such directory.
Tried to install by “sudo systemctl start install_homeassistant.service” and it gets an error on installation:

pi@hassbian:~ $ sudo hassbian-config install homeassistant
Home Assistant install script for Hassbian.
Copyright© 2017 Fredrik Lindqvist https://github.com/Landrash.

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
Collecting wheel
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 350, in _make_request
self._validate_conn(conn)
File “/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 837, in validate_conn
conn.connect()
File “/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connection.py”, line 323, in connect
ssl_context=context)
File "/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/ssl
.py", line 324, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File “/usr/lib/python3.5/ssl.py”, line 385, in wrap_socket
_context=self)
File “/usr/lib/python3.5/ssl.py”, line 760, in init
self.do_handshake()
File “/usr/lib/python3.5/ssl.py”, line 996, in do_handshake
self._sslobj.do_handshake()
File “/usr/lib/python3.5/ssl.py”, line 641, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

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 620, in _prepare_file
session=self.session, hashes=hashes)
File “/srv/homeassistant/lib/python3.5/site-packages/pip/download.py”, line 821, in unpack_url
hashes=hashes
File “/srv/homeassistant/lib/python3.5/site-packages/pip/download.py”, line 659, in unpack_http_url
hashes)
File “/srv/homeassistant/lib/python3.5/site-packages/pip/download.py”, line 853, in _download_http_url
stream=True,
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’
Collecting 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 350, in _make_request
self._validate_conn(conn)
File “/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 837, in validate_conn
conn.connect()
File “/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connection.py”, line 323, in connect
ssl_context=context)
File "/srv/homeassistant/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/ssl
.py", line 324, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File “/usr/lib/python3.5/ssl.py”, line 385, in wrap_socket
_context=self)
File “/usr/lib/python3.5/ssl.py”, line 760, in init
self.do_handshake()
File “/usr/lib/python3.5/ssl.py”, line 996, in do_handshake
self._sslobj.do_handshake()
File “/usr/lib/python3.5/ssl.py”, line 641, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

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 630, in send
history = [resp for resp in gen] if allow_redirects else []
File “/srv/homeassistant/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 630, in
history = [resp for resp in gen] if allow_redirects else []
File “/srv/homeassistant/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 190, in resolve_redirects
**adapter_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.

Follow this guide to install hassbian on rp3 b+
https://www.home-assistant.io/docs/installation/hassbian/installation/

Also this image included the home-assistant. So you don’t need to re-install home-assistant

When you already have hassbian installed with home assistant. And you want to upgrade home-assistant when new version come out. Use this guide.
https://www.home-assistant.io/docs/installation/hassbian/common-tasks/#update-home-assistant

I did follow that guide.
It didn’t worked.
Hassbian starts with no errors but the Home Assistant service isn’t intalled.
I try to go to is directory and get “No such directory”

If this the fresh hassbian and home-assistant installed? or you already have home-assistant running earlier and just try to upgrade home-assistant?

I had it installed but not running.
Tried to update by comand line but gets erros like I showed in the Topic.

So you mean fresh installed right? If yes a fresh installed.

Do a re-install again. Use SD Formatter to format your SD Card and use win32diskmanager or etcher to write the image to SD Card.

First time run might take 5-10 mins to boot HA. Please don’t forget to connect to internet either by ethernet cable or wireless (for wireless connection check from the same page installing hassbian).

Sunonline done all that, with Etcher, Win32diskmanager, re-install and so on, 10 minutes, 30 minutes, ethernet on and wifi and nop, no sucess.
Just tried a few minutes OpenHab with openHabian and five stars working OpenHab.
Just Hassbian isn’t ready 100% for PI 3B+ I guess…
I really wanted to stay with H.Assistant but seems it doesn’t wants my PI 3 B+…

I had a similar problem updateding to a newer pi! I had to completely reformat not just erase my SD card then install the hassbian. It then worked. Have your tried hass.io out of curiosity. This thread goes into some detail about it on the new 3b+. New pi 3b+ supported?

Same for me. I’ve received my new rPi 3B+ and started testing with Hassbian (Hass.io not supported for rPi 3B+) over the weekend and yesterday.

Repurposed an existing SD card (quick format), downloaded the image, etched with etcher and added the WPA config file.

After 10-30 mins, couldn’t connect to HA via my Mac’s web browser. Checked /home/homeassistant folder, it was empty. Manually installed the service. Still couldn’t connect via my Mac’s browser.

Tried many attempts, reformatting and re-doing the steps. Still not working.

Any suggestions will be much appreciated.

1 Like

Have you tried a manual install?

My guess would be that the hassbian scripts are incompatible for whatever reason that hassio is incompatible.

Try a fresh raspian install and a manual homeassistant install.

  1. I use SD Formatter to format the micro sd card before write the hassbian image with etcher.
  2. Set the wireless to micro sd card
  3. Insert the micro sd card to rp3 b+
  4. power on and wait for sometimes for HA to install all the packages to micro sd card.
  5. Google Chrome> http://ipaddress:8123 to enter HA for the first time.
  6. Do all necessary stuff like sudo raspi-config and so on, stop HA and move my HA backup to the rp3b+
  7. Reboot > HA load

Done all that.
Bought a PI 3B and have Home assistant working now
Going to use the other PI 3B+ for KODI or other projects until it’s H.A is fully compatible with it.
Many Thanks to all.

Hassbian works without issues on my 3B+. I’m not sure why exactly it wasn’t working for you, but it is definitely fully compatible.

I’m not the only one with this issue.

1 Like

Had the same problem. As best as I can tell it’s caused by a random network error. It’s supposed to retry but fails due to a bug in urllib? I couldn’t nail down what the bug actually was but my workaround was just to keep trying and eventually it got through the whole thing with no network errors.

This happened to me: I wasn’t properly connected to the Internet as I had a self-assigned IP address (e.g. 169.x.x.x) for an unknown reason, so I assigned myself an address and configured my default route:

sudo ifconfig eth0 192.168.0.70
sudo route add default gw 192.168.0.1

I then run the installation service command, above. Be sure to use the correct addresses for your network. Presumably any internet connectivity problem will look the same.