Trying to clean up my logs and I have a lot of:
2025-12-12 07:00:02.689 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session (None)
2025-12-12 07:00:02.692 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector (None)
There’s some component that’s failing to clean up its connections, it seems. But where?
In /usr/src/homeassistant/homeassistant/runner.py there’s this code:
logger.error(
"Error doing job: %s (%s)",
context["message"],
context.get("task"),
**kwargs, # type: ignore[arg-type]
)
Is there a way to get a backtrace or something that might show some context to know what code is failing to clean up its connections?