I have a question on debugging and logs. Like many others over the years (here, here, here, here and a Github issue) I have these messages in my logs – about 500 in the last 8 hours.
2024-04-01 16:51:58.834 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session
2024-04-01 16:51:58.836 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector
2024-04-01 16:52:09.046 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session
2024-04-01 16:52:09.048 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector
2024-04-01 17:06:59.840 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session
2024-04-01 17:06:59.841 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector
2024-04-01 17:07:09.930 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session
2024-04-01 17:07:09.932 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector
I’ve tried disabling a bunch of integrations as others have suggested but they persist.
But, my main question is how to get a Traceback
for them? These errors stand alone in my logs and I can’t see any related stack trace to know what’s triggering the errors. I tried enablng debug
and tried just for the component:
logger:
default: info
logs:
homeassistant: debug
but homeassistant
is, I assume, top-level and floods the logs with debug messages.
Is there an approach to find the cause? Grep for those messages and add a call to force a traceback?
Thanks,