(Resolved) Where, Oh where, does this error come from

For a couple of weeks now, I have been seeing the following errors in my ha Log file.

2022-10-10 17:42:09.636 ERROR (MainThread) [homeassistant.components.ipp.coordinator] Error fetching ipp data: Invalid response from API: Timeout occurred while connecting to IPP server.
2022-10-10 17:42:23.992 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:42:30.159 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:42:30.168 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:42:35.405 ERROR (SyncWorker_3) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:42:35.475 ERROR (SyncWorker_3) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:42:35.478 ERROR (SyncWorker_3) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:42:35.481 ERROR (SyncWorker_3) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:42:35.486 ERROR (SyncWorker_3) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:42:55.341 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:42:55.364 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:43:06.015 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:43:06.024 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:43:38.310 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:43:38.314 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:44:38.316 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:44:38.516 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:45:40.129 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:45:40.137 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:46:39.543 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:46:53.692 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:47:54.344 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:48:51.395 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:48:51.431 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:48:54.929 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:49:46.031 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:49:46.041 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:50:46.076 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-10 17:50:46.080 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!

There are basicly just 3 errors, (MainThread), (SyncWorker_3), and (Recorder). And these 3 error, randomly fill the log file,

I also found the following Info, on each error;

1st error
Logger: homeassistant
Source: runner.py:119
First occurred: 5:42:23 PM (65 occurrences)
Last logged: 6:12:46 PM

Error doing job: Task was destroyed but it is pending!

2nd error
Logger: homeassistant
Source: runner.py:96
First occurred: 5:42:35 PM (7 occurrences)
Last logged: 5:48:51 PM

Error doing job: Task was destroyed but it is pending!

3rd error
Logger: homeassistant.components.ipp.coordinator
Source: helpers/update_coordinator.py:182
Integration: Internet Printing Protocol (IPP) (documentation, issues)
First occurred: 5:42:09 PM (1 occurrences)
Last logged: 5:42:09 PM

Error fetching ipp data: Invalid response from API: Timeout occurred while connecting to IPP server.

So I need some Ideas where to start looking. Thanks.

1 Like

From your printer’s integration?

Thanks, I disable the HP printer integration, that seems to take care of the (recorder) error. Again Thanks…

Any takers for the first two errors. I am still seeing 4 (SyncWorker_2) errors, and the rest are (MainThread).

I have seen more posts on the (French) forums and it seems related to 2022.10.2
EDIT: apparently not, just noticed your ‘for a couple of weeks’ so you see this since before .2 came out

can you please check, if you have some traceback information available in the logs?

Something like this:



Logger: homeassistant
Source: custom_components/skodaconnect/sensor.py:50
Integration: Skoda Connect (documentation, issues)
First occurred: 14:57:07 (1 occurrences)
Last logged: 14:57:07
Error doing job: Task exception was never retrieved

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 110, in async_update_listeners
    update_callback()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state
    state = self._stringify_state(available)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state
    if (state := self.state) is None:
  File "/config/custom_components/skodaconnect/sensor.py", line 50, in state
    return self.instrument.state
  File "/usr/local/lib/python3.10/site-packages/skodaconnect/dashboard.py", line 124, in state
    val = super().state
  File "/usr/local/lib/python3.10/site-packages/skodaconnect/dashboard.py", line 55, in state
    if hasattr(self.vehicle, self.attr):
  File "/usr/local/lib/python3.10/site-packages/skodaconnect/vehicle.py", line 1416, in distance
    value = self.attrs.get('StoredVehicleDataResponseParsed')['0x0101010002'].get('value', 0)
TypeError: 'NoneType' object is not subscriptable

@CChris Which log file shoud I look at? If not the Home Assistant Core log, which is below is the short form, and the full log

Error doing job: Task was destroyed but it is pending!
9:19:52 PM – (ERROR) runner.py - message first occurred at 8:31:30 PM and shows up 86 times
Error doing job: Task was destroyed but it is pending!
9:06:51 PM – (ERROR) runner.py - message first occurred at 8:31:40 PM and shows up 23 times
Error doing job: Task exception was never retrieved
9:00:56 PM – (ERROR) /usr/src/homeassistant/homeassistant/runner.py - message first occurred at 8:32:12 PM and shows up 4 times

The full log.

2022-10-11 20:30:47.790 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration watchman which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-11 20:30:47.795 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-11 20:30:47.797 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration mass which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-11 20:30:47.800 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-11 20:30:47.803 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration garbage_collection which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-11 20:30:47.807 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-11 20:30:47.809 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration media_player_template which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-11 20:30:47.811 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration holidays which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-11 20:30:47.813 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-11 20:31:30.214 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:31:30.235 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:31:37.332 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:31:37.344 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:31:40.537 ERROR (SyncWorker_6) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:31:40.566 ERROR (SyncWorker_6) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:31:40.570 ERROR (SyncWorker_6) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:31:40.575 ERROR (SyncWorker_6) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:31:52.794 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:32:12.711 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:32:12.743 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved
RuntimeError: cannot reuse already awaited coroutine
2022-10-11 20:32:12.744 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:32:26.079 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:32:26.090 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:32:46.203 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:32:46.213 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:33:46.211 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:33:46.213 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:34:46.253 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:35:32.487 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:36:01.586 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:37:02.043 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:37:55.170 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:38:01.758 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:39:01.493 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:39:01.504 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:39:03.222 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:39:03.230 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:39:57.501 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:39:57.719 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:40:52.330 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:40:52.336 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:40:52.338 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved
RuntimeError: cannot reuse already awaited coroutine
2022-10-11 20:42:00.030 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:42:00.040 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:43:00.118 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:43:00.122 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:43:52.963 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:43:52.972 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:45:00.015 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:45:00.026 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:45:59.352 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:45:59.367 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved
RuntimeError: cannot reuse already awaited coroutine
2022-10-11 20:45:59.368 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:46:52.293 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:46:52.304 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:47:58.547 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:47:58.551 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:49:00.019 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:49:00.027 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:49:53.905 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:49:53.924 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:50:54.301 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:50:54.307 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:52:00.023 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:52:00.030 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:52:52.599 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:52:52.602 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:53:57.013 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:53:57.017 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:54:58.115 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:54:58.129 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:55:54.431 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:55:54.434 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:56:58.076 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:56:58.081 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:57:55.015 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:57:55.023 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:58:52.978 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 20:58:53.006 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:00:00.019 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:00:00.024 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:00:56.443 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:00:56.634 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved
RuntimeError: cannot reuse already awaited coroutine
2022-10-11 21:00:56.635 ERROR (Recorder) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:01:54.438 ERROR (DbWorker_1) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:01:54.449 ERROR (DbWorker_1) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:02:58.079 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:02:58.087 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:04:00.021 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:04:00.024 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:04:52.416 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:04:52.418 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:05:58.017 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:05:58.019 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:06:51.550 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:06:51.552 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:07:53.010 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:07:53.014 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:08:58.081 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:08:58.091 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:10:00.020 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:10:00.034 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:10:52.742 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:10:52.749 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:11:50.042 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:11:58.143 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:12:58.090 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:12:58.094 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:13:55.808 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:13:55.812 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:14:59.241 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:14:59.244 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:15:54.823 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:15:54.827 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:16:52.481 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:16:52.484 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:17:51.006 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:17:51.010 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:18:58.013 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:18:58.017 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!
2022-10-11 21:19:52.464 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!

@vingerha Actually, I started seeing the issue, after updating to 2022.9.2

I don’t recall when I first started seeing this, but getting the same thing here:

Logger: homeassistant
Source: runner.py:119
First occurred: October 13, 2022 at 12:06:01 PM (660 occurrences)
Last logged: 11:25:56 AM

Error doing job: Task was destroyed but it is pending!

Fixed After updating the HA Core to 2022.10.4, ALL my “Task was destroyed but it is pending!” errors, seem to be gone.