My hassio web page is down this morning, how to troubleshoot it?

I just figured it out this morning through trial and error. I removed almost all of my configuration.yaml and then upgraded to 0.97.2. It came up successfully.

Then I added stuff back in and restarted home assistant each time. When I got to my sensors line:

sensor: !include_dir_merge_list sensors/

it was the toggle. I then went through my sensors directory and removed only the enphase_envoy.yaml file, contents look like this:

- platform: enphase_envoy
  ip_address: 192.168.0.144
  monitored_conditions:
   - production
   - daily_production
   - seven_days_production
   - lifetime_production
   - consumption
   - daily_consumption
   - seven_days_consumption
   - lifetime_consumption
   - inverters

With that single file removed, the system comes up correctly. Looks like thereā€™s a bug in there somewhere. I suspected that the inverters might be the cause because I have 30 of them so I commented that single element out and restarted home assistant and the whole thing still works!!

1 Like

A little more detail, tonight Iā€™ve been futzing with the envoy component. I noticed that all my enphase envoy entities were still blank. I looked in the developer options to see what errors/warnings were displayed and I found this:

Tue Aug 13 2019 21:11:35 GMT-0600 (Mountain Daylight Time)
Update for sensor.envoy_current_energy_production fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests_async/adapters.py", line 55, in send
    timeout=timeout,
  File "/usr/local/lib/python3.7/site-packages/http3/interfaces.py", line 49, in request
    return await self.send(request, verify=verify, cert=cert, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/http3/dispatch/connection_pool.py", line 130, in send
    raise exc
  File "/usr/local/lib/python3.7/site-packages/http3/dispatch/connection_pool.py", line 121, in send
    request, verify=verify, cert=cert, timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/http3/dispatch/connection.py", line 59, in send
    response = await self.h11_connection.send(request, timeout=timeout)
  File "/usr/local/lib/python3.7/site-packages/http3/dispatch/http11.py", line 58, in send
    http_version, status_code, headers = await self._receive_response(timeout)
  File "/usr/local/lib/python3.7/site-packages/http3/dispatch/http11.py", line 130, in _receive_response
    event = await self._receive_event(timeout)
  File "/usr/local/lib/python3.7/site-packages/http3/dispatch/http11.py", line 165, in _receive_event
    self.READ_NUM_BYTES, timeout, flag=self.timeout_flag
  File "/usr/local/lib/python3.7/site-packages/http3/concurrency.py", line 107, in read
    raise ReadTimeout() from None
http3.exceptions.ReadTimeout

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 417, in async_device_update
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/components/enphase_envoy/sensor.py", line 118, in async_update
    _state = await getattr(EnvoyReader(self._ip_address), self._type)()
  File "/usr/local/lib/python3.7/site-packages/envoy_reader/envoy_reader.py", line 111, in production
    await self.detect_model()
  File "/usr/local/lib/python3.7/site-packages/envoy_reader/envoy_reader.py", line 42, in detect_model
    self.endpoint_url, timeout=30, allow_redirects=False)
  File "/usr/local/lib/python3.7/site-packages/requests_async/api.py", line 11, in get
    return await request("get", url, params=params, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests_async/api.py", line 6, in request
    return await session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests_async/sessions.py", line 79, in request
    resp = await self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests_async/sessions.py", line 136, in send
    r = await adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests_async/adapters.py", line 62, in send
    raise ReadTimeout(err, request=request)
requests.exceptions.ReadTimeout

I tried to pull up the api using the URL: http://<envoy_ip_address>/api/v1/production and it timed out.

Interesting. I pulled up the Enphase Enlighten app and it was still receiving data, it has all day. I could ping the IP locally but I couldnā€™t pull up the management webpage nor the api details. I went out and flipped the breaker to turn the Envoy off, and flipped it back on. I gave it a minute to boot and everything was right in the world again ā€“ all my home assistant values trickled in from the Envoy and I could access the management and API pages.

Now Iā€™m starting to think that the Envoy thing got in some weird state (at 4am the other day) and this caused Home Assistant to freak out and lock up. I know the component was broken in 0.96.5 so it makes sense that downgrading would clear up the problem. Instead of HA just timing out and reporting an error when trying to access the API it froze.

Phew - Thanks SpikeyGG, you saved my life. I had exactly the same problem. I had rolled back to backups, built new and restored my config over the top. No terrible errors all the add-ons working but no UI. I was despairing until I read this. Seems like an obvious troubleshooting step now but I followed your lead and removed all the ! includes. In the end it was my Wake-on-LAN switch which hasnā€™t changed in years and suddenly it stopped my UI booting. Weird. I disabled it and all back to normal. Thanks.

I donā€™t think I had the same issues, but my HA just randomly stopped working while i was using it. Mostly worked, but couldnā€™t save files, and would get errors on the page. Loading the page, it wouldnā€™t load up certain files (developer mode in chrome told me it was manifest.json, and some others). The HA console wouldnā€™t load when I plugged directly into the machine, but it didnā€™t give any real errors.

One thing this tread mentioned is power supply. I switched back to an official RPi power supply (I have a RPI4), and rebooted. suddenly, everything seems to work again!!

I guess Power supplies do matter. My RPI3ā€™s have been fine on a big multi-port USB power supply. The 4 doesnā€™t seem to like it though. Phew. Hopefully this solved my problem permanently.