Skip to content
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

Zigbee2MQTT 2.0 is not starting with a TCP coordinator #25062

Closed
rohankapoorcom opened this issue Dec 4, 2024 · 3 comments
Closed

Zigbee2MQTT 2.0 is not starting with a TCP coordinator #25062

rohankapoorcom opened this issue Dec 4, 2024 · 3 comments
Labels
problem Something isn't working

Comments

@rohankapoorcom
Copy link
Contributor

What happened?

I have a docker install of Zigbee2MQTT - I switched from image: koenkk/zigbee2mqtt:1.42.0 to image: koenkk/zigbee2mqtt:latest-dev which should include all of the 2.0 breaking changes. I was not using any of the legacy features.

Migration file shows the following:

[ADDITION] Migrated settings to version 2

[REMOVAL] Removed configuring group members through configuration.yaml (groups.xyz.devices setting). This will not impact current group members; however, you will no longer be able to add or remove devices from a group through the configuration.yaml.

For more details, see https://github.com/Koenkk/zigbee2mqtt/discussions/24198

My configuration.yaml includes the following for the serial port section:

serial:
  port: tcp://zigbee-radio.REDACTED_DOMAIN.com:6638
  adapter: zstack

Zigbee2MQTT is unable to start with the following repeating in the logs:

Using '/app/data' as data directory

Starting Zigbee2MQTT without watchdog.

[2024-12-04 12:58:20] info: 	z2m: Logging to console, file (filename: log.log)

[2024-12-04 12:58:20] info: 	z2m: Starting Zigbee2MQTT version 1.42.0-dev (commit #53208ae06f22e4bbe42762ea8268224d9f355034)

[2024-12-04 12:58:20] info: 	z2m: Starting zigbee-herdsman (3.0.0)

[2024-12-04 12:58:20] error: 	z2m: Error while starting zigbee-herdsman

[2024-12-04 12:58:20] error: 	z2m: Failed to start zigbee-herdsman

[2024-12-04 12:58:20] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions

[2024-12-04 12:58:20] error: 	z2m: Exiting...

[2024-12-04 12:58:20] error: 	z2m: Error: Invalid TCP path, expected format: tcp://<host>:<port>

   at findTCPAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:466:15)

   at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:496:26)

   at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:54)

   at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:133:24)

   at Zigbee.start (/app/lib/zigbee.ts:69:27)

   at Controller.start (/app/lib/controller.ts:139:13)

   at start (/app/index.js:161:5)

I restored my backup of the data folder and switched back to image: koenkk/zigbee2mqtt:1.42.0 and Zigbee2MQTT started up again.

What did you expect to happen?

I expected Zigbee2MQTT to start up as it did before upgrading to the development image and connect to my TCP coordinator

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.42.0-dev

Adapter firmware version

20240710

Adapter

TubesZB CC2652 P7 Based Zigbee to PoE Coordinator 2023

Setup

Docker on x86-64

Debug log

Using '/app/data' as data directory

Starting Zigbee2MQTT without watchdog.

[2024-12-04 12:58:20] info: 	z2m: Logging to console, file (filename: log.log)

[2024-12-04 12:58:20] info: 	z2m: Starting Zigbee2MQTT version 1.42.0-dev (commit #53208ae06f22e4bbe42762ea8268224d9f355034)

[2024-12-04 12:58:20] info: 	z2m: Starting zigbee-herdsman (3.0.0)

[2024-12-04 12:58:20] error: 	z2m: Error while starting zigbee-herdsman

[2024-12-04 12:58:20] error: 	z2m: Failed to start zigbee-herdsman

[2024-12-04 12:58:20] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions

[2024-12-04 12:58:20] error: 	z2m: Exiting...

[2024-12-04 12:58:20] error: 	z2m: Error: Invalid TCP path, expected format: tcp://<host>:<port>

   at findTCPAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:466:15)

   at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:496:26)

   at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:54)

   at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:133:24)

   at Zigbee.start (/app/lib/zigbee.ts:69:27)

   at Controller.start (/app/lib/controller.ts:139:13)

   at start (/app/index.js:161:5)

@rohankapoorcom rohankapoorcom added the problem Something isn't working label Dec 4, 2024
@lux73
Copy link

lux73 commented Dec 4, 2024

try using plain IP Adress

@Koenkk
Copy link
Owner

Koenkk commented Dec 5, 2024

Fixed!

Changes will be available in the dev branch in a few hours from now. Note that the dev branch currently contains breaking changes, see #24198

@Koenkk Koenkk closed this as completed Dec 5, 2024
@rohankapoorcom
Copy link
Contributor Author

Thanks @Koenkk! Confirmed that it's working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants