HA crashes a few times a day

HA crashes a few times a day after working flawlessly for more than a year
VM running in Proxmox.





2024-08-04 19:08:24.453 WARNING (MainThread) [supervisor.addons.options] Option 'keytype' does not exist in the schema for Let's Encrypt (core_letsencrypt)
2024-08-04 19:13:24.459 WARNING (MainThread) [supervisor.addons.options] Option 'keytype' does not exist in the schema for Let's Encrypt (core_letsencrypt)
2024-08-04 19:16:34.798 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-08-04 19:18:24.914 WARNING (MainThread) [supervisor.addons.options] Option 'keytype' does not exist in the schema for Let's Encrypt (core_letsencrypt)
2024-08-04 19:23:27.131 WARNING (MainThread) [supervisor.addons.options] Option 'keytype' does not exist in the schema for Let's Encrypt (core_letsencrypt)
2024-08-04 19:27:26.155 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API for local_ewelink_smart_home_slug closed
2024-08-04 19:27:36.762 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API for a0d7b954_nodered closed
2024-08-04 19:27:42.910 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API for a0d7b954_nodered closed
2024-08-04 19:27:48.911 WARNING (MainThread) [supervisor.misc.tasks] Watchdog/Application found a problem with observer plugin!
2024-08-04 19:31:56.882 INFO (SyncWorker_1) [supervisor.docker.manager] Stopping hassio_observer application
2024-08-04 19:35:52.366 WARNING (MainThread) [supervisor.misc.tasks] Watchdog missed an Home Assistant Core API response.
2024-08-04 19:50:19.243 INFO (SyncWorker_1) [supervisor.docker.manager] Cleaning hassio_observer application
2024-08-04 19:50:27.434 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Samba share is unhealthy, restarting...
2024-08-04 19:50:27.439 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Node-RED is unhealthy, restarting...
2024-08-04 19:50:27.335 WARNING (MainThread) [supervisor.homeassistant.websocket] Connection is closed
2024-08-04 19:50:27.389 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-143450' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:321> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 266, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 94, 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 326, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 268, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2024-08-04 19:50:27.946 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-143546' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:321> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 266, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 94, 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 326, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 268, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2024-08-04 19:50:27.947 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-143547' coro=<HomeAssistantWebSocket.async_supervisor_event() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:321> exception=AttributeError("'NoneType' object has no attribute 'close'")>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 266, in async_send_message
    await self._client.async_send_command(message)
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 94, 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 326, in async_supervisor_event
    await self.async_send_message(
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 268, in async_send_message
    await self._client.close()
          ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
2024-08-04 19:50:27.961 INFO (SyncWorker_0) [supervisor.docker.manager] Stopping addon_core_samba application
2024-08-04 19:50:27.966 INFO (SyncWorker_4) [supervisor.docker.manager] Stopping addon_a0d7b954_nodered application
2024-08-04 19:50:27.969 ERROR (MainThread) [supervisor.misc.tasks] Watchdog missed 2 Home Assistant Core API responses in a row. Restarting Home Assistant Core!
2024-08-04 19:50:27.975 INFO (SyncWorker_2) [supervisor.docker.manager] Restarting homeassistant
2024-08-04 19:50:31.748 INFO (MainThread) [supervisor.plugins.observer] Starting observer plugin
2024-08-04 19:50:36.669 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
2024-08-04 19:50:40.538 INFO (SyncWorker_0) [supervisor.docker.manager] Cleaning addon_core_samba application
2024-08-04 19:50:41.017 INFO (SyncWorker_4) [supervisor.docker.manager] Cleaning addon_a0d7b954_nodered application

I would try the troubleshooting suggestions listed here:

2024.5+: Tracking down instability issues caused by integrations.