Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.97k stars 1.67k forks source link

weird bug with HAOS after restoring snapshot #21945

Open Sakamoto2215 opened 6 months ago

Sakamoto2215 commented 6 months ago

What happened?

After updating to newest HAOS and HA Core today Z2MQTT did not start, giving me some errors (unfortunately I did not write them down)

I reloaded a HA backup from earlier today (HA Core 2024.2.1) and now its really wild. I can not start Z2MQTT. It is no running, at least this is what it tells me. (Add on is stopped) However, it is running. I get all the information from all zigbee devices. I can use all switches, lights etc. in home assistant dash board. Logs showing me all MQTT publishes.

Only problem I got is, I can not access the z2mqtt add on in the sidebar. So i cant see the devices, cant add new things etc. I have absolutely no clue what to do. restarting HAOS did nothing.

Any ideas?

Kind regards,

Sakamoto

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.36.0-1

Adapter firmware version

20240207.1

Adapter

Sonoff Dongle

Setup

HAOS on x64

Debug log

No response

Sakamoto2215 commented 6 months ago

seems like a common problem after restoring a snapshot. https://community.home-assistant.io/t/zigbee2mqtt-not-starting-but-still-running-ok/474703

i found the error that made me restore the snapshot:

info 2024-03-25 20:24:23: Starting Zigbee2MQTT version 1.36.0 (commit #unknown) info 2024-03-25 20:24:23: Starting zigbee-herdsman (0.35.1) error 2024-03-25 20:24:34: Error while starting zigbee-herdsman error 2024-03-25 20:24:34: Failed to start zigbee error 2024-03-25 20:24:34: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions error 2024-03-25 20:24:34: Exiting... error 2024-03-25 20:24:35: Error: Failure send getNetworkParameters:{"type":"Buffer","data":[24,0,1,40,0]} at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:664:23 at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20) at Driver.needsToBeInitialised (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:268:27) at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:216:13) at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29) at Zigbee.start (/app/lib/zigbee.ts:62:27) at Controller.start (/app/lib/controller.ts:109:27) at start (/app/index.js:107:5)

Sakamoto2215 commented 6 months ago

after 1 hour of trying i found a solution. reinstall, edge, etc. all didnt fix it.

restarting the host solved the problem. In my case i had to power cycle the host manualy.

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days