Closed dathosim closed 1 day ago
Hey there @emontnemery, @jbouwh, @bdraco, mind taking a look at this issue as it has been labeled with an integration (mqtt
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
mqtt documentation mqtt source (message by IssueLinks)
no problem with update core-2024-11
The problem
After a full system reboot, it became impossible to reconnect all my Zigbee devices via MQTT I have no error on the Zigbee2MQTT addon - I can see the list of your Devices and I can change the status No error either on the installed Mosquito broker - it works - no error in the logs
But as soon as I restart HA or the system, the MQTT integration displays the error "failed to setup" And in the logs at startup or if I activate debugging I see this: see logs below
`Logger: homeassistant.config_entries Source: config_entries.py:594 First occurred: 10:31:34 (2 occurrences) Last logged: 16:21:01
Error setting up entry Mosquitto broker for mqtt Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/mqtt/init.py", line 272, in async_setup_entry mqtt_data, conf = await _setup_client(client_available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/mqtt/init.py", line 252, in _setup_client await client.async_start(mqtt_data) File "/usr/src/homeassistant/homeassistant/components/mqtt/client.py", line 428, in async_start await self.async_init_client() File "/usr/src/homeassistant/homeassistant/components/mqtt/client.py", line 462, in async_init_client await async_import_module( File "/usr/src/homeassistant/homeassistant/helpers/importlib.py", line 60, in async_import_module import_future.result() File "/usr/src/homeassistant/homeassistant/helpers/importlib.py", line 50, in async_import_module module = await hass.async_add_import_executor_job(_get_module, cache, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/importlib.py", line 26, in _get_module cache[name] = importlib.import_module(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func return func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/mqtt/async_client.py", line 9, in
from paho.mqtt.client import Client as MQTTClient
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 72, in
import dns.resolver
File "/usr/local/lib/python3.12/site-packages/dns/resolver.py", line 30, in
import dns._ddr
File "/usr/local/lib/python3.12/site-packages/dns/_ddr.py", line 12, in
import dns.nameserver
File "/usr/local/lib/python3.12/site-packages/dns/nameserver.py", line 5, in
import dns.asyncquery
File "/usr/local/lib/python3.12/site-packages/dns/asyncquery.py", line 40, in
from dns.query import (
File "/usr/local/lib/python3.12/site-packages/dns/query.py", line 46, in
import dns.xfr
File "/usr/local/lib/python3.12/site-packages/dns/xfr.py", line 29, in
import dns.zone
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 991, in exec_module
File "", line 1124, in get_code
File "", line 753, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
`
What version of Home Assistant Core has the issue?
core-2024.10.4
What was the last working version of Home Assistant Core?
core-2024.10.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
https://www.home-assistant.io/integrations/mqtt/
Link to integration documentation on our website
https://www.home-assistant.io/integrations/mqtt/
Diagnostics information
no diagnostic
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
no