How can I get the Python code to give me a backtrace on these?
➜ config tail -f home-assistant.log
2025-07-01 07:30:37.196 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session (None)
2025-07-01 07:30:37.197 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector (None)
2025-07-01 07:45:33.704 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session (None)
2025-07-01 07:45:33.705 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector (None)
2025-07-01 07:45:37.347 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session (None)
2025-07-01 07:45:37.349 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector (None)
2025-07-01 08:00:34.877 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session (None)
2025-07-01 08:00:34.879 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector (None)
2025-07-01 08:00:38.021 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session (None)
2025-07-01 08:00:38.023 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector (None)
I assume there’s some integration that’s not handling its sockets correctly, right? And retrying or polling every 15 minutes.
➜ config fgrep 'Error doing job: Unclosed connector (None)' home-assistant.log | cut -d ' ' -f 1 | sort | uniq -c
80 2025-06-24
192 2025-06-25
192 2025-06-26
192 2025-06-27
192 2025-06-28
192 2025-06-29
190 2025-06-30
64 2025-07-01
Seems to not be an uncommon issue. (Crap, one of those links is mine…)
Is there a way to enable a backtrace on those?