My (outdated) Quick Start for Home Assistant Core on FreeNAS 11.2

Just for record I got it working posted what I did in the other thread, since I was getting some responses there.

Followed all the steps of “iocage standard-jail – Scripted Install” to detail and after everything completed i can get port :8123 to come up. Rest of the ports (5050, 3218) work no problem but i can’t get 8123 to come online.

Any assistance will be highly appreciated.

Thanks

I’m not sure what you mean when you say you can get port 8123 to come up but not come online.

I assume this is a clean install? Did you use the “example” configuration offered by the script? or are you trying to use a pre-existing configuration directory?

Can you try this. ssh into your FreeNAS or however you get to it’s console. Then:

iocage console homeassistant
service homeassistant stop
mv /home/hass/homeassistant /home/hass/homeassistant.old
service homeassistant start

This will basically factory reset HA and cause it to load it’s own default configuration. All previous configuration will be kept safe in the homeassistant.old directory. Curious if you can start and access HA with clean default settings.

Hello @troy

This is what I’m getting.

image

I followed your instructions and still get that. Below you have a copy of the logs. Any idea?

Thanks

2019-10-31 16:31:28 ERROR (MainThread) [homeassistant.setup] Error during setup of component lovelace
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 172, in _async_setup_component
    hass, processed_config
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/lovelace/__init__.py", line 66, in async_setup
    hass.components.frontend.async_register_built_in_panel(
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 421, in __getattr__
    component: Optional[ModuleType] = integration.get_component()
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 223, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/srv/homeassistant/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/frontend/__init__.py", line 10, in <module>
    import hass_frontend
ModuleNotFoundError: No module named 'hass_frontend'
2019-10-31 16:31:28 ERROR (MainThread) [homeassistant.setup] Error during setup of component config
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 172, in _async_setup_component
    hass, processed_config
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/config/__init__.py", line 34, in async_setup
    hass.components.frontend.async_register_built_in_panel(
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 421, in __getattr__
    component: Optional[ModuleType] = integration.get_component()
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 223, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/srv/homeassistant/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/frontend/__init__.py", line 10, in <module>
    import hass_frontend
ModuleNotFoundError: No module named 'hass_frontend'
2019-10-31 16:31:28 ERROR (MainThread) [homeassistant.setup] Error during setup of component history
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 172, in _async_setup_component
    hass, processed_config
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/history/__init__.py", line 283, in async_setup
    hass.components.frontend.async_register_built_in_panel(
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 421, in __getattr__
    component: Optional[ModuleType] = integration.get_component()
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 223, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/srv/homeassistant/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/frontend/__init__.py", line 10, in <module>
    import hass_frontend
ModuleNotFoundError: No module named 'hass_frontend'
2019-10-31 16:31:28 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: lovelace
2019-10-31 16:31:28 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2019-10-31 16:31:28 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend
2019-10-31 16:31:28 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.
2019-10-31 16:31:28 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2019-10-31 16:31:28 ERROR (MainThread) [homeassistant.setup] Setup failed for map: Could not set up all dependencies.
2019-10-31 16:32:05 ERROR (MainThread) [homeassistant.setup] Setup failed for mobile_app: Unable to import component
2019-10-31 16:32:05 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: config, frontend, history, logbook, map, mobile_app
2019-10-31 16:32:05 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.
2019-10-31 16:32:05 WARNING (MainThread) [homeassistant.bootstrap] Python 3.6 support is deprecated and will be removed in the first release after December 15, 2019. Please upgrade Python to 3.7.0 or higher.
2019-10-31 16:32:06 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:32:11 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:32:16 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:32:21 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:32:26 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:32:31 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:32:36 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:32:41 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:32:46 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:32:51 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:32:56 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:01 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:06 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:11 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:16 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:21 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:26 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:32 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:37 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:42 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:47 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:52 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:33:57 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:34:02 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:34:07 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:34:12 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:34:17 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:34:22 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1
2019-10-31 16:34:27 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 127.0.0.1

ugh… I just ran through myself. I get the same error… Something is in fact broke. I’ll try to get this tracked down and fixed asap. Was planning to update this soon anyways. (switch to python 3.7 and some small changes) I have a few more weeks of busy work schedule before I can work on that update but I’ll see what I can do to at least get the script working again until then. Sorry for the inconvenience.

So I found a few things going on here. Both issues appear in HA 0.101.

First is breaking change to my “out of the box” configuration for appdaemon and configurator. Since these both rely on the old api password (user were expected to change this anyways) but now this entry will cause config validation to fail.

Second I do not know why the hass_front-end will not load from a clean install to ha 0.101.


HA version 0.100.3 will still work as expected. Here’s what you can do to get up and running.

First log back into your FreeNAS console. Then:

iocage console homeassistant
service homeassistant stop

Now we change to user hass and downgrade to homeassistant 0.100.3

su - hass
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant==0.100.3
deactivate && exit

service homeassistant start

So now you should be able to reach homeassistant on port 8123.

Next (if your using example config I provide) you need to edit configuration.yaml.
You can use the configurator. You need to comment out or remove lines 20 - 25.

## Show links to resources in frontend
#introduction:

# This default password was set so appdaemon/hadashboard can work "out of the box"
#http:       # YOU SHOULD DISABLE THIS OR AT LEAST CHANGE IT TO SOMETHING OF YOUR OWN
# api_password: !secret ha_api_key # CONSIDER USING A LONG LIVE ACCESS TOKEN INSTEAD

You need to use a long-lived access token for appdaemon and the configurator (see links)

After you get appdaemon and configurator set up with long-lived tokens you should restart the jail to confirm everything is working before finally upgrading back to the latest HA.

HA should come back after reboot and you should not see any failed logins from 127.0.1.1. Finally you can upgrade back to latest HA. Since you used the script install you can just call script to upgrade. From your FreeNAS console

sudo iocage exec homeassistant bash update

Sorry for so much extra work but I tested these steps from a clean install and they seem to work. Hopefully this can provide a workaround until I get some time to further investigate

@troy,

Thanks for the directions. It worked perfectly. Please advised once upgrade to python 3.7 is available so we could patch it.

Thanks again for your assistance.

D

After upgarde to 101.2 I cant access my frontend (? the login page) anymore.

I get this error: ERR_CONNECTION_REFUSED

Anyone that has any suggestions? I am running this from LAN, but neither my phone or my laptop can access it with remote either… I was not running any SSL before this upgrade and none after either…

@pomah

Please share you homeassistant log.

Ill have a look.

These are parts of the log, there are some z-wave and hikvision errors too, but they do not seem to be related to this

2019-11-03 11:15:48 ERROR (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /home/hass/homeassistant/configuration.yaml contains duplicate key "homeassistant". Check lines 0 and 48.
2019-11-03 11:15:48 ERROR (MainThread) [homeassistant.config] Invalid config for [http]: [api_password] is an invalid option for [http]. Check: http->http->api_password. (See /home/hass/homeassistant/configuration.yaml, line 24). Please check the docs at https://home-assistant.io/integrations/http/
2019-11-03 11:15:48 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Invalid config.
2019-11-03 11:15:48 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_log. Setup failed for dependencies: http
2019-11-03 11:15:48 ERROR (MainThread) [homeassistant.setup] Setup failed for system_log: Could not set up all dependencies.
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of websocket_api. Setup failed for dependencies: http
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not set up all dependencies.
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of auth. Setup failed for dependencies: http
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Setup failed for auth: Could not set up all dependencies.
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of config. Setup failed for dependencies: http
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Could not set up all dependencies.
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of tts. Setup failed for dependencies: http
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Could not set up all dependencies.
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of history. Setup failed for dependencies: http
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not set up all dependencies.
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of media_player. Setup failed for dependencies: http
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Setup failed for media_player: Could not set up all dependencies.
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of api. Setup failed for dependencies: http
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not set up all dependencies.
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of webhook. Setup failed for dependencies: http
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Setup failed for webhook: Could not set up all dependencies.
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_health. Setup failed for dependencies: http
2019-11-03 11:15:50 ERROR (MainThread) [homeassistant.setup] Setup failed for system_health: Could not set up all dependencies.

Ok, removing the API password from HTTP fixed this. Sorry for not reading the log before posting…

There is a breaking change in the example configuration I provided

You need to use long live access tokens now. API password causes configuration error starting with HA 0.101

Edit: no worries

Hello @troy,

Something i’ve detected after following your directions is some login attempt failed errors

image

I was able to upgrade and everything seems to be working without any issues but still get those on the logs too.

Any idea?

Thanks

@Dario_Lemes_Gonzalez

Im guessing you using appdaemon and/or the configurator with my example config files

Did you create a separate long live access token for each? After you create them, each access token will need to be set in the corresponding configuration files. appdaemon.yaml and configurator.conf. Also only restarting home assistant is not enough. Both appdaemon and the configurator need restarted as well. Easiest way to do that is just restart the jail itself.

@troy,

I did. I created a token for each one and applied it as document says. Restarted the jail also. Any ideas?

Thanks

@Dario_Lemes_Gonzalez,

Sorry for the delay, (travel, work, trade show, crazy)

So I guess we need to narrow down where to look. Let’s try this first to determine who the culprit is.
Let’s first just turn appdaemon and the configurator off to be sure the error goes away, Then we’ll re-enable each, one at a time to figure out who is misbehaving.

Starting from your FreeNAS console we log into the jail and stop appdaemon and configurator, then restart HA

iocage console homeassistant
service appdaemon stop
service configurator stop
service homeassistant restart

At this point the error should be gone for sure. Please confirm before moving on.
Next we can re-enable appdaemon

service appdaemon start
service homeassistant restart   ## I don't know if you really need to restart HA again

Check HA logs for login error, then re-enable the configurator

service configurator restart
service homeassistant restart   ## I don't know if you really need to restart HA again

Check HA logs again for login error.
When we know who the culprit is we can move on to check the related config file.

Hey Troy.

I’m relatively new to FreeNas 11.2, I have it running plex but I have not dove any deeper than that since I set it up. I am trying to get Home Assistant installed and I have been following your guide to install using the script.

I can install ok but I can’t connect to the url.

The URL I get is

Home Assistant: http://192.168.0.40:8123

It just tells me the site can’t be reached. I can however reach HA Dashboard and Configurator.

Here are the logs from the homeassistant_daemon. It appears to fail on a lot of dependencies. Any help would be appreciated.

2019-11-04 23:17:52 INFO (SyncWorker_0) [homeassistant.config] Upgrading configuration directory from 0.7.7 to 0.101.2
2019-11-04 23:17:52 INFO (SyncWorker_0) [homeassistant.config] Migrating google tts to google_translate tts
2019-11-04 23:17:53 INFO (SyncWorker_2) [homeassistant.util.package] Attempting install of pyotp==2.3.0
2019-11-04 23:17:54 INFO (SyncWorker_3) [homeassistant.util.package] Attempting install of PyQRCode==1.2.1
2019-11-04 23:17:56 INFO (SyncWorker_14) [homeassistant.loader] Loaded group from homeassistant.components.group
2019-11-04 23:17:56 INFO (SyncWorker_13) [homeassistant.loader] Loaded updater from homeassistant.components.updater
2019-11-04 23:17:56 INFO (SyncWorker_10) [homeassistant.loader] Loaded automation from homeassistant.components.automation
2019-11-04 23:17:56 INFO (SyncWorker_9) [homeassistant.loader] Loaded http from homeassistant.components.http
2019-11-04 23:17:56 INFO (SyncWorker_18) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2019-11-04 23:17:56 INFO (SyncWorker_15) [homeassistant.loader] Loaded default_config from homeassistant.components.default_config
2019-11-04 23:17:56 INFO (SyncWorker_12) [homeassistant.loader] Loaded tts from homeassistant.components.tts
2019-11-04 23:17:56 INFO (SyncWorker_7) [homeassistant.loader] Loaded panel_iframe from homeassistant.components.panel_iframe
2019-11-04 23:17:56 INFO (SyncWorker_16) [homeassistant.loader] Loaded script from homeassistant.components.script
2019-11-04 23:17:56 INFO (SyncWorker_17) [homeassistant.loader] Loaded homeassistant from homeassistant.components.homeassistant
2019-11-04 23:17:56 INFO (SyncWorker_8) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
2019-11-04 23:17:56 INFO (SyncWorker_19) [homeassistant.loader] Loaded device_automation from homeassistant.components.device_automation
2019-11-04 23:17:56 INFO (MainThread) [homeassistant.setup] Setting up persistent_notification
2019-11-04 23:17:56 INFO (MainThread) [homeassistant.setup] Setup of domain persistent_notification took 0.0 seconds.
2019-11-04 23:17:56 INFO (SyncWorker_11) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
2019-11-04 23:17:56 INFO (MainThread) [homeassistant.setup] Setting up homeassistant
2019-11-04 23:17:56 INFO (MainThread) [homeassistant.setup] Setup of domain homeassistant took 0.0 seconds.
2019-11-04 23:17:56 INFO (SyncWorker_10) [homeassistant.loader] Loaded webhook from homeassistant.components.webhook
2019-11-04 23:17:56 INFO (SyncWorker_5) [homeassistant.loader] Loaded api from homeassistant.components.api
2019-11-04 23:17:56 INFO (SyncWorker_9) [homeassistant.loader] Loaded cloud from homeassistant.components.cloud
2019-11-04 23:17:56 INFO (SyncWorker_1) [homeassistant.loader] Loaded auth from homeassistant.components.auth
2019-11-04 23:17:56 INFO (SyncWorker_3) [homeassistant.loader] Loaded config from homeassistant.components.config
2019-11-04 23:17:56 INFO (SyncWorker_9) [homeassistant.loader] Loaded lovelace from homeassistant.components.lovelace
2019-11-04 23:17:56 INFO (SyncWorker_2) [homeassistant.loader] Loaded onboarding from homeassistant.components.onboarding
2019-11-04 23:17:56 INFO (SyncWorker_14) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
2019-11-04 23:17:56 INFO (SyncWorker_15) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
2019-11-04 23:17:56 INFO (SyncWorker_6) [homeassistant.loader] Loaded history from homeassistant.components.history
2019-11-04 23:17:56 INFO (SyncWorker_0) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
2019-11-04 23:17:56 INFO (SyncWorker_18) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
2019-11-04 23:17:56 INFO (SyncWorker_12) [homeassistant.loader] Loaded map from homeassistant.components.map
2019-11-04 23:17:56 INFO (SyncWorker_7) [homeassistant.loader] Loaded mobile_app from homeassistant.components.mobile_app
2019-11-04 23:17:56 INFO (SyncWorker_16) [homeassistant.loader] Loaded person from homeassistant.components.person
2019-11-04 23:17:56 INFO (SyncWorker_17) [homeassistant.loader] Loaded ssdp from homeassistant.components.ssdp
2019-11-04 23:17:56 INFO (SyncWorker_8) [homeassistant.loader] Loaded sun from homeassistant.components.sun
2019-11-04 23:17:56 INFO (SyncWorker_13) [homeassistant.loader] Loaded system_health from homeassistant.components.system_health
2019-11-04 23:17:56 INFO (SyncWorker_19) [homeassistant.loader] Loaded zeroconf from homeassistant.components.zeroconf
2019-11-04 23:17:56 INFO (MainThread) [homeassistant.bootstrap] Setting up {'system_log'}
2019-11-04 23:17:56 INFO (SyncWorker_11) [homeassistant.util.package] Attempting install of aiohttp_cors==0.7.0
2019-11-04 23:17:58 ERROR (MainThread) [homeassistant.config] Invalid config for [http]: [api_password] is an invalid option for [http]. Check: http->http->api_password. (See /home/hass/homeassistant/configuration.yaml, line 24). Please check the docs at https://home-assistant.io/integrations/http/
2019-11-04 23:17:58 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Invalid config.
2019-11-04 23:17:58 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_log. Setup failed for dependencies: http
2019-11-04 23:17:58 ERROR (MainThread) [homeassistant.setup] Setup failed for system_log: Could not set up all dependencies.
2019-11-04 23:17:58 INFO (SyncWorker_9) [homeassistant.util.package] Attempting install of sqlalchemy==1.3.10
2019-11-04 23:18:02 INFO (MainThread) [homeassistant.setup] Setting up recorder
2019-11-04 23:18:03 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.4 seconds.
2019-11-04 23:18:03 INFO (MainThread) [homeassistant.setup] Setting up sun
2019-11-04 23:18:03 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.0 seconds.
2019-11-04 23:18:03 INFO (MainThread) [homeassistant.setup] Setting up lovelace
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Error during setup of component lovelace
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 172, in _async_setup_component
    hass, processed_config
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/lovelace/__init__.py", line 66, in async_setup
    hass.components.frontend.async_register_built_in_panel(
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 421, in __getattr__
    component: Optional[ModuleType] = integration.get_component()
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 223, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/srv/homeassistant/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/frontend/__init__.py", line 10, in <module>
    import hass_frontend
ModuleNotFoundError: No module named 'hass_frontend'
2019-11-04 23:18:03 INFO (SyncWorker_2) [homeassistant.util.package] Attempting install of netdisco==2.6.0
2019-11-04 23:18:03 INFO (SyncWorker_14) [homeassistant.loader] Loaded yr from homeassistant.components.yr
2019-11-04 23:18:03 INFO (MainThread) [homeassistant.setup] Setting up person
2019-11-04 23:18:03 INFO (MainThread) [homeassistant.setup] Setting up group
2019-11-04 23:18:03 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.0 seconds.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of auth. Setup failed for dependencies: http
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for auth: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of history. Setup failed for dependencies: http
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of webhook. Setup failed for dependencies: http
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for webhook: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_health. Setup failed for dependencies: http
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for system_health: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of websocket_api. Setup failed for dependencies: http
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of api. Setup failed for dependencies: http
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of config. Setup failed for dependencies: http
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Could not set up all dependencies.
2019-11-04 23:18:03 INFO (MainThread) [homeassistant.setup] Setting up script
2019-11-04 23:18:03 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of tts. Setup failed for dependencies: http
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for introduction: Integration not found.
2019-11-04 23:18:03 INFO (MainThread) [homeassistant.setup] Setup of domain person took 0.0 seconds.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: auth, http
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of device_automation. Setup failed for dependencies: webhook
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for device_automation: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of cloud. Setup failed for dependencies: http, webhook
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of zeroconf. Setup failed for dependencies: api
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for zeroconf: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: api, auth, http, lovelace, onboarding, system_log, websocket_api
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of automation. Setup failed for dependencies: device_automation, webhook
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for automation: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of mobile_app. Setup failed for dependencies: cloud, http, webhook
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for mobile_app: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for map: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of panel_iframe. Setup failed for dependencies: frontend
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for panel_iframe: Could not set up all dependencies.
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend
2019-11-04 23:18:03 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.
2019-11-04 23:18:05 INFO (MainThread) [homeassistant.setup] Setting up ssdp
2019-11-04 23:18:05 INFO (MainThread) [homeassistant.setup] Setup of domain ssdp took 0.0 seconds.
2019-11-04 23:18:05 INFO (SyncWorker_18) [homeassistant.util.package] Attempting install of distro==1.4.0
2019-11-04 23:18:06 INFO (MainThread) [homeassistant.setup] Setting up updater
2019-11-04 23:18:06 INFO (SyncWorker_16) [homeassistant.util.package] Attempting install of xmltodict==0.12.0
2019-11-04 23:18:06 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
2019-11-04 23:18:06 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: automation, cloud, config, frontend, history, logbook, map, mobile_app, system_health, zeroconf
2019-11-04 23:18:06 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.
2019-11-04 23:18:06 INFO (SyncWorker_7) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor
2019-11-04 23:18:06 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
2019-11-04 23:18:06 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 0.0 seconds.
2019-11-04 23:18:06 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.updater
2019-11-04 23:18:06 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.updater entity: binary_sensor.updater
2019-11-04 23:18:08 INFO (MainThread) [homeassistant.setup] Setting up sensor
2019-11-04 23:18:08 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.yr
2019-11-04 23:18:08 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.3 seconds.
2019-11-04 23:18:11 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 18.79s
2019-11-04 23:18:11 WARNING (MainThread) [homeassistant.bootstrap] Python 3.6 support is deprecated and will be removed in the first release after December 15, 2019. Please upgrade Python to 3.7.0 or higher.
2019-11-04 23:18:11 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2019-11-04 23:18:11 INFO (MainThread) [homeassistant.core] Timer:starting

@skearney First welcome to the forums

Sorry this isn’t working for you. There has been a breaking change to my example configuration file.

Unfortunately, support for the API password has been removed from HA beginning with 0.101 and now the configuration will no longer pass validation.

To get HA running:

If your still having trouble we may need to downgrade to HA 0.100.3 just to get the UI configured. I have had trouble getting HA to start with a clean install after version 0.101 (but I’ve not had time to investigate the issue because of travel for work)

The workaround for now seems to be a downgrade to HA 0.100.3 just long enough to go through initial configuration. Once the HA GUI is up and running we can upgrade again to the latest HA and everything will continue to work.

Sorry for the inconvenience, it will likely be a week or two before I can have time to fix this properly. If you still can not get to the GUI after commenting out the configuration lines as shown above, You can find the steps to downgrade HA HERE

Another question that I cant find the answer too:

I am trying to update to python 3.7 since that is a future requirment, but I get this error when following the above guide:

[root@hass /]# pkg install -y python37 py37-sqlite3 ca_root_nss python3.7 -m ensurepip
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'python3.7' have been found in the repositories

Any ideas on how to solve it?

1 Like

Upgrading Home Assistant to use python 3.7

We can’t just upgrade the existing virtualenv. We’ll have to create a new one using python 3.7 and re-install Home Assistant.

First log into the HA jail and stop Home Assistant

iocage console homeassistant
service homeassistant stop

Next we’ll rename the existing virtualenv in case there is any need to restore it later.

mv /srv/homeassistant /srv/homeassistant.old

If you want to just remove the existing virtualenv you can do this instead

rm -rf /srv/homeassistant

With the old virtualenv either renamed or deleted we can proceed to install python 3.7 and create a new virtualenv.

pkg install -y python37 py37-sqlite3
python3.7 -m ensurepip
pip3 install --upgrade pip
pip3 install --upgrade virtualenv
install -d -g hass -o hass -m 775 -- /srv/homeassistant

Now we can switch to user hass , activate the virtualenv and re-install Home-Assistant

su - hass
   virtualenv -p /usr/local/bin/python3.7 /srv/homeassistant
   source /srv/homeassistant/bin/activate
   pip3 install --upgrade homeassistant

There seems to be some bug causing the front-end to not get installed properly.
For now we can get around this by installing it manually.

   pip3 install --upgrade home-assistant-frontend
   deactivate && exit

Finally restart homeassistant

service homeassistant start

Profit!

6 Likes