core
core copied to clipboard
Traccar Server Integration crashes HA due to infinite error messages filling the log file.
The problem
This issue has previously been reported in #121475, but wasn't really resolved there.
At random times, HA starts to spit out the following error message in an infinite loop:
2024-08-28 21:03:08.071 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorSocketTransport._read_ready() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 960, in _read_ready
self._read_ready_cb()
TypeError: 'NoneType' object is not callable
2024-08-28 21:03:08.073 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorSocketTransport._read_ready() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 960, in _read_ready
self._read_ready_cb()
TypeError: 'NoneType' object is not callable
2024-08-28 21:03:08.075 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorSocketTransport._read_ready() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 960, in _read_ready
self._read_ready_cb()
TypeError: 'NoneType' object is not callable
2024-08-28 21:03:08.077 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorSocketTransport._read_ready() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 960, in _read_ready
self._read_ready_cb()
TypeError: 'NoneType' object is not callable
2024-08-28 21:03:08.079 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorSocketTransport._read_ready() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 960, in _read_ready
self._read_ready_cb()
TypeError: 'NoneType' object is not callable
Whenever this happens. it produces huge amounts of data in home-assistant.log, until the whole system runs out of disk space (HAOS in my case).
It was previously suspected that this might be caused by specific custom components, but I have been running HA without any custom component or a while now and the issue just started again.
The main problem is that the logs include no indication whatsoever about the cause of the error, i.e. what module or integration fails. I haven't been able to observe any malfunctioning. The massive log file growth, however, makes HA hardly usable.
Any ideas how one might pinpoint the issue to a component or integration for further analysis?
What version of Home Assistant Core has the issue?
core-2024.8.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
I'm guessing you have a thread safety issue with one of your integrations
Please follow these steps https://community.home-assistant.io/t/2024-5-tracking-down-instability-issues-caused-by-integrations/724441
Thank you very much for the pointer! With these debug options, I'm getting the following:
2024-08-29 01:28:43.847 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.495 seconds
2024-08-29 01:36:35.156 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.495 seconds
2024-08-29 01:42:03.430 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.510 seconds
2024-08-29 01:47:21.461 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.499 seconds
2024-08-29 01:52:59.850 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.539 seconds
2024-08-29 01:58:38.410 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.553 seconds
2024-08-29 02:04:17.144 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.574 seconds
2024-08-29 02:09:55.713 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.593 seconds
2024-08-29 02:14:53.588 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.604 seconds
2024-08-29 02:19:51.614 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.625 seconds
2024-08-29 02:25:20.279 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.638 seconds
2024-08-29 02:29:46.881 WARNING (MainThread) [asyncio] Executing <Task pending name='Traccar Server subscription' coro=<TraccarServerCoordinator.subscribe() running at /usr/src/homeassistant/homeassistant/components/traccar_server/coordin
ator.py:238> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/local/lib/python3.12/asyncio/base_events.py:449> cb=[set.remove(), set.remove()]> took 0.114 seconds
2024-08-29 02:29:46.922 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorSocketTransport._read_ready() (None): File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1982, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 918, in _add_reader
self._loop._add_reader(fd, callback, *args)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 276, in _add_reader
handle = events.Handle(callback, args, self, None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 960, in _read_ready
self._read_ready_cb()
TypeError: 'NoneType' object is not callable
2024-08-29 02:29:46.927 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorSocketTransport._read_ready() (None): File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1982, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 918, in _add_reader
self._loop._add_reader(fd, callback, *args)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 276, in _add_reader
handle = events.Handle(callback, args, self, None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 960, in _read_ready
self._read_ready_cb()
TypeError: 'NoneType' object is not callable
...
So, I guess this might be due to the Traccar Server integration...? Not 100% sure though, because the tracebacks themselves have no further indication of Traccar. On the other hand, I actually re-enabled the Traccar Server integration recently, so this might correlate with the issue re-appearing after some time now
I can confirm the same type of log spam explosions ended when I disabled the traccar server integration. This would usually occur after home assistant running for two hours or so and then not stop until the disk was full (or my monitoring alerted me on the rapid disk space decrease and I restarted HA). I assume this is a potential bug in that component. @cdoepmann could you edit the issue title accordingly?
CC @ludeeus @joostlek - any insights?
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
I tried recently and the issue still persists.
Since, like this, the Traccar integration is unfortunately unusable (at least that's what I am experiencing), a bugfix would be very much appreciated :)
Just had this issue after having Traccar enabled for a few days. What changed today though was that I enable openID. Guessing that was throwing things for a loop...at least in my case.
I don't understand the interference, but the issue indeed seems to be facilitated by other integrations. In #121475, Frigate was mentioned as another example.
There was a change in python recently to fix a similar issue. Is this still a problem with HA 2025.6+?
I just re-activated the Traccar Server integration for testing and will let you know when I can report any results.
Just for reference: What is the exact fix you are referring to?
Unfortunately, the issue is still present:
2025-08-15 11:46:36.877 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorSocketTransport._read_ready() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
self._context.run(self._callback, *self._args)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 962, in _read_ready
self._read_ready_cb()
~~~~~~~~~~~~~~~~~~~^^
TypeError: 'NoneType' object is not callable
2025-08-15 11:46:36.880 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorSocketTransport._read_ready() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
self._context.run(self._callback, *self._args)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 962, in _read_ready
self._read_ready_cb()
~~~~~~~~~~~~~~~~~~~^^
TypeError: 'NoneType' object is not callable
2025-08-15 11:46:36.884 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorSocketTransport._read_ready() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
self._context.run(self._callback, *self._args)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 962, in _read_ready
self._read_ready_cb()
~~~~~~~~~~~~~~~~~~~^^
TypeError: 'NoneType' object is not callable
For some reason, the integration wasn't properly enabled at first, so I thought it might be ok, but it wasn't actually doing anything. When I properly activated it again, the issue started occuring within 1-2 days.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
I've recently tried with latest updates again and the issue unfortunately still persists.