Synology VMM - “[WARN] Home Assistant CLI not starting! Jump into emergency console”

Dear all, 1 day i am trying to get my HA alive.
hass.io Installation is on a synology virtual machine, work fine from many months.
I tryied to reboot via console, and got this message.
Using “login” has mentionned in many posts.
and now i get the message : Error returned from supervisor : system is not ready with state: setup.

core info
version: 2025.1.4
arch: amd64
ip_address: 172.30.x32.1

supervisor info
version 2024.12.3
ip_adress: 172.30.32.2
auto_updte: true

core logs :

some logs from http://homeassistant.local:4357/

2025-01-28 12:12:38.296 ERROR (MainThread) [asyncio] Task exception was never retrieved
future:  exception=WSMessageTypeError('Received message 8:1000 is not WSMsgType.TEXT')>
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 263, in async_send_message
    if not await self._can_send(message):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 228, in _can_send
    self._client = await self._get_ws_client()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 205, in _get_ws_client
    client = await WSClient.connect_with_auth(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 172, in connect_with_auth
    auth_ok_message = await client.receive_json()
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_ws.py", line 405, in receive_json
    data = await self.receive_str(timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_ws.py", line 386, in receive_str
    raise WSMessageTypeError(
aiohttp.client_exceptions.WSMessageTypeError: Received message 8:1000 is not WSMsgType.TEXT
2025-01-28 12:13:35.621 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/node-red/amd64 with version 19.0.0
2025-01-28 12:13:35.636 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-samba with version 12.4.0
2025-01-28 12:14:12.950 ERROR (MainThread) [asyncio] Task exception was never retrieved
future:  exception=ConnectionTimeoutError('Connection timeout to host ws://172.30.32.1:8123/api/websocket')>
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1122, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs, sock=sock)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1154, in create_connection
    transport, protocol = await self._create_connection_transport(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1187, in _create_connection_transport
    await waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 703, in _request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 548, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1056, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1400, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1369, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1112, in _wrap_create_connection
    async with ceil_timeout(
               ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

The above exception was the direct cause of the following exception:

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 263, in async_send_message
    if not await self._can_send(message):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 228, in _can_send
    self._client = await self._get_ws_client()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 205, in _get_ws_client
    client = await WSClient.connect_with_auth(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/supervisor/supervisor/homeassistant/websocket.py", line 162, in connect_with_auth
    client = await session.ws_connect(url, ssl=False)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1004, in _ws_connect
    resp = await self.request(
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 707, in _request
    raise ConnectionTimeoutError(
aiohttp.client_exceptions.ConnectionTimeoutError: Connection timeout to host ws://172.30.32.1:8123/api/websocket

how can i solve this issue ?

update: after ha core stop and 2x ha core rebuild, HA is alive, but not confidante on stability in the future.

Many thanks in advance.
Arnaud

Hope someone easy with HA would help me.

  • I have installed a fresh HA and restored from a backup that was working before ==> KO
  • Build a new machine from a snapshot ==>KO

What is wrong with Synology VMM ???

the last log error

2025-02-06 23:04:52.263 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.1.159 for synology_dsm
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 637, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/synology_dsm/__init__.py", line 126, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2285, in async_forward_entry_setups
    await self._async_forward_entry_setups_locked(entry, platforms)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2296, in _async_forward_entry_setups_locked
    await asyncio.gather(
    ...<11 lines>...
    )
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2360, in _async_forward_entry_setup
    result = await async_setup_component(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        self.hass, domain, self._hass_config
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/setup.py", line 159, in async_setup_component
    return await existing_setup_future

image

Thanks for your time.
Arnaud

Same here.

Since two weeks Home Assistant came highly unstable.

It seems it is supervisor related.

2025-02-18 15:17:05.848 ERROR (MainThread) [supervisor.homeassistant.api] Timeout on call http://172.30.32.1:8123/api/core/state.
2025-02-18 15:17:32.874 ERROR (MainThread) [supervisor.homeassistant.api] Timeout on call http://172.30.32.1:8123/api/core/state.

A lot of disconnects.

hi all, still having my HA unstable !
Each time i restart HA after upgrades, HA is getting wrong.

this is a new issue

no home assistant core response assuming a fatal startup error

Thanks for your help.
Arnaud