After upgrading from 0.70.1 to 0.72 HA doesn't open UI

Can someone give some help? It’s not opening at all. I have already cleared the cache.
Calling HA status from command line I get:

pi@raspberrypi:~ $ sudo systemctl status [email protected][email protected] - Home Assistant
Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-06-23 19:12:23 UTC; 21min ago
Main PID: 582 (hass)
CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
       └─582 /srv/homeassistant/bin/python3 /srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant

Jun 23 19:12:35 raspberrypi hass[582]: 2018-06-23 19:12:35 DEBUG (Thread-2) [homeassistant.util.yaml] Secret mqtt_username retrieved from secrets.yaml in folder /home/homeassistant/.
Jun 23 19:12:35 raspberrypi hass[582]: 2018-06-23 19:12:35 DEBUG (Thread-2) [homeassistant.util.yaml] Secret mqtt_password retrieved from secrets.yaml in folder /home/homeassistant/.
Jun 23 19:12:41 raspberrypi hass[582]: 2018-06-23 19:12:41 DEBUG (Thread-2) [homeassistant.util.yaml] Loading /home/homeassistant/.homeassistant/sensor/secrets.yaml
Jun 23 19:12:41 raspberrypi hass[582]: 2018-06-23 19:12:41 DEBUG (Thread-2) [homeassistant.util.yaml] Secret api_key retrieved from secrets.yaml in folder /home/homeassistant/.homeas
Jun 23 19:12:43 raspberrypi hass[582]: 2018-06-23 19:12:43 DEBUG (Thread-2) [homeassistant.util.yaml] Upgrading configuration directory from 0.70.1 to 0.72.0
Jun 23 19:12:44 raspberrypi hass[582]: Config directory: /home/homeassistant/.homeassistant

So, it’s running. It also says that it is upgrading, but it can’t be so long. MOre than 40 minutes…
I don’t know what to do.
I’m running HA over Raspbian Stretch.
Thanks!

I don´t know what went wrong:
I got this trying to run HASS into virtual environment:

2018-06-23 21:30:41 INFO (Thread-3) [homeassistant.util.package] Attempting install of home-assistant-frontend==20180622.1
2018-06-23 21:31:03 ERROR (Thread-3) [homeassistant.util.package] Unable to install package home-assistant-frontend==20180622.1: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/srv/homeassistant/lib/python3.5/site-packages/hass_frontend/18f2ebe14fed68d4d61b.chunk.js'
Consider using the `--user` option or check the permissions.
2018-06-23 21:31:03 ERROR (MainThread) [homeassistant.requirements] Not initializing frontend because could not install requirement home-assistant-frontend==20180622.1
2018-06-23 21:31:03 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not install all requirements.

I’m lost. How can I solve this?

Try looking at your log.

@FunkyBoT Do you have any custom components that might also require updating?

I had to restart my pi a couple of times, and it loaded for me

My log seems to not being written anymore. What I have there (with wrong timing) is:

2018-06-23 20:48:31 ERROR (Thread-2) [homeassistant.util.yaml] while scanning a simple key
  in "/home/homeassistant/.homeassistant/configuration.yaml", line 253, column 1
could not find expected ':'
  in "/home/homeassistant/.homeassistant/configuration.yaml", line 255, column 1
2018-06-23 20:48:31 ERROR (MainThread) [homeassistant.bootstrap] Error loading /home/homeassistant/.homeassistant/configuration.yaml: while scanning a simple key
  in "/home/homeassistant/.homeassistant/configuration.yaml", line 253, column 1
could not find expected ':'
  in "/home/homeassistant/.homeassistant/configuration.yaml", line 255, column 1

I understand that this error (simple key) is not present anymore.
I only commented almost all my configuration.yaml in the hope that is some configuration error that is preventing hass to start.

I understand that I have only “google geocode” added.

I rebooted many times with no success.

There is also this error when trying to run hass from the virtual environment:

2018-06-23 21:31:14 WARNING (MainThread) [homeassistant.setup] Setup of config is taking over 10 seconds.
2018-06-23 21:31:38 ERROR (Thread-7) [homeassistant.util.package] Unable to install package warrant==0.6.1: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/srv/homeassistant/lib/python3.5/site-packages/ecdsa'
Consider using the `--user` option or check the permissions.
2018-06-23 21:31:38 ERROR (MainThread) [homeassistant.requirements] Not initializing cloud because could not install requirement warrant==0.6.1
2018-06-23 21:31:38 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Could not install all requirements.

Since I don’t know how to do it, how I would uninstall HA? Then avoiding to install OS, Mosquitto, Pi-Hole, Influx, Grafana… It would be a pain…

Unistalled with:

pip3 uninstall homeassistant

Installed again.

I still have the problem.
For some reason sqlalchemy was not updated. Version 1.2.8 is required, mut I have 1.2.7 and I cannot get a way to update it.

(homeassistant) pi@raspberrypi:/srv/homeassistant $ pip3 install --upgrade sqlalchemy
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting sqlalchemy
  Using cached https://www.piwheels.org/simple/sqlalchemy/SQLAlchemy-1.2.8-cp35-cp35m-linux_armv7l.whl
Installing collected packages: sqlalchemy
  Found existing installation: SQLAlchemy 1.2.7
    Uninstalling SQLAlchemy-1.2.7:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/srv/homeassistant/lib/python3.5/site-packages/SQLAlchemy-1.2.7.dist-info/DESCRIPTION.rst'
Consider using the `--user` option or check the permissions.

Sadly it’s above my knowledge…
It must be a way to update it.
Ideas?

did you make a backup of your sd card before doing the upgrade? You did make a backup…right? :wink:

No. I see that I should keep an image of entire sdcard (what is the best way to do it in windows?).
But I have back up of all my configuration files.
Since the problem is only with HA, it should have a way to fix it. I hope someone with more knowledge could help to avoid a very bigger task for the sunday… aff

“Consider using the --user option or check the permissions.”
How I would write the right command?

@FunkyBoT I note that you commented out things in your configuration.yaml, but if you temporarily move it and restart HA, it will create a fresh one. That would at least rule out something in your configuration.
You can try uninstalling HA and then reinstall the previously working version.

pip3 install homeassistant==70.1

Thanks for your help.
I’m having troubles with permissions.
I tryed to uninstall v0.72.0. See what I got:

(homeassistant) pi@raspberrypi:/srv/homeassistant $ pip3 uninstall homeassistant
Uninstalling homeassistant-0.72.0:
  Would remove:
    /srv/homeassistant/bin/hass
    /srv/homeassistant/lib/python3.5/site-packages/homeassistant-0.72.0.dist-info/*
    /srv/homeassistant/lib/python3.5/site-packages/homeassistant/*
Proceed (y/n)? y
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.5/shutil.py", line 544, in move
    os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: '/srv/homeassistant/bin/hass' -> '/tmp/pip-uninstall-2sp9n_kl/srv/homeassistant/bin/hass'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_internal/basecommand.py", line 228, in main
    status = self.run(options, args)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_internal/commands/uninstall.py", line 68, in run
    auto_confirm=options.yes, verbose=self.verbosity > 0,
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 661, in uninstall
    uninstalled_pathset.remove(auto_confirm, verbose)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_internal/req/req_uninstall.py", line 219, in remove
    renames(path, new_path)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_internal/utils/misc.py", line 273, in renames
    shutil.move(old, new)
  File "/usr/lib/python3.5/shutil.py", line 559, in move
    os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/srv/homeassistant/bin/hass'
(homeassistant) pi@raspberrypi:/srv/homeassistant $

Try with sudo

I got to unistall with sudo.
Had to change your command to:

(homeassistant) pi@raspberrypi:/srv/homeassistant $ pip3 install homeassistant==0.70.1
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting homeassistant==0.70.1
  Using cached https://files.pythonhosted.org/packages/dd/f2/2ef935add2d07bc1a5e238b94ffe7c680bdc461bc67a19671736d50eae19/homeassistant-0.70.1-py3-none-any.whl
Requirement already satisfied: jinja2>=2.10 in ./lib/python3.5/site-packages (from homeassistant==0.70.1) (2.10)
Requirement already satisfied: pip>=8.0.3 in ./lib/python3.5/site-packages (from homeassistant==0.70.1) (10.0.1)
Requirement already satisfied: requests==2.18.4 in ./lib/python3.5/site-packages (from homeassistant==0.70.1) (2.18.4)
Requirement already satisfied: pytz>=2018.04 in ./lib/python3.5/site-packages (from homeassistant==0.70.1) (2018.4)
Requirement already satisfied: attrs==18.1.0 in ./lib/python3.5/site-packages (from homeassistant==0.70.1) (18.1.0)
Requirement already satisfied: typing<4,>=3 in ./lib/python3.5/site-packages (from homeassistant==0.70.1) (3.6.4)
Collecting aiohttp==3.1.3 (from homeassistant==0.70.1)
  Downloading https://www.piwheels.org/simple/aiohttp/aiohttp-3.1.3-cp35-cp35m-linux_armv7l.whl (627kB)
    100% |████████████████████████████████| 634kB 2.0MB/s
Requirement already satisfied: pyyaml<4,>=3.11 in ./lib/python3.5/site-packages (from homeassistant==0.70.1) (3.12)
Requirement already satisfied: voluptuous==0.11.1 in ./lib/python3.5/site-packages (from homeassistant==0.70.1) (0.11.1)
Requirement already satisfied: certifi>=2018.04.16 in ./lib/python3.5/site-packages (from homeassistant==0.70.1) (2018.4.16)
Requirement already satisfied: astral==1.6.1 in ./lib/python3.5/site-packages (from homeassistant==0.70.1) (1.6.1)
Collecting async-timeout==2.0.1 (from homeassistant==0.70.1)
  Using cached https://files.pythonhosted.org/packages/1d/b9/213521db2918b5b7f7df333a33ea3d38ba70ba705d9db6c29f0343c213ea/async_timeout-2.0.1-py3-none-any.whl
Requirement already satisfied: MarkupSafe>=0.23 in ./lib/python3.5/site-packages (from jinja2>=2.10->homeassistant==0.70.1) (1.0)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./lib/python3.5/site-packages (from requests==2.18.4->homeassistant==0.70.1) (3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in ./lib/python3.5/site-packages (from requests==2.18.4->homeassistant==0.70.1) (2.6)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in ./lib/python3.5/site-packages (from requests==2.18.4->homeassistant==0.70.1) (1.22)
Requirement already satisfied: yarl<2.0,>=1.0 in ./lib/python3.5/site-packages (from aiohttp==3.1.3->homeassistant==0.70.1) (1.2.4)
Requirement already satisfied: multidict<5.0,>=4.0 in ./lib/python3.5/site-packages (from aiohttp==3.1.3->homeassistant==0.70.1) (4.3.1)
Requirement already satisfied: idna-ssl>=1.0 in ./lib/python3.5/site-packages (from aiohttp==3.1.3->homeassistant==0.70.1) (1.0.1)
Installing collected packages: async-timeout, aiohttp, homeassistant
  Found existing installation: async-timeout 3.0.0
    Uninstalling async-timeout-3.0.0:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/srv/homeassistant/lib/python3.5/site-packages/async_timeout-3.0.0.dist-info/INSTALLER'
Consider using the `--user` option or check the permissions.

Should I do it with sudo too?

You can give it a try.

Ok, got to install 0.71.0 with sudo again.
But when I run it it seems that it stiil get in trouble with sqlalchemy again:

(homeassistant) pi@raspberrypi:/srv/homeassistant $ sudo hass
Config directory: /root/.homeassistant
2018-06-24 00:05:43 INFO (Thread-2) [homeassistant.config] Upgrading configuration directory from 0.72.0 to 0.70.1
2018-06-24 00:05:43 INFO (Thread-2) [homeassistant.config] Migrating old system configuration files to new locations
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=turn_off, domain=homeassistant>
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=turn_on, domain=homeassistant>
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=toggle, domain=homeassistant>
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=stop, domain=homeassistant>
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=restart, domain=homeassistant>
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=check_config, domain=homeassistant>
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=reload_core_config, domain=homeassistant>
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=create, domain=persistent_notification>
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=dismiss, domain=persistent_notification>
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.bootstrap] Home Assistant core initialized
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.loader] Loaded introduction from homeassistant.components.introduction
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.setup] Setting up introduction
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.components.introduction]

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        Hello, and welcome to Home Assistant!

        We'll hope that we can make all your dreams come true.

        Here are some resources to get started:

         - Configuring Home Assistant:
           https://home-assistant.io/getting-started/configuration/

         - Available components:
           https://home-assistant.io/components/

         - Troubleshooting your configuration:
           https://home-assistant.io/getting-started/troubleshooting-configuration/

         - Getting help:
           https://home-assistant.io/help/

        This message is generated by the introduction component. You can
        disable it in configuration.yaml.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2018-06-24 00:05:43 INFO (MainThread) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds.
2018-06-24 00:05:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=introduction>
2018-06-24 00:05:44 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history
2018-06-24 00:05:44 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
2018-06-24 00:05:44 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http
2018-06-24 00:05:44 INFO (MainThread) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
2018-06-24 00:05:44 INFO (MainThread) [homeassistant.loader] Loaded api from homeassistant.components.api
2018-06-24 00:05:44 INFO (MainThread) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
2018-06-24 00:05:44 INFO (MainThread) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
2018-06-24 00:05:44 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=create, service_call_id=1966425616-1, service_data=message=
Here are some resources to get started:

 - [Configuring Home Assistant](https://home-assistant.io/getting-started/configuration/)
 - [Available components](https://home-assistant.io/components/)
 - [Troubleshooting your configuration](https://home-assistant.io/docs/configuration/troubleshooting/)
 - [Getting help](https://home-assistant.io/help/)

To not see this card popup in the future, edit your config in
`configuration.yaml` and disable the `introduction` component.
, title=Welcome Home!, domain=persistent_notification>
2018-06-24 00:05:44 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, new_state=<state persistent_notification.notification=notifying; message=Here are some resources to get started:

 - [Configuring Home Assistant](https://home-assistant.io/getting-started/configuration/)
 - [Available components](https://home-assistant.io/components/)
 - [Troubleshooting your configuration](https://home-assistant.io/docs/configuration/troubleshooting/)
 - [Getting help](https://home-assistant.io/help/)

To not see this card popup in the future, edit your config in
`configuration.yaml` and disable the `introduction` component., title=Welcome Home! @ 2018-06-24T00:05:44.977274+00:00>, entity_id=persistent_notification.notification>
2018-06-24 00:05:44 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1966425616-1>
2018-06-24 00:05:45 INFO (Thread-3) [homeassistant.util.package] Attempting install of sqlalchemy==1.2.7
2018-06-24 00:06:08 ERROR (Thread-3) [homeassistant.util.package] Unable to install package sqlalchemy==1.2.7: Exception:
Traceback (most recent call last):
  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 594, in urlopen
    chunked=chunked)
  File "/usr/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 "<string>", line 2, in raise_from
  File "/usr/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 "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353, in run
    wb.build(autobuilding=True)
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 620, in _prepare_file
    session=self.session, hashes=hashes)
  File "/usr/lib/python3/dist-packages/pip/download.py", line 821, in unpack_url
    hashes=hashes
  File "/usr/lib/python3/dist-packages/pip/download.py", line 659, in unpack_http_url
    hashes)
  File "/usr/lib/python3/dist-packages/pip/download.py", line 853, in _download_http_url
    stream=True,
  File "/usr/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 "/usr/lib/python3/dist-packages/pip/download.py", line 386, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/usr/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 "/usr/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 "/usr/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 "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/usr/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 "/usr/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'
2018-06-24 00:06:08 ERROR (MainThread) [homeassistant.requirements] Not initializing recorder because could not install requirement sqlalchemy==1.2.7
2018-06-24 00:06:08 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Could not install all requirements.
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=create, service_call_id=1966425616-2, service_data=notification_id=invalid_config, message=The following components and platforms could not be set up:

 - [recorder](https://home-assistant.io/components/recorder/)

Please check your config., title=Invalid config, domain=persistent_notification>
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, new_state=<state persistent_notification.invalid_config=notifying; message=The following components and platforms could not be set up:

 - [recorder](https://home-assistant.io/components/recorder/)

Please check your config., title=Invalid config @ 2018-06-24T00:06:08.417938+00:00>, entity_id=persistent_notification.invalid_config>
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1966425616-2>
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.setup] Setting up http
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=http>
2018-06-24 00:06:08 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of history. Setup failed for dependencies: recorder
2018-06-24 00:06:08 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not setup all dependencies.
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=websocket_api>
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.setup] Setting up api
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.setup] Setting up system_log
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=clear, domain=system_log>
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=write, domain=system_log>
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=system_log>
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=create, service_call_id=1966425616-3, service_data=notification_id=invalid_config, message=The following components and platforms could not be set up:

 - [history](https://home-assistant.io/components/history/)
 - [recorder](https://home-assistant.io/components/recorder/)

Please check your config., title=Invalid config, domain=persistent_notification>
2018-06-24 00:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state persistent_notification.invalid_config=notifying; message=The following components and platforms could not be set up:

I don’t know why, i noticed that for some reason it is creating config files in /root/.homeassistant

While it should be /home/homeassistant/.homeassistant

I’m confused.