ZHA (Zigbee Home Automation) suddenly broken after Update 2023.9.2

Hello everyone.

Suddenly after an update to version 2023.9.2 zha dont work any longer.

I tried to find some usefull logentries. Perhaps that can help.

The log from the integration:

2023-09-15 12:53:07.472 DEBUG (MainThread) [zigpy.serial] Opening a serial connection to 'socket://core-silabs-multiprotocol:9999' (57600 baudrate)
2023-09-15 12:53:07.488 DEBUG (MainThread) [bellows.uart] Connection lost: ConnectionResetError('Remote server closed connection')
2023-09-15 12:53:07.488 ERROR (MainThread) [bellows.uart] Lost serial connection: ConnectionResetError('Remote server closed connection')
2023-09-15 12:53:07.494 DEBUG (MainThread) [bellows.ezsp] socket://core-silabs-multiprotocol:9999 connection lost unexpectedly: Remote server closed connection
2023-09-15 12:53:07.494 INFO (MainThread) [bellows.ezsp] NCP entered failed state. No application handler registered, ignoring...
2023-09-15 12:53:07.494 ERROR (MainThread) [zigpy.application] Couldn't start application
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 197, in startup
    await self.connect()
  File "/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py", line 141, in connect
    await ezsp.startup_reset()
  File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/__init__.py", line 151, in startup_reset
    await self._gw.wait_for_startup_reset()
  File "/usr/local/lib/python3.11/site-packages/bellows/uart.py", line 175, in wait_for_startup_reset
    await self._startup_reset_future
ConnectionResetError: Remote server closed connection
2023-09-15 12:53:07.500 DEBUG (MainThread) [bellows.uart] Connection lost: None
2023-09-15 12:53:07.500 DEBUG (MainThread) [bellows.uart] Closed serial connection
2023-09-15 12:53:07.501 DEBUG (Thread-155) [aiosqlite] executing functools.partial(<function PersistingListener._set_isolation_level.<locals>.<lambda> at 0x7f65cf7880>)
2023-09-15 12:53:07.501 DEBUG (Thread-155) [aiosqlite] operation functools.partial(<function PersistingListener._set_isolation_level.<locals>.<lambda> at 0x7f65cf7880>) completed
2023-09-15 12:53:07.502 DEBUG (Thread-155) [aiosqlite] executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7f78c574c0>, 'PRAGMA wal_checkpoint;', [])
2023-09-15 12:53:07.503 DEBUG (Thread-155) [aiosqlite] operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7f78c574c0>, 'PRAGMA wal_checkpoint;', []) completed
2023-09-15 12:53:07.504 DEBUG (Thread-155) [aiosqlite] executing functools.partial(<function PersistingListener._set_isolation_level.<locals>.<lambda> at 0x7f65cf7100>)
2023-09-15 12:53:07.504 DEBUG (Thread-155) [aiosqlite] operation functools.partial(<function PersistingListener._set_isolation_level.<locals>.<lambda> at 0x7f65cf7100>) completed
2023-09-15 12:53:07.505 DEBUG (Thread-155) [aiosqlite] executing functools.partial(<built-in method close of sqlite3.Connection object at 0x7f78c574c0>)
2023-09-15 12:53:07.511 DEBUG (Thread-155) [aiosqlite] operation functools.partial(<built-in method close of sqlite3.Connection object at 0x7f78c574c0>) completed
2023-09-15 12:53:07.620 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] Shutting down ZHA ControllerApplication
2023-09-15 12:53:07.622 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 168, in async_zha_shutdown
    await zha_gateway.shutdown()
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 761, in shutdown
    await self.application_controller.shutdown()
  File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 406, in shutdown
    await self._dblistener.shutdown()
  File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 187, in shutdown
    await self._set_isolation_level(None)
  File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 205, in _set_isolation_level
    await self._db._execute(lambda: setattr(self._db, "isolation_level", level))
  File "/usr/local/lib/python3.11/site-packages/aiosqlite/core.py", line 126, in _execute
    raise ValueError("Connection closed")
ValueError: Connection closed

The log from the addon Silicon Labs Multiprotocol:

[12:53:08] INFO: Starting zigbeed...
[12:53:09:763673] Info : New client connection using library v4.3.1.0
[12:53:09:766501] Info : Endpoint socket #12: Client connected. 2 connections
Listening on port 9999 for connection...
Accepting connection.
WARNING in function 'server_push_data_to_endpoint' in file /usr/src/cpc-daemon/server_core/server/server.c at line #1667 : Unresponsive data socket on ep#12, closing
[12:53:13:225049] WARNING : In function 'server_push_data_to_endpoint' in file /usr/src/cpc-daemon/server_core/server/server.c at line #1667 : Unresponsive data socket on ep#12, closing
[12:53:13:225201] Info : Endpoint socket #12: Client disconnected. 1 connections

Did you restart the add-on ?

yeah I restarted everything at least one time :slight_smile:

Try unplugging the stick and plugging it back in.

There is no stick. I use the HA Yellow.

I just rolled back to my backup. I need the HA working. If someone has ideas what is wrong let me know

There was some missing dependencies during update of HA that caused this error for me. Try to re-install and restart a few times.

There was some missing dependencies during update of HA that caused this error for me. Try to re-install and restart a few times.

I suffered from the same or similar issue but with the latest versions of HA 2023.10.3.

I recovered from a full backup from 18th of Oct. It works fine. Google backup integration saved my day …

Anyone a clue?