After updating the all-in-one in my virtual environment from 0.25 to 0.26, the Autorun no longer works. When checking systemctl it shows loaded/inactive/dead.
How do I fix this?
Well, I found part of the issue.
The update wiped the virtual environment variables from the .service file.
Also, in the web interface the new version 0.26 will throw an error if using C or F for the unit of temperature and will direct you to change the config file to say “imperial” or “metric”.
If you do this, the .service will err out and not run.
Sounds like a catch 22.
For me the upgrade doesn’t even start. This is what I get when trying to upgrade from 0.25.2:
(hass_venv) hass@homeassistant:/home/pi$ pip3 install --upgrade homeassistant Collecting homeassistant Downloading homeassistant-0.26.1-py2.py3-none-any.whl (6.1MB) 100% |████████████████████████████████| 6.1MB 45kB/s Requirement already up-to-date: pyyaml<4,>=3.11 in /srv/hass/hass_venv/lib/python3.4/site-packages (from homeassistant) Collecting requests<3,>=2 (from homeassistant) Downloading requests-2.11.0-py2.py3-none-any.whl (514kB) 100% |████████████████████████████████| 522kB 479kB/s Requirement already up-to-date: jinja2>=2.8 in /srv/hass/hass_venv/lib/python3.4/site-packages (from homeassistant) Cache entry deserialization failed, entry ignored Requirement already up-to-date: pip>=7.0.0 in /srv/hass/hass_venv/lib/python3.4/site-packages (from homeassistant) Collecting voluptuous==0.9.2 (from homeassistant) Downloading voluptuous-0.9.2.tar.gz Requirement already up-to-date: typing<4,>=3 in /srv/hass/hass_venv/lib/python3.4/site-packages (from homeassistant) Exception: Traceback (most recent call last): File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/commands/install.py", line 310, in run wb.build(autobuilding=True) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/wheel.py", line 750, in build self.requirement_set.prepare_files(self.finder) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/req/req_set.py", line 370, in prepare_files ignore_dependencies=self.ignore_dependencies)) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/req/req_set.py", line 458, in _prepare_file req_to_install, finder) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/req/req_set.py", line 407, in _check_skip_installed finder.find_requirement(req_to_install, self.upgrade) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/index.py", line 442, in find_requirement all_candidates = self.find_all_candidates(req.name) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/index.py", line 400, in find_all_candidates for page in self._get_pages(url_locations, project_name): File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/index.py", line 545, in _get_pages page = self._get_page(location) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/index.py", line 648, in _get_page return HTMLPage.get_page(link, session=self.session) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/index.py", line 757, in get_page "Cache-Control": "max-age=600", File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py", line 487, in get return self.request('GET', url, **kwargs) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/download.py", line 378, in request return super(PipSession, self).request(method, url, *args, **kwargs) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py", line 475, in request resp = self.send(prep, **send_kwargs) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py", line 585, in send r = adapter.send(request, **kwargs) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/_vendor/cachecontrol/adapter.py", line 36, in send cached_response = self.controller.cached_request(request) File "/srv/hass/hass_venv/lib/python3.4/site-packages/pip/_vendor/cachecontrol/controller.py", line 111, in cached_request resp = self.serializer.loads(request, cache_data) File "/srv/hass/hass_venv/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/hass/hass_venv/lib/python3.4/site-packages/pip/_vendor/cachecontrol/serialize.py", line 170, in _loads_v2 cached = json.loads(zlib.decompress(data).decode("utf8")) zlib.error: Error -3 while decompressing data: invalid code lengths set
Though my error doesn’t seem to be directly related to HA.
Edit: As it turns out the SD-Card in my Pi seems to be corrupted now. So gotta start out with a fresh installation now. -.-