Zigbee2Mqtt in a LX Container, Device Problem after Migration

Aleaweil

Member
Oct 30, 2022
21
0
6
Hi Guys, at first some Information:
My smarthome infrastructure runs on a Intel Nuc, and inside a -surprise- Proxmox hypervisor. On my old Nuc z2m runs without problems in a LXC.
But I have to move the complete system onto new hardware. Again a intel NUC. So i took a backup from the lxc on the old, and restored it on the new machine. Did the whole udev rule thing on the host, so the SONOFF Zigbee 3.0 USB Dongle E ZigBee 3.0 TI EFR32MG21 + CH9102F Coordinator is availible on the host. As this didn't work, I tried the -by-id approach, doesn't work either
LXC Conf looks like:

YAML:
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.0.15:1883
  user: ---
  password: ---
serial:
  adapter: ezsp
  port: /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230829085157-if00
frontend: true
advanced:
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
  log_level: debug
  log_syslog:
    app_name: Zigbee2MQTT
    eol: /n
    host: localhost
    localhost: localhost
    path: /dev/log
    pid: process.pid
    port: 514
    protocol: udp4
    type: '5424'
  last_seen: ISO_8601
  baudrate: 115200
device_options:
  legacy: false
devices:

If I plugin the Sonoff Stick and try to start with: root@zigbee2mqtt:/opt/zigbee2mqtt/data# DEBUG=zigbee-herdsman* npm start
I get:

Code:
> zigbee2mqtt@1.33.2 start
> node index.js

Zigbee2MQTT:debug 2023-11-25 22:13:34: Loaded state from file /opt/zigbee2mqtt/data/state.json
Zigbee2MQTT:info  2023-11-25 22:13:34: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2023-11-25.22-13-34' filename: log.txt
Zigbee2MQTT:debug 2023-11-25 22:13:34: Removing old log directory '/opt/zigbee2mqtt/data/log/2023-11-25.21-54-33'
Zigbee2MQTT:info  2023-11-25 22:13:34: Starting Zigbee2MQTT version 1.33.2 (commit #ccc08a3f)
Zigbee2MQTT:info  2023-11-25 22:13:34: Starting zigbee-herdsman (0.21.0)
Zigbee2MQTT:debug 2023-11-25 22:13:34: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"ezsp","baudRate":115200,"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230829085157-if00"}}'
  zigbee-herdsman:adapter:ezsp:debg Adapter concurrent: 8 +0ms
  zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"baudRate":115200,"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230829085157-if00","adapter":"ezsp"},"databasePath":"/opt/zigbee2mqtt/data/database.db","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}' +0ms
  zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230829085157-if00","baudRate":115200,"rtscts":false,"autoOpen":false} +0ms
  zigbee-herdsman:adapter:ezsp:erro Connection attempt 1 error: Error: Error while opening serialport 'Error: Error: Inappropriate ioctl for device setting custom baud rate of 115200'
  zigbee-herdsman:adapter:ezsp:erro     at SerialPort.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:94:28)
  zigbee-herdsman:adapter:ezsp:erro     at SerialPort._error (/opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:82:22)
  zigbee-herdsman:adapter:ezsp:erro     at /opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:118:18 +0ms
  zigbee-herdsman:adapter:ezsp:ezsp Next attempt 2 +0ms
  zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230829085157-if00","baudRate":115200,"rtscts":false,"autoOpen":false} +5s
  zigbee-herdsman:adapter:ezsp:erro Connection attempt 2 error: Error: Error while opening serialport 'Error: Error: Inappropriate ioctl for device setting custom baud rate of 115200'
  zigbee-herdsman:adapter:ezsp:erro     at SerialPort.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:94:28)
  zigbee-herdsman:adapter:ezsp:erro     at SerialPort._error (/opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:82:22)
  zigbee-herdsman:adapter:ezsp:erro     at /opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:118:18 +5s
  zigbee-herdsman:adapter:ezsp:ezsp Next attempt 3 +5s
  zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230829085157-if00","baudRate":115200,"rtscts":false,"autoOpen":false} +5s
  zigbee-herdsman:adapter:ezsp:erro Connection attempt 3 error: Error: Error while opening serialport 'Error: Error: Inappropriate ioctl for device setting custom baud rate of 115200'
  zigbee-herdsman:adapter:ezsp:erro     at SerialPort.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:94:28)
  zigbee-herdsman:adapter:ezsp:erro     at SerialPort._error (/opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:82:22)
  zigbee-herdsman:adapter:ezsp:erro     at /opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:118:18 +5s
  zigbee-herdsman:adapter:ezsp:ezsp Next attempt 4 +5s
  zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230829085157-if00","baudRate":115200,"rtscts":false,"autoOpen":false} +5s
  zigbee-herdsman:adapter:ezsp:erro Connection attempt 4 error: Error: Error while opening serialport 'Error: Error: Inappropriate ioctl for device setting custom baud rate of 115200'
  zigbee-herdsman:adapter:ezsp:erro     at SerialPort.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:94:28)
  zigbee-herdsman:adapter:ezsp:erro     at SerialPort._error (/opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:82:22)
  zigbee-herdsman:adapter:ezsp:erro     at /opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:118:18 +5s
  zigbee-herdsman:adapter:ezsp:ezsp Next attempt 5 +5s
  zigbee-herdsman:adapter:ezsp:ezsp ==> version: {"desiredProtocolVersion":4} +0ms
Zigbee2MQTT:error 2023-11-25 22:13:54: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-11-25 22:13:54: Failed to start zigbee
Zigbee2MQTT:error 2023-11-25 22:13:54: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-11-25 22:13:54: Exiting...
Zigbee2MQTT:error 2023-11-25 22:13:54: Error: Connection not initialized
    at Ezsp.execCommand (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:551:19)
    at Ezsp.version (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:349:35)
    at Driver.startup (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:140:25)
    at EZSPAdapter.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:172:16)
    at Controller.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
    at Zigbee.start (/opt/zigbee2mqtt/lib/zigbee.ts:60:27)
    at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:101:27)
    at start (/opt/zigbee2mqtt/index.js:107:5)

and if i execute
ls -l /dev/serial/by-id
i get

Code:
root@zigbee2mqtt:/opt/zigbee2mqtt/data# ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Nov 25 21:55 usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230829085157-if00 -> ../../ttyACM0

So basically it should work shouldn't it?

Thank you in advance
 

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!