Zigbee sonof dongle not seen from Zigbee2mqtt container

bemo47

New Member
Oct 20, 2024
1
0
1
Hi,
I installed HA, MQTT and Z2M in separate VM.
HA is a VM, the other two are containers
Z2M need to own the sub port where the dongle is connected, this container has privileges, and it worked fine once, but afeter a reboot of the container the dongle seems not seen.

i would like to try to give that usb port to this container but its not possible with containers

below the log from the start of Z2M :

Code:
root@zigbee2mqtt:~# cd /opt/zigbee2mqtt && npm start

> zigbee2mqtt@1.40.2 start
> node index.js

Starting Zigbee2MQTT without watchdog.
[2024-10-20 22:33:37] info:     z2m: Logging to console, file (filename: log.log)
[2024-10-20 22:33:37] debug:    z2m: Loaded state from file /opt/zigbee2mqtt/data/state.json
[2024-10-20 22:33:37] info:     z2m: Starting Zigbee2MQTT version 1.40.2 (commit #e06848d)
[2024-10-20 22:33:37] debug:    z2m: sd-notify loaded
[2024-10-20 22:33:37] info:     z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-20 22:33:37] debug:    z2m: Using zigbee-herdsman with settings: '"{\"network\":{\"panID\":22371,\"extendedPanID\":[81,25,81,199,220,210,40,221],\"channelList\":[25],\"networkKey\":\"HIDDEN\"},\"databasePath\":\"/opt/zigbee2mqtt/data/database.db\",\"databaseBackupPath\":\"/opt/zigbee2mqtt/data/database.db.backup\",\"backupPath\":\"/opt/zigbee2mqtt/data/coordinator_backup.json\",\"serialPort\":{\"path\":\"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231102142912-if00\",\"adapter\":\"ember\"},\"adapter\":{\"disableLED\":false}}"'
[2024-10-20 22:33:37] info:     zh:ember: Using default stack config.
[2024-10-20 22:33:37] debug:    zh:controller: Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":"HIDDEN","panID":22371,"extendedPanID":[81,25,81,199,220,210,40,221],"channelList":[25]},"serialPort":{"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231102142912-if00","adapter":"ember"},"adapter":{"disableLED":false},"databasePath":"/opt/zigbee2mqtt/data/database.db","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json"}'
[2024-10-20 22:33:37] info:     zh:ember: ======== Ember Adapter Starting ========
[2024-10-20 22:33:37] info:     zh:ember:ezsp: ======== EZSP starting ========
[2024-10-20 22:33:37] info:     zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-20 22:33:37] info:     zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-10-20 22:33:37] debug:    zh:ember:uart:ash: Opening serial port with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231102142912-if00","baudRate":115200,"rtscts":false,"autoOpen":false,"parity":"none","stopBits":1,"xon":true,"xoff":true}
[2024-10-20 22:33:37] info:     zh:ember:uart:ash: ASH COUNTERS since last clear:
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Total frames: RX=0, TX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Cancelled   : RX=0, TX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   DATA frames : RX=0, TX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   DATA bytes  : RX=0, TX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Retry frames: RX=0, TX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   ACK frames  : RX=0, TX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   NAK frames  : RX=0, TX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   nRdy frames : RX=0, TX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   CRC errors      : RX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Comm errors     : RX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Length < minimum: RX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Length > maximum: RX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Bad controls    : RX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Bad lengths     : RX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Bad ACK numbers : RX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Out of buffers  : RX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Retry dupes     : RX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   Out of sequence : RX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash:   ACK timeouts    : RX=0
[2024-10-20 22:33:37] info:     zh:ember:uart:ash: ======== ASH stopped ========
[2024-10-20 22:33:37] error:    zh:ember:uart:ash: Failed to init port with error Error: Error Resource temporarily unavailable Cannot lock port
[2024-10-20 22:33:37] error:    z2m: Error while starting zigbee-herdsman
[2024-10-20 22:33:37] error:    z2m: Failed to start zigbee
[2024-10-20 22:33:37] error:    z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-20 22:33:37] error:    z2m: Exiting...
[2024-10-20 22:33:37] error:    z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
    at EmberAdapter.initEzsp (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:684:19)
    at EmberAdapter.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1583:24)
    at Controller.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
    at Zigbee.start (/opt/zigbee2mqtt/lib/zigbee.ts:69:27)
    at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:161:27)
    at start (/opt/zigbee2mqtt/index.js:154:5)
root@zigbee2mqtt:/opt/zigbee2mqtt#
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!