Upgrade 0.45 failed

Did you maybe install Home-Assistant in a virtual-env and you updated an instance outside this virtual-env?

How did you install hass?

I installed Hassbian.

After reading virtual-env I understood my error, so I tried this way:

and after some time, it all worked out well…

Thanks again and sorry for the noobness :wink:

That’s why we’re here, I was also in those situation not long ago :slight_smile:

1 Like

good for you, but it still does not work for me :stuck_out_tongue:

this is what i have now… I think that I will wipe out everything and do a clean install of hassbian. :sob:

2017-05-22 21:30:53 ERROR (Thread-3) [homeassistant.util.package] Unable to install package sqlalchemy==1.1.9: Exception:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/pip/compat/init.py”, line 73, in console_to_str
return s.decode(sys.stdout.encoding)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8a in position 20: invalid start byte

During handling of the above exception, another exception occurred:

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 342, in run
prefix=options.prefix_path,
File “/srv/homeassistant/lib/python3.4/site-packages/pip/req/req_set.py”, line 784, in install
**kwargs
File “/srv/homeassistant/lib/python3.4/site-packages/pip/req/req_install.py”, line 878, in install
spinner=spinner,
File “/srv/homeassistant/lib/python3.4/site-packages/pip/utils/init.py”, line 676, in call_subprocess
line = console_to_str(proc.stdout.readline())
File “/srv/homeassistant/lib/python3.4/site-packages/pip/compat/init.py”, line 75, in console_to_str
return s.decode(‘utf_8’)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8a in position 20: invalid start byte
2017-05-22 21:30:53 ERROR (MainThread) [homeassistant.setup] Not initializing recorder because could not install dependency sqlalchemy==1.1.9
2017-05-22 21:30:53 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Could not install all requirements.
2017-05-22 21:31:14 ERROR (Thread-5) [homeassistant.util.package] Unable to install package aiohttp_cors==0.5.3: Exception:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/pip/compat/init.py”, line 73, in console_to_str
return s.decode(sys.stdout.encoding)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8a in position 20: invalid start byte

During handling of the above exception, another exception occurred:

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 342, in run
prefix=options.prefix_path,
File “/srv/homeassistant/lib/python3.4/site-packages/pip/req/req_set.py”, line 784, in install
**kwargs
File “/srv/homeassistant/lib/python3.4/site-packages/pip/req/req_install.py”, line 878, in install
spinner=spinner,
File “/srv/homeassistant/lib/python3.4/site-packages/pip/utils/init.py”, line 676, in call_subprocess
line = console_to_str(proc.stdout.readline())
File “/srv/homeassistant/lib/python3.4/site-packages/pip/compat/init.py”, line 75, in console_to_str
return s.decode(‘utf_8’)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8a in position 20: invalid start byte
2017-05-22 21:31:14 ERROR (MainThread) [homeassistant.setup] Not initializing http because could not install dependency aiohttp_cors==0.5.3
2017-05-22 21:31:14 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Could not install all requirements.
2017-05-22 21:31:14 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of history. Setup failed for dependencies: recorder, http
2017-05-22 21:31:14 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not setup all dependencies.
2017-05-22 21:31:14 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of api. Setup failed for dependencies: http
2017-05-22 21:31:14 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not setup all dependencies.
2017-05-22 21:31:14 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of websocket_api. Setup failed for dependencies: http
2017-05-22 21:31:14 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not setup all dependencies.
2017-05-22 21:31:14 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of frontend. Setup failed for dependencies: api, websocket_api
2017-05-22 21:31:14 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not setup all dependencies.
2017-05-22 21:31:16 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of config. Setup failed for dependencies: http
2017-05-22 21:31:16 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Could not setup all dependencies.
2017-05-22 21:31:16 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of logbook. Setup failed for dependencies: recorder, frontend
2017-05-22 21:31:16 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not setup all dependencies.
2017-05-22 21:31:16 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of media_player. Setup failed for dependencies: http
2017-05-22 21:31:16 ERROR (MainThread) [homeassistant.setup] Setup failed for media_player: Could not setup all dependencies.
2017-05-22 21:31:24 WARNING (MainThread) [homeassistant.setup] Setup of telegram_bot is taking over 10 seconds.
2017-05-22 21:31:26 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-05-22 21:31:26 WARNING (MainThread) [homeassistant.setup] Setup of light is taking over 10 seconds.
2017-05-22 21:31:26 WARNING (MainThread) [homeassistant.setup] Setup of switch is taking over 10 seconds.
2017-05-22 21:31:26 WARNING (MainThread) [homeassistant.setup] Setup of notify is taking over 10 seconds.
2017-05-22 21:31:26 WARNING (MainThread) [homeassistant.setup] Setup of binary_sensor is taking over 10 seconds.
2017-05-22 21:31:26 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds.
2017-05-22 21:31:41 ERROR (Thread-7) [homeassistant.util.package] Unable to install package pydroid-ipcam==0.8: Exception:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/pip/compat/init.py”, line 73, in console_to_str
return s.decode(sys.stdout.encoding)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8a in position 20: invalid start byte

During handling of the above exception, another exception occurred:

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 342, in run
prefix=options.prefix_path,
File “/srv/homeassistant/lib/python3.4/site-packages/pip/req/req_set.py”, line 784, in install
**kwargs
File “/srv/homeassistant/lib/python3.4/site-packages/pip/req/req_install.py”, line 878, in install
spinner=spinner,
File “/srv/homeassistant/lib/python3.4/site-packages/pip/utils/init.py”, line 676, in call_subprocess
line = console_to_str(proc.stdout.readline())
File “/srv/homeassistant/lib/python3.4/site-packages/pip/compat/init.py”, line 75, in console_to_str
return s.decode(‘utf_8’)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8a in position 20: invalid start byte
2017-05-22 21:31:41 ERROR (MainThread) [homeassistant.setup] Not initializing android_ip_webcam because could not install dependency pydroid-ipcam==0.8
2017-05-22 21:31:41 ERROR (MainThread) [homeassistant.setup] Setup failed for android_ip_webcam: Could not install all requirements.
2017-05-22 21:31:42 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of tts. Setup failed for dependencies: http
2017-05-22 21:31:42 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Could not setup all dependencies.

(and the log continues on and on like that with other packages)

I could not get it to work, so i had to take 6h to make a fresh install.
Now up and running again…
Made my self a complete guide of the fresh install so that next time i can cut and paste and get it done a little faster…
It takes a bit of time to install everything when you have a quite a big setup. There are a lot of steps you forget you have implemented since last fresh install…

well I am lucky to have a very simple setup as I am only beginning… I should be good with only samba, mosquitto, nmap and one or two other simple stuff.

After making an image of my SD card, I embarked on upgrading from .43 to .45 AIO this morning. I did a:
sudo apt-get update sudo apt-get upgrade
First (took a while), then the typical AIO update route. Took a while before HA was responsive after starting, but patience payed off and everything worked without issue.

I seemed to have the same problem, but the last time I restarted Home Assistant while doing upgrades, I had to do a full re-install.

This time I opened up another terminal and ran:

 tail -f /var/log/syslog

and watched the install process until it had run nmap a couple of times

fresh install did the trick for me… everything works fine now, except for a discovery error at bootup of homeassistant (but it does not seem to influence the good behaviour of homeassistant)