ZHA all of a sudden won’t load

I have ZHA running on my supervised HASSio install. I am running Linux Debian 11 on a mid-2011 Mac mini with a skyconnect USB for zigbee/thread. I am running skyconnect multi-protocol for the thread even though inhave no thread devices.

Yesterday, out of nowhere ZHA and OpenThread quit working. I hadn’t installed anything new. I was just working on some dashboard mods. I have tried restarting home assistant, restarting the machine, reloading ZHA, and unplugging the USB. Nothing has fixed it.

Here is the error log I get when I try to reload ZHA. If anyone could provide some guidance it would be most appreciated. Thank you.

Logger: homeassistant.config_entries
Source: components/zha/core/gateway.py:205
First occurred: July 3, 2023 at 16:15:35 (4 occurrences)
Last logged: 08:18:11

Error setting up entry SkyConnect Multi-PAN for zha
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/zha/init.py”, line 122, in async_setup_entry
await zha_gateway.async_initialize()
File “/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py”, line 220, in async_initialize
raise exc
File “/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py”, line 205, in async_initialize
self.application_controller = await app_controller_cls.new(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/application.py”, line 219, in new
await app.startup(auto_form=auto_form)
File “/usr/local/lib/python3.11/site-packages/zigpy/application.py”, line 193, in startup
await self.connect()
File “/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py”, line 131, in connect
self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/bellows/ezsp/init.py”, line 147, in initialize
await ezsp.connect(use_thread=zigpy_config[conf.CONF_USE_THREAD])
File “/usr/local/lib/python3.11/site-packages/bellows/ezsp/init.py”, line 164, in connect
self._gw = await bellows.uart.connect(self._config, self, use_thread=use_thread)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/bellows/uart.py”, line 414, in connect
protocol, _ = await _connect(config, application)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/bellows/uart.py”, line 385, in _connect
transport, protocol = await zigpy.serial.create_serial_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/zigpy/serial.py”, line 31, in create_serial_connection
transport, protocol = await loop.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/asyncio/base_events.py”, line 1045, in create_connection
infos = await self._ensure_resolved(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/asyncio/base_events.py”, line 1419, in _ensure_resolved
return await loop.getaddrinfo(host, port, family=family, type=type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/asyncio/base_events.py”, line 867, in getaddrinfo
return await self.run_in_executor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/socket.py”, line 962, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -5] Name has no usable address

In case anyone else comes across this issue. I was able to correct the issue. I recalled that there had been some Debian system updates. I suspect that somehow impacted my Skyconnect USB port.

I went back into the Silicon Labs Multiprotocol add-on and found that it was not started. It seems that the device serial port had been reset. I selected the correct port once again and all is back to normal.

Same Problem, I started a Git Hub Issue: SkyConnect / ZHA Failed to setup: socket.gaierror: [Errno -5] Name has no usable address · Issue #94418 · home-assistant/core · GitHub
Went back to my Conbee Stick …

As I noted. I was able to correct my issue. I think something had gotten reset with my Linux updates. I just chose the correct port in the hardware settings for my stick and the system came right backup. Been running since with no issues.

Thanks Larryo. I have spent the last 3 hours trying to get my SkyConnect to work again and you pushed me in the right direction.
We had multiple power cuts one after the other tonight and when everything settled down my Zigbee devices would not work. The only info that I have was the Errno -5 no address error, which meant nothing.

Turns out the Silicon Labs Mutilprotocol decided that it would no longer load at boot which was causing the issue. I turned the toggle back and it is all working again