Upgrade to 0.65.4 has broken HA

Hello,

I have a Hassbian image on a Raspi 3.

Since the recent upgrades (first to 0.65.4 then 0.65.5), HA is not booting anymore.

This is what HA provides as info

pi@hassbian:~ $ sudo systemctl status [email protected] -l

[email protected] - Home Assistant for homeassistant
Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
Active: active (running) since Thu 2018-03-15 23:17:58 CET; 4min 41s ago
Main PID: 788 (hass)
CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
├─788 /srv/homeassistant/bin/python3 /srv/homeassistant/bin/hass
└─823 /srv/homeassistant/bin/python3 -m pip install --quiet home-assistant-frontend==20180310.0 --upgrade --constraint /srv/homeassistant/lib/python3.5/site-packages/homeassistant/package_constraints.txt

Mar 15 23:18:03 hassbian hass[788]: 2018-03-15 23:18:03 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
Mar 15 23:18:03 hassbian hass[788]: 2018-03-15 23:18:03 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
Mar 15 23:18:03 hassbian hass[788]: 2018-03-15 23:18:03 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=websocket_api>
Mar 15 23:18:03 hassbian hass[788]: 2018-03-15 23:18:03 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
Mar 15 23:18:03 hassbian hass[788]: 2018-03-15 23:18:03 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=api>
Mar 15 23:18:03 hassbian hass[788]: 2018-03-15 23:18:03 INFO (Thread-5) [homeassistant.util.package] Attempting install of home-assistant-frontend==20180310.0
Mar 15 23:18:04 hassbian hass[788]: 2018-03-15 23:18:04 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=103 from 2018-03-15 21:44:33)
Mar 15 23:18:04 hassbian hass[788]: 2018-03-15 23:18:04 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: timestamp=1521152284.7018714, source=components/recorder/init.py, message=Ended unfinished sessio
Mar 15 23:18:04 hassbian hass[788]: 2018-03-15 23:18:04 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 1.7 seconds.
Mar 15 23:18:04 hassbian hass[788]: 2018-03-15 23:18:04 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=recorder>

It stops there indefinitely
System was updated

sudo apt-get update && sudo apt-get upgrade

before the upgrade

Testing the configuration:

hass --script check_config

does not give any information

pi@hassbian:~ $ sudo su -s /bin/bash homeassistant
homeassistant@hassbian:/home/pi $ source /srv/homeassistant/bin/activate
(homeassistant) homeassistant@hassbian:/home/pi $ hass --script check_config
Testing configuration at /home/homeassistant/.homeassistant
(homeassistant) homeassistant@hassbian:/home/pi $

Any idea where I should start looking?

I recently updated to 65.4 also following this advice:
Upgrade

Looks like you have the same set up of mine, good to double check that was your upgrade process.

Good luck.

Thank you JTPublic

I upgraded through hassbian-config - therefore I should not have messed up anything myself :wink: (at least not this time).

Ended unfinished session (id=103 from 2018-03-15 21:44:33)
This looks like it didn’t stop proparly before doing upgrade.

Did you use sudo hassbian-config upgrade homeassistant

dear ludeeus,

Yes indeed - I only upgraded through hassbian-config with the command you are indicating.

Furthermore, before upgrading I do a full update/upgrade and a reboot and I stop Home assistant from the web as it does not always close properly through the hassbian-config upgrade command (keeps stuck).

In this case there was a lot of changes in update/upgrade and I even did it twice in order to be sure to capture everything.

An upgrade from 0.65.3 to 0.65.4 to 0.65.5 still gives the same result (it has been stuck since 0.65.3).

In the config file I deleted the recorder section (I have Mariadb) to let HA start on the standard database - it creates the dabase file in the folder (home-assistant_v2.db), but then still gets stuck.

KR

Did you manage to resolve this?
It looks like its also trying to upgrade the frontend:

823 /srv/homeassistant/bin/python3 -m pip install --quiet home-assistant-frontend==20180310.0 --upgrade --constraint /srv/homeassistant/lib/python3.5/site-packages/homeassistant/package_constraints.txt

Hello Ludeeus,

I went back to 0.64 - did not manage to upgrade to 0.65.

Many thanks for your help

KR

Tried to ugrade to 0.66, without luck
Tried installing python 3.6 (3.6.5), did not work either

Clearly the error was linked to a failed installation of the front-end.

I tried to install the frontend manually from within venv

pip3 install home-assistant-fronted

and the install blocked on

Collecting ua-parser

I then did a manual install from ua-parser through:

pip install -e git+https://github.com/ua-parser/uap-python.git#egg=ua-parser #from git

and the frontend finally installed.
I have a couple of additionnal errors to clear, linked to the upgrade to python 3.6, but it appears the error was found.

1 Like