Unable to reach Home Assistant UI & SSH

Since a couple of hours, I am unable to reach Home Assistant. No UI, no SSH. HA seems to be running at an extremely slow pace, half an hour after reboot suddenly an automation triggered. But still I am unable to reach anything.

I can fortunately reach the Ubuntu Server host through SSL. My intention is to restore a Hassio snapshot from a backup (I think I must have messed something up while trying to remove the Battery Alert package).

I’m not sure how to proceed. What are the steps to reinstall the Hassio dockers? Never done this before. Any pointers are appreciated!

Why not just edit the configuration files or look at the log file to see what’s wrong?

Make sure you have same IP as before on the unit (speaking of own experience)
Have you tried to empty cache and hard reload?

@flamingm0e : I checked the logs but about every component is throwing errors, mostly time out errors. I don’t see any specific cause. Also, I can see the log through ‘nano home-assistant.log’ but I don’t know how I can copy it’s contents to a forum post. There are always different roads, but to me the ‘restore a backup’ seems the shortest way.

Here is a log from just after reboot, nothing alarming here. Edit: just added more log after waiting for a couple of minutes.

2019-08-11 20:14:11 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stabilit$
2019-08-11 20:14:11 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for spotcast which has not been tested by Home Assistant. This component might cause stab$
2019-08-11 20:14:11 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for breaking_changes which has not been tested by Home Assistant. This component might ca$
2019-08-11 20:14:11 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=45 from 2019-08-11 16:43:00)
2019-08-11 20:14:13 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for afvalwijzer which has not been tested by Home Assistant. This component might cause s$
2019-08-11 20:14:16 ERROR (MainThread) [homeassistant.components.template.cover] could not convert string to float: 'None'
2019-08-11 20:16:27 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - HTTPSConnectionPool(host='hachanges.halfdecent.io', port=443): Max retries exceeded with$
2019-08-11 20:18:38 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - HTTPSConnectionPool(host='hachanges.halfdecent.io', port=443): Max retries exceeded with$
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.samsung_tv is taking over 10 seconds
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.trash_next is taking over 10 seconds
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.chromecast_devices is taking over 10 seconds
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.spotify is taking over 10 seconds
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.kodi is taking over 10 seconds
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv media_player took longer than the scheduled update interval 0:00:10
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.components.sensor] Updating afvalwijzer sensor took longer than the scheduled update interval 0:00:30
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.components.sensor] Updating spotcast sensor took longer than the scheduled update interval 0:00:30
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.components.media_player] Updating spotify media_player took longer than the scheduled update interval 0:00:30
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:10
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from legacy took longer than the scheduled scan interval 0:00:12
2019-08-11 20:18:38 WARNING (MainThread) [homeassistant.components.media_player] Updating kodi media_player took longer than the scheduled update interval 0:00:10
2019-08-11 20:18:38 ERROR (MainThread) [aioasuswrt.connection] Host timeout.
2019-08-11 20:18:38 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/connection.py", line 38, in async_run_command
    "%s && %s" % (_PATH_EXPORT_COMMAND, command)), 9)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 423, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 150, in async_device_tracker_scan
    found_devices = await scanner.async_scan_devices()
  File "/usr/src/homeassistant/homeassistant/components/asuswrt/device_tracker.py", line 36, in async_scan_devices
    await self.async_update_info()
  File "/usr/src/homeassistant/homeassistant/components/asuswrt/device_tracker.py", line 52, in async_update_info
    self.last_results = await self.connection.async_get_connected_devices()
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/asuswrt.py", line 166, in async_get_connected_devices
    dev = await self.async_get_wl()
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/asuswrt.py", line 102, in async_get_wl
    lines = await self.connection.async_run_command(_WL_CMD)
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/connection.py", line 48, in async_run_command
    del self._client

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/connection.py", line 38, in async_run_command
    "%s && %s" % (_PATH_EXPORT_COMMAND, command)), 9)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 423, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 150, in async_device_tracker_scan
    found_devices = await scanner.async_scan_devices()
  File "/usr/src/homeassistant/homeassistant/components/asuswrt/device_tracker.py", line 36, in async_scan_devices
    await self.async_update_info()
  File "/usr/src/homeassistant/homeassistant/components/asuswrt/device_tracker.py", line 52, in async_update_info
    self.last_results = await self.connection.async_get_connected_devices()
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/asuswrt.py", line 166, in async_get_connected_devices
    dev = await self.async_get_wl()
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/asuswrt.py", line 102, in async_get_wl
    lines = await self.connection.async_run_command(_WL_CMD)
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/connection.py", line 48, in async_run_command
    del self._client
AttributeError: _client

@dawnlord: The IP address is unchanged. Also, the problem exists on three different devices. Empty cache and hard reload did not work unfortunately.

Nano is for editing. Tail or cat for viewing.

tail -f home-assistant.log will follow the log and you can restart the service in another SSH session.

From the log you’ve shared, you should try commenting out the asuswrt component and restart hassio

I removed asuswrt component & device tracker from configuration.yaml and restarted the home assistant docker. The asuswrt error is gone, but otherwise the log is exploding with errors:

2019-08-11 20:43:05 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <function async_track_state_change.<locals>.state_change_listener at 0x7f30f0e29bf8>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 85, in state_change_listener
    event.data.get('new_state'))
  File "/usr/src/homeassistant/homeassistant/core.py", line 342, in async_run_job
    target(*args)
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 106, in template_condition_listener
    template_result = condition.async_template(hass, template, variables)
  File "/usr/src/homeassistant/homeassistant/helpers/condition.py", line 331, in async_template
    value = value_template.async_render(variables)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 191, in async_render
    return self._compiled.render(kwargs).strip()
  File "/usr/local/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render
    return original_render(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 1, in top-level template code
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
2019-08-11 20:43:05 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <function async_track_state_change.<locals>.state_change_listener at 0x7f30f0e2e048>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 85, in state_change_listener
    event.data.get('new_state'))
  File "/usr/src/homeassistant/homeassistant/core.py", line 342, in async_run_job
    target(*args)
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 106, in template_condition_listener
    template_result = condition.async_template(hass, template, variables)
  File "/usr/src/homeassistant/homeassistant/helpers/condition.py", line 331, in async_template
    value = value_template.async_render(variables)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 191, in async_render
    return self._compiled.render(kwargs).strip()
  File "/usr/local/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render
    return original_render(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 1, in top-level template code
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
roelof@nucentral:/usr/share/hassio/homeassistant$ nano home-assistant.log ^C
roelof@nucentral:/usr/share/hassio/homeassistant$ clear
roelof@nucentral:/usr/share/hassio/homeassistant$ cat home-assistant.log
2019-08-11 20:34:15 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-08-11 20:34:15 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for spotcast which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-08-11 20:34:15 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for breaking_changes which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-08-11 20:34:17 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for afvalwijzer which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-08-11 20:34:21 ERROR (MainThread) [homeassistant.components.template.cover] could not convert string to float: 'None'
2019-08-11 20:36:31 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - HTTPSConnectionPool(host='hachanges.halfdecent.io', port=443): Max retries exceeded with url: /96/json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f30f1a72da0>: Failed to establish a new connection: [Errno 110] Operation timed out'))
2019-08-11 20:38:43 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - HTTPSConnectionPool(host='hachanges.halfdecent.io', port=443): Max retries exceeded with url: /96/json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f30f0510898>: Failed to establish a new connection: [Errno 110] Operation timed out'))
2019-08-11 20:38:43 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.samsung_tv is taking over 10 seconds
2019-08-11 20:38:43 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.trash_pmd is taking over 10 seconds
2019-08-11 20:38:43 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.chromecast_devices is taking over 10 seconds
2019-08-11 20:38:43 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.spotify is taking over 10 seconds
2019-08-11 20:38:43 WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv media_player took longer than the scheduled update interval 0:00:10
2019-08-11 20:38:43 WARNING (MainThread) [homeassistant.components.sensor] Updating afvalwijzer sensor took longer than the scheduled update interval 0:00:30
2019-08-11 20:38:43 WARNING (MainThread) [homeassistant.components.sensor] Updating spotcast sensor took longer than the scheduled update interval 0:00:30
2019-08-11 20:38:43 WARNING (MainThread) [homeassistant.components.media_player] Updating spotify media_player took longer than the scheduled update interval 0:00:30
2019-08-11 20:40:54 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - HTTPSConnectionPool(host='hachanges.halfdecent.io', port=443): Max retries exceeded with url: /96/json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f30f0467ac8>: Failed to establish a new connection: [Errno 110] Operation timed out'))
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.buienradar.sensor] Unable to retrieve xml data from Buienradar.(Msg: , status: None,)
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.buienradar.sensor] Unable to retrieve xml data from Buienradar.(Msg: , status: None,)
2019-08-11 20:40:54 ERROR (MainThread) [coap] Exception CancelledError() can not be represented as errno, setting -1.
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for Ouderslaapkamer Gu10 Hue 2
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for TRADFRI bulb E27 WS opal 980lm 6
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for TRADFRI bulb GU10 WS 400lm 2
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for Ouderslaapkamer Gu10 Hue 1
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for Leeslamp onderste
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for TRADFRI bulb E14 W op/ch 400lm 2
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for Trapkast
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for Leeslamp bovenste
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for TRADFRI bulb E27 WS clear 950lm
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for TRADFRI bulb GU10 WS 400lm
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for Ouderslaapkamer Gu10 Hue 3
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for TRADFRI bulb GU10 WS 400lm 3
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for TRADFRI bulb E27 WS opal 980lm 2
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for Leeslamp middelste
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.light] Observation failed for TRADFRI bulb E27 W opal 1000lm 3
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.sensor] Observation failed for Leeslamp remote
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 WARNING (MainThread) [homeassistant.components.tradfri.sensor] Observation failed for Ouderslaapkamer remote
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut
2019-08-11 20:40:54 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <function async_track_state_change.<locals>.state_change_listener at 0x7f30f0e29bf8>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 85, in state_change_listener
    event.data.get('new_state'))
  File "/usr/src/homeassistant/homeassistant/core.py", line 342, in async_run_job
    target(*args)
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 106, in template_condition_listener
    template_result = condition.async_template(hass, template, variables)
  File "/usr/src/homeassistant/homeassistant/helpers/condition.py", line 331, in async_template
    value = value_template.async_render(variables)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 191, in async_render
    return self._compiled.render(kwargs).strip()
  File "/usr/local/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render
    return original_render(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 1, in top-level template code
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
2019-08-11 20:40:54 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <function async_track_state_change.<locals>.state_change_listener at 0x7f30f0e2e048>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 85, in state_change_listener
    event.data.get('new_state'))
  File "/usr/src/homeassistant/homeassistant/core.py", line 342, in async_run_job
    target(*args)
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 106, in template_condition_listener
    template_result = condition.async_template(hass, template, variables)
  File "/usr/src/homeassistant/homeassistant/helpers/condition.py", line 331, in async_template
    value = value_template.async_render(variables)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 191, in async_render
    return self._compiled.render(kwargs).strip()
  File "/usr/local/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render
    return original_render(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "<template>", line 1, in top-level template code
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
2019-08-11 20:43:05 ERROR (MainThread) [custom_components.breaking_changes] Could not update data - HTTPSConnectionPool(host='hachanges.halfdecent.io', port=443): Max retries exceeded with url: /96/json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f30ef9c00b8>: Failed to establish a new connection: [Errno 110] Operation timed out'))
2019-08-11 20:43:05 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.chromecast_devices is taking over 10 seconds
2019-08-11 20:43:05 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.spotify is taking over 10 seconds
2019-08-11 20:43:05 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <function Request.send_request.<locals>.timeout_request at 0x7f30f0b34c80>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 261, in uvloop.loop.TimerHandle._run
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 732, in timeout_request
    del self.protocol.outgoing_requests[(request.token, request.remote)]
KeyError: (b'\x00\x00>\x1a', <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7f30f07ac588>)
2019-08-11 20:43:05 WARNING (MainThread) [homeassistant.components.sensor] Updating spotcast sensor took longer than the scheduled update interval 0:00:30
2019-08-11 20:43:05 WARNING (MainThread) [homeassistant.components.media_player] Updating spotify media_player took longer than the scheduled update interval 0:00:30
2019-08-11 20:43:05 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 155, in request
    result = await self._execute(api_commands)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 114, in _execute
    await self._observe(api_command)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 172, in _observe
    pr, r = await self._get_response(msg)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 100, in _get_response
    await self._reset_protocol(e)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 78, in _reset_protocol
    await protocol.shutdown()
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 133, in shutdown
    for exchange_monitor, cancellable in self._active_exchanges.values():
AttributeError: 'NoneType' object has no attribute 'values'
2019-08-11 20:43:05 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
aiocoap.error.RequestTimedOut

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 155, in request
    result = await self._execute(api_commands)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 114, in _execute
    await self._observe(api_command)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 172, in _observe
    pr, r = await self._get_response(msg)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 100, in _get_response
    await self._reset_protocol(e)
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 78, in _reset_protocol
    await protocol.shutdown()
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 133, in shutdown
    for exchange_monitor, cancellable in self._active_exchanges.values():
AttributeError: 'NoneType' object has no attribute 'values'
2019-08-11 20:43:05 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pytradfri/api/aiocoap_api.py", line 95, in _get_response
    r = await pr.response
  File "/usr/local/lib/python3.7/site-packages/aiocoap/protocol.py", line 816, in _run_outer

(log is too long to paste entirely here)
Can you please help me on my way to restore a snapshot?

How about this? Stop all containers, remove all containers, then reinstall Hassio:

docker container stop $(docker container ls -aq)
docker container rm $(docker container ls -aq)
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s

Seems the first error is the template cover.

I don’t use hassio so I can’t speak about the snapshots, but if it were me I would rather know WHY it broke…

This doesn’t actually do anything.

Running the script again is useless. It’s not installing anything but the service files and starting the service. If you’re going to go down this road, just stop the services, remove the docker images, and restart the services.

Right now, I just prefer to get it up and running. Thanks for your suggestion; but being unfamiliar with this, how do I do this? And would it accomplish a fresh Hassio install? That’s what I’m trying to achieve, restoring a snapshot shouldn’t be a problem if only I can reach a working Hassio installation.

Stop the 2 services that were installed using the script.

Remove the 2 docker containers that were created when you ran the script.

Start the 2 services again.

WOW! The same thing happened to me over night! I am trying to figure out what happened. It appears it may be HACS and/or “breaking changes” add-on I installed yesterday. My config folder is intact and I can see all files.

Curious to see how arrive at a solution. Mine is Proxmox VM, and it is running without errors.

my system is having the same issue. Mine is hass.io on a pi3. I’m going to try and get rid of things one by one.

1 Like

I just had similar problems today… Haven’t touch my 0.96.5 or so and this afternoon it failed while I was gardening. Tried serveral things and have no real clue why this happened (I didn’t touch it for sure).

But. I suspect custom components / hacs / something… I could access the main page with several services failing, but couldn’t access hass.io or dev-tools or anything meaningful.

What seems to be working now is that I did a docker restart homeassistant. After that I managed to access hass.io and right away updated to 0.97.1. That failed with an angry red blink. After that I disabled custom components NIBE and alexa media player… I think I restarted again, and then it all went up. With 0.97… Most things seems to be working now…

Its the breaking changes. I removed that and everything is good now

3 Likes

Thanks it was ‘breaking changes’ custom component for me as well.

It seems the website https://hachanges.halfdecent.io/ is down, this is where ‘breaking changes’ gets its information.

And now for a quick update. It was ‘breaking changes’ that caused all of my troubles. I edited the config.yaml to remove it, saved the file. Went into Proxmox and reset the HA VM. The front end is back up and running. Whew! Got lucky on this one.

Someone already made an issue on the Github: https://github.com/custom-components/breaking_changes/issues/13

Yes terrible error handling if their website being down can bring down your whole system.

3 Likes

An update for the Breaking Changes custom component has been released. It fixed the problem for me.

I manually downloaded the .zip file and replaced my existing files with the updated files and rebooted HA. After restarting I was able to access the Home Assistant front end.

I’m running HA in a python virtual env and my system started running slowly this morning for no known reason - until I found this thread.

Uhm… I just took a quick peek at the source code and couldn’t find anyting “terrible” in it. Just a simple requests.get() call, used in the same way as virtually every python developer would use this function in a python script.

You know, I can understand your frustration about your broken HA instance. But please verify, that you really know, what you are talking about, before blaming a developer for “terrible” coding in a public forum.

Especially if this developer provides a fix for the bug within three hours (!) even without being able to reproduce this bug.