Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Severe CPU Overheating and Loud Fan Noise Server Disconnect a After 2024.10 Update, Even in Safe Mode #127379

Closed
cloudbr34k84 opened this issue Oct 3, 2024 · 15 comments

Comments

@cloudbr34k84
Copy link

The problem

After updating to Home Assistant version 2024.10, my server, which runs on a NUC Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz, has been consistently running very loud and reaching high temperatures (80-100°C), even when in safe mode. Prior to this update, my server was running quietly and at normal temperatures. I have not made any hardware or significant configuration changes aside from the Home Assistant update.

Its causing my server to disconnect and just beocme unresponsive. In need of some direction guidance please. Could my harddrive be failing?

What version of Home Assistant Core has the issue?

2024.10.0

What was the last working version of Home Assistant Core?

1024.9

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Unsure yet

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

I have been told to run the profiler memory, i get this error Failed to perform the action profiler.memory. Unknown error. but then in the persistant notification its says

Profile Started
The memory profile has started. This notification will be updated when it is complete.

image
image

@cloudbr34k84 cloudbr34k84 changed the title Severe CPU Overheating and Loud Fan Noise After 2024.10 Update, Even in Safe Mode Severe CPU Overheating and Loud Fan Noise Server Disconnect a After 2024.10 Update, Even in Safe Mode Oct 3, 2024
@alanmilinovic
Copy link

I am having the same issue.

@cloudbr34k84
Copy link
Author

@alanmilinovic is it the same in safe mode?

@alanmilinovic
Copy link

@alanmilinovic is it the same in safe mode?

Haven't tried, for now I stopped the container because it is killing my hardware.

@cloudbr34k84
Copy link
Author

Ok so running container version.
When the little guy has gone to bed I'm going to try and run profiler for logs

@alanmilinovic
Copy link

I will wait for the fix. It looks something is wrong with the latest release. Might analyse logs inside container.

@cloudbr34k84
Copy link
Author

I will wait for the fix. It looks something is wrong with the latest release. Might analyse logs inside container.

where did you see there was something wrong?

@alanmilinovic
Copy link

I will wait for the fix. It looks something is wrong with the latest release. Might analyse logs inside container.

where did you see there was something wrong?

By executing htop. "python3 -m homeassistant ..." process was on 100% CPU and at the same time HA was not responsive.

@cloudbr34k84
Copy link
Author

By executing htop. "python3 -m homeassistant ..." process was on 100% CPU and at the same time HA was not responsive.

is there nothing else we can do to pin point the issue More?

@alanmilinovic
Copy link

By executing htop. "python3 -m homeassistant ..." process was on 100% CPU and at the same time HA was not responsive.

is there nothing else we can do to pin point the issue More?

I did a reboot of entire machine and am now analyzing the logs and waiting for crash to come.

@peteS-UK
Copy link
Contributor

peteS-UK commented Oct 3, 2024

The linked problem at #127395 has identified Alexa Media Player update as the cause of that problem,

@cloudbr34k84
Copy link
Author

The linked problem at #127395 has identified Alexa Media Player update as the cause of that problem,

im not running alexa though

@alanmilinovic
Copy link

This is what I see in logs:

2024-10-03 10:44:34.533 ERROR (MainThread) [supervisor.homeassistant.api] Timeout on call http://172.30.32.1:20536/api/core/state.

2024-10-03 10:45:02.531 ERROR (MainThread) [supervisor.homeassistant.api] Timeout on call http://172.30.32.1:20536/api/core/state.

2024-10-03 10:45:02.532 WARNING (MainThread) [supervisor.misc.tasks] Watchdog missed an Home Assistant Core API response.

2024-10-03 10:45:34.533 ERROR (MainThread) [supervisor.homeassistant.api] Timeout on call http://172.30.32.1:20536/api/core/state.

2024-10-03 10:46:33.723 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon File editor is unhealthy, restarting...

2024-10-03 10:46:33.728 INFO (SyncWorker_6) [supervisor.docker.manager] Stopping addon_core_configurator application

2024-10-03 10:46:34.532 ERROR (MainThread) [supervisor.homeassistant.api] Timeout on call http://172.30.32.1:20536/api/core/state.

2024-10-03 10:46:37.483 INFO (SyncWorker_6) [supervisor.docker.manager] Cleaning addon_core_configurator application

2024-10-03 10:46:38.005 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-configurator with version 5.8.0

2024-10-03 10:47:33.534 ERROR (MainThread) [supervisor.homeassistant.api] Timeout on call http://172.30.32.1:20536/api/core/state.

2024-10-03 10:47:33.534 ERROR (MainThread) [supervisor.misc.tasks] Watchdog missed 2 Home Assistant Core API responses in a row. Restarting Home Assistant Core!

2024-10-03 10:47:33.554 INFO (SyncWorker_9) [supervisor.docker.manager] Restarting homeassistant

2024-10-03 10:47:38.534 ERROR (MainThread) [supervisor.homeassistant.api] Timeout on call http://172.30.32.1:20536/api/core/state.

2024-10-03 10:48:37.838 WARNING (MainThread) [supervisor.homeassistant.websocket] Connection is closed

2024-10-03 10:48:37.924 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2258' 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'

2024-10-03 10:48:37.975 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2259' 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'

2024-10-03 10:48:37.977 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2260' 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'

2024-10-03 10:48:37.981 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2261' 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'

2024-10-03 10:48:37.983 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2294' coro=<HomeAssistantWebSocket.async_send_message() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:254> 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 269, in async_send_message

    await self._client.close()

          ^^^^^^^^^^^^^^^^^^

AttributeError: 'NoneType' object has no attribute 'close'

2024-10-03 10:48:37.986 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2295' 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'

2024-10-03 10:48:37.989 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2296' 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'

2024-10-03 10:48:37.992 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2297' 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'

2024-10-03 10:48:37.994 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2298' 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'

2024-10-03 10:48:37.996 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2299' 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'

2024-10-03 10:48:38.997 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2300' 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'

2024-10-03 10:48:38.999 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2301' 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'

2024-10-03 10:48:38.001 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2302' 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'

2024-10-03 10:48:38.003 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2303' 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'

2024-10-03 10:48:38.005 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2336' coro=<HomeAssistantWebSocket.async_send_message() done, defined at /usr/src/supervisor/supervisor/homeassistant/websocket.py:254> 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 269, in async_send_message

    await self._client.close()

          ^^^^^^^^^^^^^^^^^^

AttributeError: 'NoneType' object has no attribute 'close'

2024-10-03 10:48:38.007 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2337' 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'

2024-10-03 10:48:38.008 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2339' 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'

2024-10-03 10:48:38.010 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2340' 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'

2024-10-03 10:48:38.011 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2359' 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'

2024-10-03 10:48:38.013 ERROR (MainThread) [asyncio] Task exception was never retrieved

future: <Task finished name='Task-2360' 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'

2024-10-03 10:48:38.021 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:20536/api/core/state: Cannot connect to host 172.30.32.1:20536 ssl:False [Connect call failed ('172.30.32.1', 20536)]

2024-10-03 10:48:38.053 WARNING (MainThread) [supervisor.addons.addon] Timeout while waiting for addon File editor to start, took more than 120 seconds

2024-10-03 10:48:40.971 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready

2024-10-03 10:48:44.008 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running

2024-10-03 10:48:44.335 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete

2024-10-03 10:48:46.050 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to APIState(core_state='NOT_RUNNING', offline_db_migration=False)

2024-10-03 10:48:54.761 ERROR (MainThread) [supervisor.host.logs] No systemd-journal-gatewayd Unix socket available

2024-10-03 10:48:54.761 ERROR (MainThread) [supervisor.api] Failed to get supervisor logs using advanced_logs API

Traceback (most recent call last):

  File "/usr/src/supervisor/supervisor/api/__init__.py", line 403, in get_supervisor_logs

    return await self._api_host.advanced_logs_handler(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/src/supervisor/supervisor/api/host.py", line 237, in advanced_logs_handler

    async with self.sys_host.logs.journald_logs(

  File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__

    return await anext(self.gen)

           ^^^^^^^^^^^^^^^^^^^^^

  File "/usr/src/supervisor/supervisor/host/logs.py", line 144, in journald_logs

    raise HostNotSupportedError(

supervisor.exceptions.HostNotSupportedError: No systemd-journal-gatewayd Unix socket available

2024-10-03 10:48:54.895 ERROR (MainThread) [supervisor.host.logs] No systemd-journal-gatewayd Unix socket available

2024-10-03 10:48:54.895 ERROR (MainThread) [supervisor.api] Failed to get supervisor logs using advanced_logs API

Traceback (most recent call last):

  File "/usr/src/supervisor/supervisor/api/__init__.py", line 403, in get_supervisor_logs

    return await self._api_host.advanced_logs_handler(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/src/supervisor/supervisor/api/host.py", line 237, in advanced_logs_handler

    async with self.sys_host.logs.journald_logs(

  File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__

    return await anext(self.gen)

           ^^^^^^^^^^^^^^^^^^^^^

  File "/usr/src/supervisor/supervisor/host/logs.py", line 144, in journald_logs

    raise HostNotSupportedError(

supervisor.exceptions.HostNotSupportedError: No systemd-journal-gatewayd Unix socket available

2024-10-03 10:48:57.362 ERROR (MainThread) [supervisor.host.logs] No systemd-journal-gatewayd Unix socket available

2024-10-03 10:48:57.362 ERROR (MainThread) [supervisor.api] Failed to get supervisor logs using advanced_logs API

Traceback (most recent call last):

  File "/usr/src/supervisor/supervisor/api/__init__.py", line 403, in get_supervisor_logs

    return await self._api_host.advanced_logs_handler(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/src/supervisor/supervisor/api/host.py", line 237, in advanced_logs_handler

    async with self.sys_host.logs.journald_logs(

  File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__

    return await anext(self.gen)

           ^^^^^^^^^^^^^^^^^^^^^

  File "/usr/src/supervisor/supervisor/host/logs.py", line 144, in journald_logs

    raise HostNotSupportedError(

supervisor.exceptions.HostNotSupportedError: No systemd-journal-gatewayd Unix socket available

@cloudbr34k84
Copy link
Author

Description of the issue:
The Home Assistant Core frequently encounters timeouts when attempting to call the Core API (/api/core/state) and shows issues with the WebSocket connection. Additionally, the Watchdog reports missed responses, leading to automatic restarts of Home Assistant Core. The logs also show repeated errors involving the systemd-journal-gatewayd Unix socket not being available when trying to retrieve supervisor logs.

These issues seem to severely impact the responsiveness and stability of Home Assistant Core.

Steps to reproduce the issue:
Running Home Assistant normally.
Intermittently, Home Assistant stops responding to API requests, leading to Watchdog resets.
Errors are logged related to WebSocket connections and timeouts on the Core API calls.
Supervisor logs report failure to retrieve logs due to missing systemd-journal-gatewayd Unix socket.

Actual behavior:
Frequent timeouts on API calls to Home Assistant Core.
WebSocket connection failures.
The supervisor fails to retrieve system logs due to missing Unix socket, despite expected functionality.

@alanmilinovic
Copy link

So it was Alexa media player integration. I disabled the integration and now no crashes. I remember that Alexa was also upgraded at the same time when HA, so it makes sense.

@cloudbr34k84
Copy link
Author

So it was Alexa media player integration. I disabled the integration and now no crashes. I remember that Alexa was also upgraded at the same time when HA, so it makes sense.

lucky you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants