-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Startup fails with "z2m: Failed to call 'Bridge' 'start' (TypeError: Cannot read properties of undefined (reading 'zh')" #24705
Comments
Same problem to me... any suggestions? |
Could you provide me your data/database.db file? |
Hi, same for me... Nov 25 19:30:35 zigbee2mqtt npm[318]: Starting Zigbee2MQTT without watchdog. This is my database.db
|
I have tried this in debian and ubuntu, with a full config and with the minimum config and I've downgraded to 1.37.1 and I'm still seeing the same issue. It must be something local but I haven't got a scooby how to troubleshoot. |
Can you try to remove your See this on how to enable debug logging. |
Hi, thank you for the response. I've tried deleting the db but it still shows the same issue. I've done it again and attached the log. |
I have reproduced this error with a different dongle to eliminate that as the cause. |
@m90att thanks, could you try the following (in the logging you provided, the database.db file was already there before start)
|
Hi, I've attached the log here. I can see a different error in this one but again I don't know what's causing it. |
This only seems to have logging up to the See this on how to enable debug logging. |
Ah, sorry @Koenkk . Now attached with debug. |
It looks like the issue has been resolved with version 1.42.0 commit: 861cba6, it's started up ok so I'll see how it goes |
I have similar challenge like @aquila and @ingheuer using zigbee2mqtt 1.4x and now 2.x in HA (no experience of below mentioned adapter before 1.42 due to the fact i just started experimenting) Adapter is ZBOSS (experimental firmware / nRF52840 dongle with latest firmware as mentioned from the page) https://www.zigbee2mqtt.io/guide/adapters/zboss.html Scenarios
Log after restart zigbee2mqtt_2025-01-06T11-17-59.326Z.log database.db
|
I am having the same issue after upgrading to 2.0.0. Logs attached: My dongle is the HA skyconnect with the latest firmware. |
More info: If I delete the z2m db file and start it the first time it works fine, but if i restart the container without any changes I get the error |
I have been testing latest dev version (z2m: Starting Zigbee2MQTT version 2.0.0-dev (commit #7392557)) and good news is latest ZBOSS Herdsman fixes helps with restarting issue but i still have the issue after restart sensor is lost and not discovered (weirdly yes it is found but cleared as outdated? -> z2m: Clearing outdated Home Assistant config) Log of one sensor added and z2m restart |
@pxFIN I looked at your logs and I see that the next time you restart z2m, you have a network reset again... it's very strange. I'll take another look. |
What happened?
I have a brand new SLZB-06. I used a fresh Zigbee2MQTT installation, first struggling with the PAN ID issue but after generating a new one that works. However, now startup fails with a TypeError on zh.
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
Get new SLZB-06
Configuration of Z2M:
permit_join: true mqtt: base_topic: zigbee2mqtt server: mqtt://mqtt serial: port: tcp://192.168.1.120:6638 baudrate: 115200 adapter: zstack disable_led: false frontend: port: 8080 advanced: pan_id: 36990 ext_pan_id: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 network_key: - 1 - 1 - 2 - 7 - 1 - 7 - 1 - 1 - 2 - 7 - 6 - 2 - 1 - 7 - 1 - 3 transmit_power: 20 homeassistant_legacy_entity_attributes: false legacy_api: false legacy_availability_payload: false device_options: legacy: false
(Network key has been shortened for security purposes)
Zigbee2MQTT version
1.41.0
Adapter firmware version
20221226
Adapter
SLZB-06
Setup
Z2M in Docker container on x86, SLZB-06 connected over Ethernet
Debug log
Starting Zigbee2MQTT without watchdog.
[2024-11-10 11:32:59] info: z2m: Logging to console, file (filename: log.log)
[2024-11-10 11:32:59] info: z2m: Starting Zigbee2MQTT version 1.41.0 (commit #cc31cea)
[2024-11-10 11:32:59] info: z2m: Starting zigbee-herdsman (2.1.7)
[2024-11-10 11:33:00] info: zh:zstack:znp: Opening TCP socket with 192.168.88.120:6638
[2024-11-10 11:33:00] info: zh:zstack:znp: Socket connected
[2024-11-10 11:33:00] info: zh:zstack:znp: Socket ready
[2024-11-10 11:33:00] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-11-10 11:33:01] info: zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-11-10 11:33:27] info: zh:controller: Wrote coordinator backup to '/app/data/coordinator_backup.json'
[2024-11-10 11:33:27] info: z2m: zigbee-herdsman started (reset)
[2024-11-10 11:33:27] info: z2m: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20221226,"transportrev":2},"type":"zStack3x0"}'
[2024-11-10 11:33:27] info: z2m: Currently 0 devices are joined.
[2024-11-10 11:33:27] warning: z2m:
permit_join
set totrue
in configuration.yaml.[2024-11-10 11:33:27] warning: z2m: Allowing new devices to join.
[2024-11-10 11:33:27] warning: z2m: Set
permit_join
tofalse
once you joined all devices.[2024-11-10 11:33:27] info: z2m: Zigbee: allowing new devices to join.
[2024-11-10 11:33:27] info: z2m: Connecting to MQTT server at mqtt://mqtt
[2024-11-10 11:33:27] info: z2m: Connected to MQTT server
[2024-11-10 11:33:27] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
[2024-11-10 11:33:27] error: z2m: Failed to call 'Bridge' 'start' (TypeError: Cannot read properties of undefined (reading 'zh')
at Bridge.publishDevices (/app/lib/extension/bridge.ts:781:43)
at Bridge.start (/app/lib/extension/bridge.ts:175:20)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Controller.callExtensions (/app/lib/controller.ts:399:17)
at Controller.start (/app/lib/controller.ts:218:9)
at start (/app/index.js:154:5))
[2024-11-10 11:33:27] info: z2m: Started frontend on port 8080
TypeError: Cannot read properties of undefined (reading 'ID')
at State.exists (/app/lib/state.ts:92:34)
at Controller.start (/app/lib/controller.ts:223:32)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at start (/app/index.js:154:5)
The text was updated successfully, but these errors were encountered: