Homeassistant crashed? installed 83.0 and it notified me that 82.1 was newer

hi

updated succesful to 83.0 , running hassos
then it told me that 82.1 was newer?? so updatd again, now HA doesnt load anymore, full of errors?
whats wrong?

screenshot : https://www.dropbox.com/s/j67d8hoycdn2h6q/haissue.JPG?dl=0

2018-11-29 23:01:17 ERROR (MainThread) [homeassistant.setup] Error during setup of component hassio
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 145, in _async_setup_component
hass, processed_config)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/init.py”, line 178, in async_setup
user = await hass.auth.async_get_user(data[‘hassio_user’])
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/init.py”, line 118, in async_get_user
return await self._store.async_get_user(user_id)
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py”, line 56, in async_get_user
await self._async_load()
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py”, line 247, in _async_load

I’m here in the same boat as well. Did the exact same thing thinking the first update had errored out after waiting for an hour. Now I have this:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/config_entries.py", line 244, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/upnp/__init__.py", line 143, in async_setup_entry
    await device.async_add_port_mappings(ports, local_ip)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/upnp/device.py", line 66, in async_add_port_mappings
    internal_port)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/upnp/device.py", line 87, in _async_add_port_mapping
    lease_duration=None)
  File "/usr/local/lib/python3.6/site-packages/async_upnp_client/igd.py", line 219, in async_add_port_mapping
    await action.async_call(
AttributeError: 'NoneType' object has no attribute 'async_call'
2018-11-29 18:29:25 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry OnHub for upnp
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/config_entries.py", line 244, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/upnp/__init__.py", line 143, in async_setup_entry
    await device.async_add_port_mappings(ports, local_ip)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/upnp/device.py", line 66, in async_add_port_mappings
    internal_port)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/upnp/device.py", line 87, in _async_add_port_mapping
    lease_duration=None)
  File "/usr/local/lib/python3.6/site-packages/async_upnp_client/igd.py", line 219, in async_add_port_mapping
    await action.async_call(
2018-11-29 18:30:24 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 390, in start
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_app.py", line 366, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 106, in impl
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/static.py", line 66, in staticresource_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 97, in auth_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 97, in auth_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/view.py", line 113, in handle
    result = await result
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/data_validator.py", line 47, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 76, in handle_req
    resp = await func(view, request, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/auth/login_flow.py", line 175, in post
    'credential_only': data.get('type') == 'link_user',
  File "/usr/local/lib/python3.6/site-packages/homeassistant/data_entry_flow.py", line 57, in async_init
    handler, context=context, data=data)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/auth/__init__.py", line 392, in _async_create_login_flow
    return await auth_provider.async_login_flow(context)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/auth/providers/trusted_networks.py", line 46, in async_login_flow
    users = await self.store.async_get_users()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py", line 48, in async_get_users
    await self._async_load()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py", line 247, in _async_load
    name=group_dict['name'],

something is wrong here :frowning:

Are you both purposely omitting the remainder of the error or is that the end?

EDIT:

Just noticed that there was a change to this file 2 hours ago, exactly in the spot where this error mysteriously ends without completing. I think it safe to say that you guys should downgrade to 0.82.1 and wait for that PR.

Here’s a link to the PR:

i ended up setting up complete from scratch

Is there any way to do this with Hass.io? Unfortunately I do not have the ssh plugin installed…

I am in same situation, someone please post a solution.

2018-11-29 19:11:14 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don’t require it, remove the ‘api_password’ from your http config.
2018-11-29 19:11:18 WARNING (Recorder) [homeassistant.components.recorder.migration] Database requires upgrade. Schema version: 7
2018-11-29 19:11:25 ERROR (SyncWorker_8) [homeassistant.components.sensor.darksky] Unable to connect to Dark Sky: HTTPSConnectionPool(host=‘api.darksky.net’, port=443): Max retries exceeded with url: /forecast/?units=si&lang=en (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x72b8c850>: Failed to establish a new connection: [Errno -3] Try again’,))
2018-11-29 19:11:27 ERROR (SyncWorker_2) [homeassistant.components.weather.openweathermap] Exception when calling OWM web API to update data
2018-11-29 19:11:34 WARNING (MainThread) [homeassistant.components.weather] Setup of platform openweathermap is taking over 10 seconds.
2018-11-29 19:11:34 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform wunderground is taking over 10 seconds.
2018-11-29 19:11:34 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform darksky is taking over 10 seconds.
2018-11-29 19:11:34 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of platform nest is taking over 10 seconds.
2018-11-29 19:11:34 WARNING (MainThread) [homeassistant.components.climate] Setup of platform nest is taking over 10 seconds.
2018-11-29 19:11:34 WARNING (MainThread) [homeassistant.components.camera] Setup of platform nest is taking over 10 seconds.
2018-11-29 19:11:34 ERROR (MainThread) [homeassistant.components.sensor.wunderground] Error fetching WUnderground data: TimeoutError()
2018-11-29 19:11:34 ERROR (MainThread) [homeassistant.components.notify] Error setting up platform pushbullet
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/urllib3/connection.py”, line 159, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File “/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py”, line 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/usr/local/lib/python3.6/socket.py”, line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 600, in urlopen
chunked=chunked)
File “/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 343, in _make_request
self._validate_conn(conn)
File “/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 839, in _validate_conn
conn.connect()
File “/usr/local/lib/python3.6/site-packages/urllib3/connection.py”, line 301, in connect
conn = self._new_conn()
File “/usr/local/lib/python3.6/site-packages/urllib3/connection.py”, line 168, in _new_conn
self, “Failed to establish a new connection: %s” % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x70495750>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/requests/adapters.py”, line 449, in send
timeout=timeout
File “/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py”, line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘api.pushbullet.com’, port=443): Max retries exceeded with url: /v2/devices (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x70495750>: Failed to establish a new connection: [Errno -3] Try again’,))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/notify/init.py”, line 76, in async_setup_platform
platform.get_service, hass, p_config, discovery_info)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/notify/pushbullet.py”, line 38, in get_service
pushbullet = PushBullet(config[CONF_API_KEY])
File “/usr/local/lib/python3.6/site-packages/pushbullet/pushbullet.py”, line 43, in init
self.refresh()
File “/usr/local/lib/python3.6/site-packages/pushbullet/pushbullet.py”, line 381, in refresh
self._load_devices()
File “/usr/local/lib/python3.6/site-packages/pushbullet/pushbullet.py”, line 78, in _load_devices
resp_dict = self._get_data(self.DEVICES_URL)
File “/usr/local/lib/python3.6/site-packages/pushbullet/pushbullet.py”, line 64, in _get_data
resp = self._session.get(url)
File “/usr/local/lib/python3.6/site-packages/requests/sessions.py”, line 537, in get
return self.request(‘GET’, url, **kwargs)
File “/usr/local/lib/python3.6/site-packages/requests/sessions.py”, line 524, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.6/site-packages/requests/sessions.py”, line 637, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.6/site-packages/requests/adapters.py”, line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘api.pushbullet.com’, port=443): Max retries exceeded with url: /v2/devices (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x70495750>: Failed to establish a new connection: [Errno -3] Try again’,))
2018-11-29 19:11:49 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 356, in _async_add_entity
await entity.async_update_ha_state()
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 232, in async_update_ha_state
state = self.state
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/init.py”, line 174, in state
return self.condition
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/openweathermap.py”, line 105, in condition
return [k for k, v in CONDITION_CLASSES.items() if
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/openweathermap.py”, line 106, in
self.data.get_weather_code() in v][0]
AttributeError: ‘NoneType’ object has no attribute ‘get_weather_code’
2018-11-29 19:11:49 WARNING (MainThread) [homeassistant.components.sensor] Platform wunderground not ready yet. Retrying in 30 seconds.
2018-11-29 19:11:59 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform nest is taking over 10 seconds.
2018-11-29 19:12:15 ERROR (MainThread) [homeassistant.setup] Error during setup of component hassio
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 145, in _async_setup_component
hass, processed_config)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/init.py”, line 178, in async_setup
user = await hass.auth.async_get_user(data[‘hassio_user’])
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/init.py”, line 118, in async_get_user
return await self._store.async_get_user(user_id)
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py”, line 56, in async_get_user
await self._async_load()
File “/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py”, line 247, in _async_load
name=group_dict[‘name’],
KeyError: ‘name’
2018-11-29 19:12:20 ERROR (SyncWorker_19) [homeassistant.components.weather.openweathermap] Exception when calling OWM web API to update data
2018-11-29 19:12:20 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 232, in async_update_ha_state
state = self.state
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/init.py”, line 174, in state
return self.condition
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/openweathermap.py”, line 105, in condition
return [k for k, v in CONDITION_CLASSES.items() if
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/openweathermap.py”, line 106, in
self.data.get_weather_code() in v][0]
AttributeError: ‘NoneType’ object has no attribute ‘get_weather_code’
2018-11-29 19:12:25 ERROR (MainThread) [homeassistant.components.sensor.wunderground] Error fetching WUnderground data: ClientConnectorError(-3, ‘Try again’)
2018-11-29 19:12:25 WARNING (MainThread) [homeassistant.components.sensor] Platform wunderground not ready yet. Retrying in 60 seconds.
2018-11-29 19:12:36 ERROR (SyncWorker_18) [homeassistant.components.weather.openweathermap] Exception when calling OWM web API to update data
2018-11-29 19:12:36 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 232, in async_update_ha_state
state = self.state
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/init.py”, line 174, in state
return self.condition
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/openweathermap.py”, line 105, in condition
return [k for k, v in CONDITION_CLASSES.items() if
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/openweathermap.py”, line 106, in
self.data.get_weather_code() in v][0]
AttributeError: ‘NoneType’ object has no attribute ‘get_weather_code’
2018-11-29 19:12:52 ERROR (SyncWorker_3) [homeassistant.components.weather.openweathermap] Exception when calling OWM web API to update data
2018-11-29 19:12:52 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 232, in async_update_ha_state
state = self.state
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/init.py”, line 174, in state
return self.condition
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/openweathermap.py”, line 105, in condition
return [k for k, v in CONDITION_CLASSES.items() if
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/openweathermap.py”, line 106, in
self.data.get_weather_code() in v][0]
AttributeError: ‘NoneType’ object has no attribute ‘get_weather_code’
2018-11-29 19:13:08 ERROR (SyncWorker_8) [homeassistant.components.weather.openweathermap] Exception when calling OWM web API to update data
2018-11-29 19:13:08 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 232, in async_update_ha_state
state = self.state
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/init.py”, line 174, in state
return self.condition
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/openweathermap.py”, line 105, in condition
return [k for k, v in CONDITION_CLASSES.items() if
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/openweathermap.py”, line 106, in
self.data.get_weather_code() in v][0]
AttributeError: ‘NoneType’ object has no attribute ‘get_weather_code’

Samething here, I checked the update server and it’s wrong (https://s3.amazonaws.com/hassio-version/stable.json). Update server is informing to hassio that 0.82.1 is the latest stable version. I’m guessing that it messed everything when download 0.82.1 and installed over 0.83.
I’m waiting they repair the update server to try the update using ssh cli and see if it fixes the problem. If not i’ll need to install from the scratch. :frowning:

I downgraded to 0.82.0 using ssh, then back up to 0.82.1 … seemed to work for me.

Hope that helps.

0.83.1 has been released…

1 Like

What was your step on this downgrade? What command to force the downgrade to a specific version?

Thank you! I forced the upgrade to 0.83.1 using the following command and it fixes the problem.

hassio ha update --options version=0.83.1

2 Likes

Hi @kcarriello, Thanks for this. I might be in the same boat.

Im almost positive my upgrade was to 83.1 not 82.1 but I could be mistaken. I am in a 10 minutes boot loop and hoping the force upgrade will bring me back. I stupidly havent taken a snapshot. :frowning:

I am running hassio on debian. I do have caddy addon with domain name running usually.
I used the curl command
curl -d ‘{“version”: “0.83.1”}’ https://domain.org/homeassistant/update.
I get error saying 502 bad gateway.

If I run
curl -d ‘{“version”: “0.83.1”}’ http://xxx.xxx.xxx.xxx:8123/homeassistant/update
I get error saying: Curl: (7) Failed to connect to http://xxx.xxx.xxx.xxx:8123: Connection refused

Any suggestions how to update to 0.83.1

This worked, thanks!

To add a data point - I upgraded using the same (hassio ha update --options version=0.83.1), but now I get the message in hassio “Home Assistant 0.82.1 is available, You are currently running version 0.83.1”

Everything seems to be running fine, I’m thinking I’ll just ignore the message until 0.83.2 is released for hassio, unless I get too paranoid and restore the snapshot.

Running hassio on docker in Ubuntu 18.04 in an ESXi 6.7u1 VM.

Terry

Thanks guys, upgraded to 0.83.1 using ssh cmd: hassio homeassistant update --options version=0.83.1

Just ignore it.

Same issue here, i accidentally “upgraded” to 82.1 through gui.

Where exactly can i find “hassio” binary after ssh? i already checked homeassistant and hassio_supervisor containers, it’s definetely not in PATH variable in either (so if it is out there, the full path needs to be provided to run it) and searching for it by “find / | grep hassio” also doesnt help.