When I try to look at supervisor logs via the web interface (settings → Add-ons, Backups & Supervisor → System), it tries for a while, then times out with the error:
Failed to get supervisor logs, Unknown error, see supervisor logs
.
The browser console has a few errors indicating that the websocket connection was interrupted.
If I try to view supervisor logs using the command line via ha supervisor logs
, I get the error
Get "http://supervisor/supervisor/logs": context deadline exceeded (Client.timeout exceeded while awaiting headers)
The same happens with core and host logs as well.
I’m running version 2021.12.5 on HA OS 7.0 on a rpi4 (2GB) with an SSD. I’m not sure when this started, as it’s been a while since I tried to look at supervisor logs, and I’ve updated a couple of times since. If I had to guess, I’d say it started since I updated to 2021.12.x
Once I’ve attempted to get logs using either of the above methods, the supervisor seems to be stalled for a while. When I reload the page, I get Could not load the Supervisor panel!
with some troubleshooting tips. The Observer shows Connected, Supported, and Healthy. If I wait a bit and reload the page again, the supervisor panel loads back up (but still can’t get logs). At that point, Can't read Supervisor data:
shows up in the logs at Configuration → Settings → Logs, but no additional detail. Also in those logs, there are timeout errors for all of my installed add-ons, e.g. Timeout on /addons/core_samba/stats request
I’ve tried rebooting/power cycling the host, and disabling all add-ons, to no avail.
If I don’t try to get the supervisor/core/host logs, everything works as expected. So maybe this is just one of those “well then don’t do that” things… but I worry it could be a symptom of an underlying problem that will come back to bite me later.
Has anyone else seen something like this? Any suggestions on how to debug it? Is there another way to get at the logs to see if there are any clues there?