Home Assistant on Raspberry Pi 3 b+ installation problems

Hi everybody!
I’m new in the forum … and I’m sorry if the questions I ask are particularly stupid!
Yesterday I built my first rasberry pi 3 b +, I followed the instructions to install raspbian to be able to install home assistant.
I enabled (incredibly, I managed) the wifi to automatically recognize my wifi network and auto connect. I can connect to the raspberry via ssh, from which I managed to change the raspberry password. At this point I can not start home assistant. I tried to connect to the raspberry through web browser but it does not open the page. What could I have done wrong? thank you so much

What is the output of sudo systemctl status [email protected] ?

I forgot to report that currently the raspberry is connected to a dynamic IP … I still have to assign a static ip. Can it depend on this?

later i try this command and i’ll tell u—thx

You need to point your web browser to the correct IP.

i tried the command sudo systemctl status [email protected] and the reply was:
[email protected] - Home Assistant for homeassistant
Loaded: loaded (/etc/systemd/system/[email protected]; ena
Active: failed (Result: exit-code) since Tue 2018-06-05 20:21:30 UTC; 6min ag
Process: 814 ExecStart=/srv/homeassistant/bin/hass (code=exited, status=203/EX
Main PID: 814 (code=exited, status=203/EXEC)

Jun 05 20:21:30 hassbian systemd[1]: Started Home Assistant for homeassistant.
Jun 05 20:21:30 hassbian systemd[1]: [email protected]: Main
Jun 05 20:21:30 hassbian systemd[1]: [email protected]: Unit
Jun 05 20:21:30 hassbian systemd[1]: [email protected]: Faile

i did it…but it didn’t work…

Did you change the password while it was installing? Looks like home assistant isn’t running.

Maybe try to reflash and install, let it get all the way installed and running before you change anything. I recall having a problem in the past making changes before it was fully up and running.

Before starting again, I would check your configuration and then if that is ok manually launch homeassistant to see what the output of running the program is.

You can stop and start the home assistant manually using following commands:

sudo systemctl stop [email protected]
sudo systemctl start [email protected]

Got the problem last time and upgrading homeassistant manually fixed it. Try the following command to upgrade the homeassistant:

sudo hassbian-config upgrade homeassistant

The upgrade may complain about a missing configuration file and ask you to revert. I chose no. See the enclosed logs.

Home Assistant install script for Hassbian.
Copyright(c) 2017 Fredrik Lindqvist <https://github.com/Landrash>.

Checking current version
Setting correct premissions
Changing to the homeassistant user
Changing to Home Assistant venv
Upgrading Home Assistant
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl (575kB)
Requirement already up-to-date: wheel in /srv/homeassistant/lib/python3.5/site-packages
Installing collected packages: setuptools
  Found existing installation: setuptools 33.1.1
    Uninstalling setuptools-33.1.1:
      Successfully uninstalled setuptools-33.1.1
Successfully installed setuptools-41.0.1
Collecting homeassistant==0.91.4
  Using cached https://files.pythonhosted.org/packages/d2/6d/6ffc1882cc4492ed7f2c5acb88c6299729f4462c8c86e542c037c659ce36/homeassistant-0.91.4-py3-none-any.whl
Collecting async-timeout==3.0.1 (from homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl
Collecting pyyaml<4,>=3.13 (from homeassistant==0.91.4)
  Using cached https://www.piwheels.org/simple/pyyaml/PyYAML-3.13-cp35-cp35m-linux_armv7l.whl
Collecting PyJWT==1.6.4 (from homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/93/d1/3378cc8184a6524dc92993090ee8b4c03847c567e298305d6cf86987e005/PyJWT-1.6.4-py2.py3-none-any.whl
Collecting requests==2.21.0 (from homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl
Collecting cryptography==2.5 (from homeassistant==0.91.4)
  Using cached https://www.piwheels.org/simple/cryptography/cryptography-2.5-cp35-cp35m-linux_armv7l.whl
Collecting astral==1.10.1 (from homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/ff/5d/261f49822b7f77c265197d46cdbaaaaf06f458734e9ac55a140dd75bdf29/astral-1.10.1-py2.py3-none-any.whl
Collecting voluptuous==0.11.5 (from homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/59/95/fa6218477c6999c9b7fdfab7c12c1bd4da2d5930f5eb2b232ec74eb344e7/voluptuous-0.11.5-py2.py3-none-any.whl
Collecting voluptuous-serialize==2.1.0 (from homeassistant==0.91.4)
  Using cached https://www.piwheels.org/simple/voluptuous-serialize/voluptuous_serialize-2.1.0-py3-none-any.whl
Collecting pytz>=2018.07 (from homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl
Collecting bcrypt==3.1.6 (from homeassistant==0.91.4)
  Using cached https://www.piwheels.org/simple/bcrypt/bcrypt-3.1.6-cp35-cp35m-linux_armv7l.whl
Collecting aiohttp==3.5.4 (from homeassistant==0.91.4)
  Using cached https://www.piwheels.org/simple/aiohttp/aiohttp-3.5.4-cp35-cp35m-linux_armv7l.whl
Collecting jinja2>=2.10 (from homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl
Collecting certifi>=2018.04.16 (from homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl
Collecting ruamel.yaml==0.15.89 (from homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/89/a9/1b4f0b97cd19162b3b95bf9622e5cd8419dbd8d4f8cfab4be17a2babe074/ruamel.yaml-0.15.89.tar.gz
Collecting pip>=8.0.3 (from homeassistant==0.91.4)
  Downloading https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl (1.4MB)
Collecting python-slugify==1.2.6 (from homeassistant==0.91.4)
  Using cached https://www.piwheels.org/simple/python-slugify/python_slugify-1.2.6-py2.py3-none-any.whl
Collecting attrs==18.2.0 (from homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/3a/e1/5f9023cc983f1a628a8c2fd051ad19e76ff7b142a0faf329336f9a62a514/attrs-18.2.0-py2.py3-none-any.whl
Collecting urllib3<1.25,>=1.21.1 (from requests==2.21.0->homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/df/1c/59cca3abf96f991f2ec3131a4ffe72ae3d9ea1f5894abe8a9c5e3c77cfee/urllib3-1.24.2-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests==2.21.0->homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting idna<2.9,>=2.5 (from requests==2.21.0->homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl
Collecting six>=1.4.1 (from cryptography==2.5->homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting asn1crypto>=0.21.0 (from cryptography==2.5->homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting cffi!=1.11.3,>=1.8 (from cryptography==2.5->homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.gz
Collecting yarl<2.0,>=1.0 (from aiohttp==3.5.4->homeassistant==0.91.4)
  Using cached https://www.piwheels.org/simple/yarl/yarl-1.3.0-cp35-cp35m-linux_armv7l.whl
Collecting multidict<5.0,>=4.0 (from aiohttp==3.5.4->homeassistant==0.91.4)
  Using cached https://www.piwheels.org/simple/multidict/multidict-4.5.2-cp35-cp35m-linux_armv7l.whl
Collecting typing-extensions>=3.6.5; python_version < "3.7" (from aiohttp==3.5.4->homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/0f/62/c66e553258c37c33f9939abb2dd8d2481803d860ff68e635466f12aa7efa/typing_extensions-3.7.2-py3-none-any.whl
Collecting idna-ssl>=1.0; python_version < "3.7" (from aiohttp==3.5.4->homeassistant==0.91.4)
  Using cached https://www.piwheels.org/simple/idna-ssl/idna_ssl-1.1.0-py3-none-any.whl
Collecting MarkupSafe>=0.23 (from jinja2>=2.10->homeassistant==0.91.4)
  Using cached https://www.piwheels.org/simple/markupsafe/MarkupSafe-1.1.1-cp35-cp35m-linux_armv7l.whl
Collecting Unidecode>=0.04.16 (from python-slugify==1.2.6->homeassistant==0.91.4)
  Using cached https://files.pythonhosted.org/packages/31/39/53096f9217b057cb049fe872b7fc7ce799a1a89b76cf917d9639e7a558b5/Unidecode-1.0.23-py2.py3-none-any.whl
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography==2.5->homeassistant==0.91.4)
  Downloading https://www.piwheels.org/simple/pycparser/pycparser-2.19-py2.py3-none-any.whl (111kB)
Building wheels for collected packages: ruamel.yaml, cffi
  Running setup.py bdist_wheel for ruamel.yaml: started
  Running setup.py bdist_wheel for ruamel.yaml: still running...
  Running setup.py bdist_wheel for ruamel.yaml: finished with status 'done'
  Stored in directory: /home/homeassistant/.cache/pip/wheels/0e/8c/43/25c5a0fcc85d062c080b7225c67b361666c2c0b08a80c736ea
  Running setup.py bdist_wheel for cffi: started
  Running setup.py bdist_wheel for cffi: finished with status 'done'
  Stored in directory: /home/homeassistant/.cache/pip/wheels/94/a7/7a/9782ab473d88ec2d4994a7dd2d006b1352c71da3ad34ebcaeb
Successfully built ruamel.yaml cffi
Installing collected packages: async-timeout, pyyaml, PyJWT, urllib3, certifi, chardet, idna, requests, six, asn1crypto, pycparser, cffi, cryptography, pytz, astral, voluptuous, voluptuous-serialize, bcrypt, multidict, yarl, typing-extensions, attrs, idna-ssl, aiohttp, MarkupSafe, jinja2, ruamel.yaml, pip, Unidecode, python-slugify, homeassistant
  Found existing installation: pip 9.0.1
    Uninstalling pip-9.0.1:
      Successfully uninstalled pip-9.0.1
Successfully installed MarkupSafe-1.1.1 PyJWT-1.6.4 Unidecode-1.0.23 aiohttp-3.5.4 asn1crypto-0.24.0 astral-1.10.1 async-timeout-3.0.1 attrs-18.2.0 bcrypt-3.1.6 certifi-2019.3.9 cffi-1.12.3 chardet-3.0.4 cryptography-2.5 homeassistant-0.91.4 idna-2.8 idna-ssl-1.1.0 jinja2-2.10.1 multidict-4.5.2 pip-19.0.3 pycparser-2.19 python-slugify-1.2.6 pytz-2019.1 pyyaml-3.13 requests-2.21.0 ruamel.yaml-0.15.89 six-1.12.0 typing-extensions-3.7.2 urllib3-1.24.2 voluptuous-0.11.5 voluptuous-serialize-2.1.0 yarl-1.3.0
Deactivating virtualenv
cat: /home/homeassistant/.homeassistant/.HA_VERSION: No such file or directory
INFO:homeassistant.util.package:Attempting install of colorlog==4.0.2
Testing configuration at /home/homeassistant/.homeassistant/
Failed config
  General Errors:
    - File configuration.yaml not found.

Successful config (partial)
Config check failed for new version, do you want to revert? [Y/n] : n
Restarting Home Assistant
Checking the installation...

Upgrade script completed..
Note that it may take some time to start up after an upgrade.

I could see the service started successfully:

systemctl status [email protected][email protected] - Home Assistant for homeassistant
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-04-24 00:57:53 AEST; 36s ago
 Main PID: 22387 (hass)
   CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
           ├─22387 /srv/homeassistant/bin/python3 /srv/homeassistant/bin/hass
           └─22425 /srv/homeassistant/bin/python3 -m pip install --quiet aiohttp_cors==0.7.0 --upgrade --constraint /srv/homeassistant/lib/python3.5/site-packages/homeassistant/package_constraints.txt

Apr 24 00:58:14 hassbian hass[22387]: 2019-04-24 00:58:14 INFO (MainThread) [homeassistant.loader] Loaded sun from homeassistant.components.sun
Apr 24 00:58:14 hassbian hass[22387]: 2019-04-24 00:58:14 INFO (MainThread) [homeassistant.loader] Loaded system_health from homeassistant.components.system_health
Apr 24 00:58:14 hassbian hass[22387]: 2019-04-24 00:58:14 INFO (MainThread) [homeassistant.loader] Loaded updater from homeassistant.components.updater
Apr 24 00:58:14 hassbian hass[22387]: 2019-04-24 00:58:14 INFO (MainThread) [homeassistant.loader] Loaded zeroconf from homeassistant.components.zeroconf
Apr 24 00:58:14 hassbian hass[22387]: 2019-04-24 00:58:14 INFO (MainThread) [homeassistant.loader] Loaded tts from homeassistant.components.tts
Apr 24 00:58:14 hassbian hass[22387]: 2019-04-24 00:58:14 INFO (MainThread) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery
Apr 24 00:58:14 hassbian hass[22387]: 2019-04-24 00:58:14 INFO (MainThread) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
Apr 24 00:58:14 hassbian hass[22387]: 2019-04-24 00:58:14 INFO (MainThread) [homeassistant.loader] Loaded introduction from homeassistant.components.introduction
Apr 24 00:58:14 hassbian hass[22387]: 2019-04-24 00:58:14 INFO (MainThread) [homeassistant.bootstrap] Home Assistant core initialized
Apr 24 00:58:14 hassbian hass[22387]: 2019-04-24 00:58:14 INFO (Thread-14) [homeassistant.util.package] Attempting install of aiohttp_cors==0.7.0