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 docker image not starting after reboot #22564

Open
amplitur opened this issue May 9, 2024 · 0 comments
Open

Zigbee2MQTT docker image not starting after reboot #22564

amplitur opened this issue May 9, 2024 · 0 comments
Labels
ezsp Issues related to deprecated ezsp driver problem Something isn't working

Comments

@amplitur
Copy link

amplitur commented May 9, 2024

What happened?

I'm running Zigbee2MQTT on a NUC with Ubuntu 22.04, using Docker 25.0.4 .

After each restart of the NUC, Zigbee2MQTT initially does not start up, it exits with "Error while starting zigbee-herdsman" as shown in attached debug log.

After restarting the docker stack, Zigbee2MQQT runs fine. Commands used to restart docker stack:

docker compose down
docker compose up -d 

docker compose yaml used for Zigbee2MQTT and Mosquitto:

  mosquitto:
    image: eclipse-mosquitto:latest
    container_name: mosquitto
    ports:
      - 1883:1883
      - 8883:8883
      - 9001:9001
    volumes:
      - /home/lademann/.docker_volumes/mosquitto/config:/mosquitto/config
      - /home/lademann/.docker_volumes/mosquitto/data:/mosquitto/data
      - /home/lademann/.docker_volumes/mosquitto/log:/mosquitto/log
    environment:
     - TZ=Australia/Melbourne
  zigbee2mqtt:
    image: koenkk/zigbee2mqtt:latest
    container_name: zigbee2mqqt
    restart: unless-stopped
    volumes:
       - /home/lademann/.docker_volumes/zigbee2mqtt:/app/data
       - /run/udev:/run/udev:ro
    devices:
      - /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231122152947-if00:/dev/ttyACM0
    ports:
     - 8081:8080
    environment:
     - TZ=Australia/Melbourne
    depends_on:
      - mosquitto

What did you expect to happen?

I expected that Zigbee2MQTT starts up without errors after a machine restart.

How to reproduce it (minimal and precise)

I can reproduce this simply by rebooing my Ubuntu machine:

sudo shutdown -r now

Zigbee2MQTT version

1.36.0 commit: 86ed71c

Adapter firmware version

6.10.3.0 build 297

Adapter

SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231122152947

Setup

Docker image on Intel NUC, Ubuntu 22.04

Debug log

debug 2024-05-09 21:39:36: Loaded state from file /app/data/state.json
info  2024-05-09 21:39:36: Logging to console and directory: '/app/data/log/2024-05-09.21-39-36' filename: log.txt
debug 2024-05-09 21:39:36: Removing old log directory '/app/data/log/2024-05-09.21-33-26'
info  2024-05-09 21:39:36: Starting Zigbee2MQTT version 1.36.0 (commit #86ed71c)
info  2024-05-09 21:39:36: Starting zigbee-herdsman (0.35.1)
debug 2024-05-09 21:39:36: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/app/data/coordinator_backup.json","databaseBackupPath":"/app/data/database.db.backup","databasePath":"/app/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyACM0"}}'
error 2024-05-09 21:39:48: Error while starting zigbee-herdsman
error 2024-05-09 21:39:48: Failed to start zigbee
error 2024-05-09 21:39:48: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
error 2024-05-09 21:39:48: Exiting...
error 2024-05-09 21:39:48: Error: Failure send version:{"type":"Buffer","data":[0,0,0,4]}
    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 Ezsp.version (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:469:24)
    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:172:9)
    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)

@amplitur amplitur added the problem Something isn't working label May 9, 2024
@Nerivec Nerivec added the ezsp Issues related to deprecated ezsp driver label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ezsp Issues related to deprecated ezsp driver problem Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants