Upgrade 0.45 failed

After upgrade (AIO) hass load ok without any error (debug mode).
But i can’t connect… ?
Difficult to track as there are no errors in the log

I have the same problem when I update hassbian.

pi@hassbian:~ $ sudo systemctl status [email protected] -l
● [email protected] - Home Assistant for homeassistant
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
   Active: active (running) since Sun 2017-05-21 06:43:38 UTC; 5min ago
 Main PID: 3067 (hass)
   CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
           ├─3067 /srv/homeassistant/bin/python3 /srv/homeassistant/bin/hass
           ├─3088 /srv/homeassistant/bin/python3 -m pip install --quiet python_openzwave==0.4.0.31 --upgrade --target /home/homeassistant/.homeassistant/deps --constraint /srv/homeassistant/lib/python3.4/site-packages/homeassistant/package_constraints.txt
           ├─3111 /srv/homeassistant/bin/python3 -u -c import setuptools, tokenize;__file__='/tmp/pip-build-zbqwuf6v/python-openzwave/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec')) install --record /tmp/pip-j9xo0ago-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.4/python-openzwave --home=/tmp/tmpeog7n9v_
           ├─5003 arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPY_LIB_VERSION=0.4.0.31 -DPY_SSIZE_T_CLEAN=1 -DPY_LIB_FLAVOR=embed -Isrc-lib/libopenzwave/ -Iopenzwave-embed/open-zwave-master/cpp/src -Iopenzwave-embed/open-zwave-master/cpp/src/value_classes -Iopenzwave-embed/open-zwave-master/cpp/src/platform -Iopenzwave-embed/open-zwave-master/cpp/build/linux -I/srv/homeassistant/include -I/usr/include/python3.4m -c openzwave-embed/open-zwave-master/python-openzwave/src-lib/libopenzwave/libopenzwave.cpp -o build/temp.linux-armv7l-3.4/openzwave-embed/open-zwave-master/python-openzwave/src-lib/libopenzwave/libopenzwave.o
           └─5004 /usr/lib/gcc/arm-linux-gnueabihf/4.9/cc1plus -quiet -I src-lib/libopenzwave/ -I openzwave-embed/open-zwave-master/cpp/src -I openzwave-embed/open-zwave-master/cpp/src/value_classes -I openzwave-embed/open-zwave-master/cpp/src/platform -I openzwave-embed/open-zwave-master/cpp/build/linux -I /srv/homeassistant/include -I /usr/include/python3.4m -imultilib . -imultiarch arm-linux-gnueabihf -D_GNU_SOURCE -D_REENTRANT -D NDEBUG -D _FORTIFY_SOURCE=2 -D PY_LIB_VERSION=0.4.0.31 -D PY_SSIZE_T_CLEAN=1 -D PY_LIB_FLAVOR=embed openzwave-embed/open-zwave-master/python-openzwave/src-lib/libopenzwave/libopenzwave.cpp -quiet -dumpbase libopenzwave.cpp -march=armv6 -mfloat-abi=hard -mfpu=vfp -mtls-dialect=gnu -auxbase-strip build/temp.linux-armv7l-3.4/openzwave-embed/open-zwave-master/python-openzwave/src-lib/libopenzwave/libopenzwave.o -g -g -O2 -Wall -Wstrict-prototypes -Wformat=1 -Werror=format-security -fwrapv -fstack-protector-strong -fPIC -o /tmp/ccE3TTd5.s

May 21 06:43:45 hassbian hass[3067]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=set_visibility, domain=group>
May 21 06:43:45 hassbian hass[3067]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=reload, domain=group>
May 21 06:43:45 hassbian hass[3067]: INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=group>
May 21 06:43:46 hassbian hass[3067]: INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: old_state=None, new_state=<state camera.ipcam01=idle; entity_picture=/api/camera_proxy/camera.ipcam01?token=955fb80ed7b2bbffcabe7a62c4f886309e7a309730decb3db17a448b45c0339c, friendly_name=ipcam01, access_token=955fb80ed7b2bbffcabe7a62c4f886309e7a309730decb3db17a448b45c0339c @ 2017-05-21T08:43:46.798951+02:00>, entity_id=camera.ipcam01>
May 21 06:43:46 hassbian hass[3067]: INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=camera>
May 21 06:43:50 hassbian hass[3067]: INFO:homeassistant.components.sensor.rfxtrx:Automatic add rfxtrx.sensor: 08500a00a802008d40
May 21 06:43:50 hassbian hass[3067]: INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: old_state=None, new_state=<state sensor.08500a00a802008d40_temperature=14.1; unit_of_measurement=°C, Rssi numeric=4, icon=mdi:thermometer, Temperature=14.1, friendly_name=temperatuur, Battery numeric=0 @ 2017-05-21T08:43:50.613095+02:00>, entity_id=sensor.08500a00a802008d40_temperature>
May 21 06:43:54 hassbian hass[3067]: WARNING:homeassistant.setup:Setup of climate is taking over 10 seconds.
May 21 06:43:54 hassbian hass[3067]: WARNING:homeassistant.setup:Setup of sensor is taking over 10 seconds.
May 21 06:43:54 hassbian hass[3067]: WARNING:homeassistant.setup:Setup of media_player is taking over 10 seconds.

I just tried reupgrading with these commands. This time homeassistant did start.

sudo systemctl stop [email protected]
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
exit
sudo systemctl start [email protected]

Partially resolved, do not forget to run first

apt-get update
apt-get upgrade

However, still problems with notify function (faild-bad config) feature but are looking at it right now

Apparently related to telegram but may be local error

Working with hassbian here, just got this when trying to upgrade from 0.44.1 to 0.45

Exception:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/commands/install.py”, line 324, in run
requirement_set.prepare_files(finder)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/req/req_set.py”, line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “/srv/homeassistant/lib/python3.4/site-packages/pip/req/req_set.py”, line 487, in _prepare_file
req_to_install, finder)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/req/req_set.py”, line 428, in _check_skip_installed
req_to_install, upgrade_allowed)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/index.py”, line 465, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File “/srv/homeassistant/lib/python3.4/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.4/site-packages/pip/index.py”, line 568, in _get_pages
page = self._get_page(location)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/index.py”, line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/index.py”, line 792, in get_page
“Cache-Control”: “max-age=600”,
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/requests/sess ions.py”, line 488, in get
return self.request(‘GET’, url, **kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/download.py”, line 38 6, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/requests/sess ions.py”, line 475, in request
resp = self.send(prep, **send_kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/requests/sess ions.py”, line 596, in send
r = adapter.send(request, **kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/cachecontrol/ adapter.py”, line 37, in send
cached_response = self.controller.cached_request(request)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/cachecontrol/ controller.py”, line 111, in cached_request
resp = self.serializer.loads(request, cache_data)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/cachecontrol/ serialize.py”, line 114, in loads
return getattr(self, “_loads_v{0}”.format(ver))(request, data)
File “/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/cachecontrol/ serialize.py”, line 176, in _loads_v2
cached = json.loads(zlib.decompress(data).decode(“utf8”))
zlib.error: Error -3 while decompressing data: invalid code – missing end-of-bl ock

I did as always the following

sudo apt-get update
sudo apt-get -y upgrade
sudo systemctl stop [email protected]
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
exit
sudo systemctl start [email protected]

also having issues after upgrade to 0.45… No error messages but home assistant won’t load…

Did the usual upgrade procedure.

1 Like

It can take as much as 10 min to properly load after a new update. If you did not get any message, just wait a bit maybe.

For my part, I have still my problem when I try to update as usual…

wooow, it took >15 min for my little Raspberry Pi 2 to initiate after updating to 0.45! Now everything seems to be working OK!

For me it takes more than 10 minutes, the frontier-silicon-package fsapi needs a lot of time to install after upgrade. Last night it took nearly 20 minutes to start after upgrade to 0.45.0. The following restarts are done in 30 seconds

I get the same error when i try to upgrade…

pi@hassbian:~ $ sudo systemctl stop [email protected]
pi@hassbian:~ $ sudo su -s /bin/bash homeassistant
homeassistant@hassbian:/home/pi $ source /srv/homeassistant/bin/activate
(homeassistant) homeassistant@hassbian:/home/pi $ pip3 install --upgrade homeassistant
Traceback (most recent call last):
  File "/srv/homeassistant/bin/pip3", line 7, in <module>
    from pip import main
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/__init__.py", line 26, in <module>
    from pip.utils import get_installed_distributions, get_prog
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/utils/__init__.py", line 27, in <module>
    from pip._vendor import pkg_resources
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/pkg_resources/__init__.py", line 74, in <module>
    __import__('pip._vendor.packaging.requirements')
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/packaging/requirements.py", line 9, in <module>
    from pip._vendor.pyparsing import (
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/pyparsing.py", line 4715, in <module>
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/pyparsing.py", line 1261, in setParseAction
    self.parseAction = list(map(_trim_arity, list(fns)))
  File "/srv/homeassistant/lib/python3.4/site-packages/pip/_vendor/pyparsing.py", line 1043, in _trim_arity
    this_line = extract_stack(limit=2)[-1]
  File "/usr/lib/python3.4/traceback.py", line 301, in extract_stack
    stack = list(_extract_stack_iter(_get_stack(f), limit=limit))
  File "/usr/lib/python3.4/traceback.py", line 65, in _extract_tb_or_stack_iter
    line = linecache.getline(filename, lineno, f.f_globals)
  File "/usr/lib/python3.4/linecache.py", line 15, in getline
    lines = getlines(filename, module_globals)
  File "/usr/lib/python3.4/linecache.py", line 41, in getlines
    return updatecache(filename, module_globals)
  File "/usr/lib/python3.4/linecache.py", line 127, in updatecache
    lines = fp.readlines()
  File "/usr/lib/python3.4/codecs.py", line 313, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 7358: invalid continuation byte
(homeassistant) homeassistant@hassbian:/home/pi $ exit
exit
pi@hassbian:~ $ sudo systemctl start [email protected]

Sorry to hear that. But I’m happy that it does not only concerns me :smiley:

I ran a

sudo apt-get update
sudo apt-get upgrade

and now my hassbian wount start at all, all i get in the log is:

pi@hassbian:~ $ sudo journalctl -u [email protected] -f | egrep --color=always 'WARNING|Unable|program was not found in path|True|False|ERROR|exited|$'
-- Logs begin at Mon 2017-05-22 10:26:10 CEST. --
May 22 10:26:27 hassbian hass[719]: File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
May 22 10:26:27 hassbian hass[719]: File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
May 22 10:26:27 hassbian hass[719]: File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
May 22 10:26:27 hassbian hass[719]: File "<frozen importlib._bootstrap>", line 1129, in _exec
May 22 10:26:27 hassbian hass[719]: File "<frozen importlib._bootstrap>", line 1467, in exec_module
May 22 10:26:27 hassbian hass[719]: File "<frozen importlib._bootstrap>", line 1570, in get_code
May 22 10:26:27 hassbian hass[719]: File "<frozen importlib._bootstrap>", line 656, in _compile_bytecode
May 22 10:26:27 hassbian hass[719]: ValueError: bad marshal data (invalid reference)
May 22 10:26:27 hassbian systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
May 22 10:26:27 hassbian systemd[1]: Unit [email protected] entered failed state.

I recently made a chang in how i log in to my raspberry pi’s.
I started to use a generated authorized_keys file with winscp.
If i log in with the old way with username and password im able to run the uppgrade!
Now the upgrade is done and im going to wait 10-20 min to see if it comes up…

I still get this thou…

pi@hassbian:~ $ sudo journalctl -u [email protected] -f | egrep --color=always 'WARNING|Unable|program was not found in path|True|False|ERROR|exited|$'
-- Logs begin at Mon 2017-05-22 10:37:44 CEST. --
May 22 10:38:16 hassbian hass[723]: File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
May 22 10:38:16 hassbian hass[723]: File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
May 22 10:38:16 hassbian hass[723]: File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
May 22 10:38:16 hassbian hass[723]: File "<frozen importlib._bootstrap>", line 1129, in _exec
May 22 10:38:16 hassbian hass[723]: File "<frozen importlib._bootstrap>", line 1467, in exec_module
May 22 10:38:16 hassbian hass[723]: File "<frozen importlib._bootstrap>", line 1570, in get_code
May 22 10:38:16 hassbian hass[723]: File "<frozen importlib._bootstrap>", line 656, in _compile_bytecode
May 22 10:38:16 hassbian hass[723]: ValueError: bad marshal data (invalid reference)
May 22 10:38:16 hassbian systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
May 22 10:38:16 hassbian systemd[1]: Unit [email protected] entered failed state.

found the sollution to the “bad marshal data” here: https://community.home-assistant.io/t/ha-stopped-working/3977/2

Now the log reports:

pi@hassbian:~ $ sudo journalctl -u [email protected] -f | egrep --color=always 'WARNING|Unable|program was not found in path|True|False|ERROR|exited|$'
-- Logs begin at Mon 2017-05-22 10:56:19 CEST. --
May 22 10:56:34 hassbian systemd[1]: Starting Home Assistant for homeassistant...
May 22 10:56:34 hassbian systemd[1]: Started Home Assistant for homeassistant.
May 22 10:57:19 hassbian hass[722]: 2017-05-22 10:57:19 INFO (Thread-3) [homeassistant.config] Upgrading config directory from 0.44.1 to 0.45.0
May 22 10:57:21 hassbian hass[722]: 2017-05-22 10:57:21 INFO (MainThread) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
May 22 10:57:22 hassbian hass[722]: Config directory: /home/homeassistant/.homeassistant

So lets wait for hassbian to upgarde itself…

Hassbian wount come alive again…
Cant see anything wrong in the log :frowning:

pi@hassbian:~ $ sudo journalctl -u [email protected] -f | egrep --color=always 'WARNING|Unable|program was not found in path|True|False|ERROR|exited|$'
-- Logs begin at Mon 2017-05-22 11:27:15 CEST. --
May 22 11:27:29 hassbian systemd[1]: Starting Home Assistant for homeassistant...
May 22 11:27:29 hassbian systemd[1]: Started Home Assistant for homeassistant.
May 22 11:27:49 hassbian hass[721]: INFO:homeassistant.loader:Loaded sensor from homeassistant.components.sensor
May 22 11:27:49 hassbian hass[721]: Config directory: /home/homeassistant/.homeassistant

I also had issues while upgrading to 0.45.0, but after all I could solve it.

Still then, although 0.45.0 is installed (if I try to upgrade either with

pip3 install --upgrade homeassistant or
pip3 install homeassistant==0.45.0

, it mentions the version is already latest/0.45.0), 0.44.1 still appears mentioned in the iOS app and in the About section in the GUI.

Does this happen to anyone else?

Thanks in advance.

Maybe try to update Python to 3.5 and temporary deactivate the security method?

Which HTTP error code do you get? Not found, empty resp, connection refused?

Try a force refresh (CTRL+F5 in Chrome)

Still the same, both in Chrome or in iOS app.