zigbee2mqtt-frontend icon indicating copy to clipboard operation
zigbee2mqtt-frontend copied to clipboard

[Bug]: After update to 2.2.1-1, FE unable to load

Open nedevski opened this issue 7 months ago • 1 comments

What happened?

After updating to latest (2.2.1-1), the UI broke, trying to reload itself multiple times per second and failing.

This is the only request that I was able to screenshot because it's happening so fast. Image

These are some errors from the console, all are 502 Bad Gateway (sorry for the partial screenshot, my URL was in the way). Image

This has happened on previous releases, but only on the Map page and it got fixed by itself. Reinstalling is a last resort action, since everything is configured and despite this error, Z2M works. I just can't configure anything.

My environment:

  • HomeAssistant OS (2025.3.4)
  • Docker based HA Addon
  • Chrome (134.0.6998.178)

What browsers are you seeing the problem on?

Chrome

Relevant stacktrace

[10:27:36] INFO: Preparing to start...
[10:27:36] INFO: Socat not enabled
[10:27:36] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-04-05 10:27:37] info: 	z2m: Logging to console, file (filename: log.log)
[2025-04-05 10:27:37] info: 	z2m: Starting Zigbee2MQTT version 2.2.1 (commit #unknown)
[2025-04-05 10:27:37] info: 	z2m: Starting zigbee-herdsman (3.4.11)
[2025-04-05 10:27:37] info: 	zh:controller: Coordinator address changed, updating to '28'
[2025-04-05 10:27:37] info: 	z2m: zigbee-herdsman started (resumed)
[2025-04-05 10:27:37] error: 	z2m: Failed to start zigbee-herdsman
[2025-04-05 10:27:37] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-04-05 10:27:37] error: 	z2m: Exiting...
[2025-04-05 10:27:37] error: 	z2m: Error: Get coordinator version Error: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received type number (28)
    at DeconzAdapter.getCoordinatorVersion (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/deconz/adapter/deconzAdapter.ts:296:23)
    at Controller.getCoordinatorVersion (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:416:16)
    at Zigbee.getCoordinatorVersion (/app/lib/zigbee.ts:200:16)
    at Zigbee.start (/app/lib/zigbee.ts:129:65)
    at Controller.start (/app/lib/controller.ts:104:13)
    at start (/app/index.js:149:5)

Did you download state.json.zip?

I will attach state.json.zip

initialState.json.zip

nedevski avatar Apr 05 '25 07:04 nedevski

After performing multiple hard refreshes (50+) and waiting a bit, the issue was fixed automagically.

nedevski avatar Apr 05 '25 07:04 nedevski

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 21 '25 12:06 stale[bot]