Home Assistant Running yet not Responding on the Network, it is still running according the HassIO however

This is an odd issue, for some reason the HA container is still running yet the HA webinterface does no respond, it just throws a 404: Firefox can't establish a connection to the server at hassio.local:8123. Up until around 20 mins ago HA was running without issue.

Here’s my info:

# ha info
arch: armv7
boot: true
custom: false
image: homeassistant/raspberrypi3-homeassistant
ip_address: 172.30.32.1
last_version: 0.93.2
machine: raspberrypi3
port: 8123
ssl: false
version: 0.93.2
wait_boot: 600
watchdog: true

Running on a RPi3, good SD card, external MariaDB 10, good PSU, etc. I am running the trakt custom component here and this error does mention the trakt component, but I don’t see how using a custom component can make HA vanish from the network. Here’s my HA log:

hassio > login
# docker container exec homeassistant cat /config/home-assistant.log

2019-06-05 07:21:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "uvloop/loop.pyx", line 1445, in uvloop.loop.Loop.run_until_complete
  File "uvloop/loop.pyx", line 1438, in uvloop.loop.Loop.run_until_complete
  File "uvloop/loop.pyx", line 1347, in uvloop.loop.Loop.run_forever
  File "uvloop/loop.pyx", line 487, in uvloop.loop.Loop._run
  File "uvloop/loop.pyx", line 404, in uvloop.loop.Loop._on_idle
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 220, in async_update_ha_state
    await self.async_device_update()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 377, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/trakt/sensor.py", line 144, in update
    calendar = MyShowCalendar(days=self._days)
  File "/config/deps/lib/python3.7/site-packages/trakt/calendar.py", line 31, in __init__
    self._get()
  File "/config/deps/lib/python3.7/site-packages/trakt/core.py", line 455, in inner
    json_data = self._handle_request('get', url)
  File "/config/deps/lib/python3.7/site-packages/trakt/core.py", line 432, in _handle_request
    raise self.error_map[response.status_code]()
trakt.errors.TraktUnavailable: Trakt Unavailable - server overloaded
2019-06-05 07:21:39 ERROR (MainThread) [homeassistant.helpers.entity] Update for binary_sensor.meteoalarm fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "uvloop/loop.pyx", line 1445, in uvloop.loop.Loop.run_until_complete
  File "uvloop/loop.pyx", line 1438, in uvloop.loop.Loop.run_until_complete
  File "uvloop/loop.pyx", line 1347, in uvloop.loop.Loop.run_forever
  File "uvloop/loop.pyx", line 487, in uvloop.loop.Loop._run
  File "uvloop/loop.pyx", line 404, in uvloop.loop.Loop._on_idle
  File "uvloop/cbhandles.pyx", line 68, in uvloop.loop.Handle._run
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 220, in async_update_ha_state
    await self.async_device_update()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 377, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/trakt/sensor.py", line 144, in update
    calendar = MyShowCalendar(days=self._days)
  File "/config/deps/lib/python3.7/site-packages/trakt/calendar.py", line 31, in __init__
    self._get()
  File "/config/deps/lib/python3.7/site-packages/trakt/core.py", line 455, in inner
    json_data = self._handle_request('get', url)
  File "/config/deps/lib/python3.7/site-packages/trakt/core.py", line 432, in _handle_request
    raise self.error_map[response.status_code]()
trakt.errors.TraktUnavailable: Trakt Unavailable - server overloaded

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 220, in async_update_ha_state
    await self.async_device_update()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 377, in async_device_update
    await self.hass.async_add_executor_job(self.update)
concurrent.futures._base.CancelledError

Here’s the docker container info:

# docker stats
NAME                     CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
hassos_supervisor        0.00%               29.71MiB / 969.8MiB   3.06%               99.1MB / 84.8MB     12.4MB / 2.23MB     28
boring_tu                0.00%               708KiB / 969.8MiB     0.07%               41.8MB / 953B       0B / 0B             2
homeassistant            0.09%               111.1MiB / 969.8MiB   11.46%              0B / 0B             4.71MB / 34.2MB     58
addon_core_duckdns       0.00%               2.055MiB / 969.8MiB   0.21%               121MB / 12.3MB      7.85MB / 926kB      3
addon_core_nginx_proxy   0.00%               3.25MiB / 969.8MiB    0.34%               5.12GB / 5.08GB     6.92MB / 24.6kB     3

The NGINX is still working OK, it just throws 502 bad gateway due to HA not serving any data.

As you can see the NET I/O is 0b/0b for the HA container so my question here is:

  • Has anyone else had this happen to them?
  • Does anyone know what can cause this?
  • Does anyone know what can fix this?

Thanks :slight_smile:

This seems to have been a one off, has only happened the one time.

However I now have NodeRED acting as a watchdog, and it will auto reboot HassIO if this happens again, in theory.

I had to disable trakt component for that very reason. Couldn’t connect to hassio until I did. A few others have had the same problem. Still cannot use trakt as it brings everything to a halt each time I reenable it.

1 Like

Thanks, I think I’ll disable trakt for now. I understand that this is a custom component so it’s best to manage expectations. :slight_smile: