HA Green - Watchdog missed 2 Home Assistant Core API responses in a row. Restarting Home Assistant Core!

My Home Assistan Green is restarting randomly from time to time.

Core: 2025.1.3
Supervisor: 2024.12.3
Operating System: 14.1
Frontend: 20250109.0

2025-01-23 20:06:15.219 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/music-assistant/home-assistant-addon repository
2025-01-23 20:06:15.229 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
2025-01-23 20:06:15.239 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
2025-01-23 20:06:15.249 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
2025-01-23 20:06:17.854 INFO (MainThread) [supervisor.store] Loading add-ons from store: 80 all - 0 new - 0 remove
2025-01-23 20:06:17.854 INFO (MainThread) [supervisor.store] Loading add-ons from store: 80 all - 0 new - 0 remove
2025-01-23 20:12:30.022 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
2025-01-23 20:16:22.174 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2025-01-23 20:46:22.907 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2025-01-23 21:02:53.897 ERROR (MainThread) [supervisor.homeassistant.api] Timeout on call https://172.30.32.1:8123/api/core/state.
2025-01-23 21:02:53.898 WARNING (MainThread) [supervisor.misc.tasks] Watchdog missed an Home Assistant Core API response.
2025-01-23 21:05:06.032 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2025-01-23 21:05:06.032 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2025-01-23 21:05:06.108 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2025-01-23 21:05:06.123 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2025-01-23 21:05:06.124 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2025-01-23 21:05:06.125 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2025-01-23 21:05:06.125 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2025-01-23 21:05:06.126 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2025-01-23 21:05:06.126 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2025-01-23 21:05:06.128 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2025-01-23 21:05:06.128 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2025-01-23 21:05:06.129 INFO (MainThread) [supervisor.resolution.check] System checks complete
2025-01-23 21:05:06.129 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2025-01-23 21:05:06.466 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2025-01-23 21:05:06.467 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2025-01-23 21:05:06.468 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2025-01-23 21:05:24.869 ERROR (MainThread) [supervisor.homeassistant.api] Timeout on call https://172.30.32.1:8123/api/core/state.
2025-01-23 21:05:24.870 ERROR (MainThread) [supervisor.misc.tasks] Watchdog missed 2 Home Assistant Core API responses in a row. Restarting Home Assistant Core!
2025-01-23 21:05:24.883 INFO (SyncWorker_0) [supervisor.docker.manager] Restarting homeassistant
2025-01-23 21:05:36.878 ERROR (MainThread) [supervisor.homeassistant.api] Timeout on call https://172.30.32.1:8123/api/core/state.
2025-01-23 21:09:28.268 WARNING (MainThread) [supervisor.homeassistant.websocket] Connection is closed
2025-01-23 21:09:28.270 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-19006' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:322> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 267, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 95, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 327, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 269, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2025-01-23 21:09:28.275 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-19007' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:322> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 267, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 95, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 327, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 269, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2025-01-23 21:09:28.282 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-19008' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:322> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 267, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 95, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 327, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 269, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2025-01-23 21:09:28.287 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-19009' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:322> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 267, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 95, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 327, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 269, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2025-01-23 21:09:28.295 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-19010' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:322> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 267, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 95, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 327, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 269, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2025-01-23 21:09:28.304 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-19011' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:322> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 267, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 95, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 327, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 269, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2025-01-23 21:09:28.310 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-19012' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:322> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 267, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 95, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 327, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 269, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2025-01-23 21:09:28.316 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-19014' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:322> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 267, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 95, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 327, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 269, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2025-01-23 21:09:28.322 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-19015' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:322> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 267, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 95, in async_send_command
    return await self._futures[message["id"]]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
supervisor.exceptions.HomeAssistantWSConnectionError: Connection was closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 327, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 269, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2025-01-23 21:09:28.830 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
2025-01-23 21:09:42.342 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2025-01-23 21:09:42.770 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2025-01-23 21:09:44.110 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to APIState(core_state='NOT_RUNNING', offline_db_migration=False)
2025-01-23 21:10:09.467 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to APIState(core_state='RUNNING', offline_db_migration=False)
2025-01-23 21:10:09.468 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
2025-01-23 21:18:09.647 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2025-01-23 21:46:09.237 INFO (MainThread) [supervisor.host.info] Updating local host information
2025-01-23 21:46:10.343 INFO (MainThread) [supervisor.host.services] Updating service information
2025-01-23 21:46:10.361 INFO (MainThread) [supervisor.host.network] Updating local network information
2025-01-23 21:46:10.672 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
2025-01-23 21:46:10.699 INFO (MainThread) [supervisor.host.manager] Host information reload completed
2025-01-23 21:48:10.361 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token

Any help is appreciated to solve the root cause.

The watchdog is not seeing HA running and therefore restarting HA.

There is another thread on the exact same error, but on completely different hardware, and the user there have done some testing already.

You should coordinate your effort.

EDIT: It might be this issue: