Hi there.
My USB is listed under /dev/ttyUSB0
I have tried 2 different methods of mapping the device to docker
–device=/dev/ttyUSB0:/dev/ttyACM0 \
–device=/dev/ttyUSB0
docker run -it -v /home/docker/zigbee2mqtt/data:/app/data --device=/dev/ttyUSB0:/dev/ttyACM0 -e -v /run/udev:/run/udev:ro --privileged=true --name=zigbee koenkk/zigbee2mqtt
Using ‘/app/data’ as data directoryzigbee2mqtt@1.15.0 start /app
node index.jsZigbee2MQTT:info 2020-10-30 14:56:30: Logging to console and directory: ‘/app/data/log/2020-10-30.14-56-30’ filename: log.txt
Zigbee2MQTT:info 2020-10-30 14:56:31: Starting Zigbee2MQTT version 1.15.0 (commit #1bccc5d)
Zigbee2MQTT:info 2020-10-30 14:56:31: Starting zigbee-herdsman…
Zigbee2MQTT:error 2020-10-30 14:56:32: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2020-10-30 14:56:32: Failed to start zigbee
Zigbee2MQTT:error 2020-10-30 14:56:32: Exiting…
Zigbee2MQTT:error 2020-10-30 14:56:32: Error: Error while opening serialport ‘Error: Error: No such file or directory, cannot open /dev/ttyACM0’
at Znp. (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:136:32)
at Generator.next ()
at /app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:27:71
at new Promise ()
at __awaiter (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:23:12)
at SerialPort. (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:134:49)
at SerialPort._error (/app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
at /app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.15.0 start:node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.15.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-10-30T13_56_32_372Z-debug.log
docker run
-it
-v $(pwd)/data:/app/data
–device=/dev/ttyUSB0
-v /run/udev:/run/udev:ro
–privileged=true
koenkk/zigbee2mqtt
Using ‘/app/data’ as data directoryzigbee2mqtt@1.15.0 start /app node index.js Zigbee2MQTT:info 2020-10-30 14:38:42: Logging to console and directory: ‘/app/data/log/2020-10-30.14-38-42’ filename: log.txt Zigbee2MQTT:info 2020-10-30 14:38:43: Starting Zigbee2MQTT version 1.15.0 (commit #1bccc5d) Zigbee2MQTT:info 2020-10-30 14:38:43: Starting zigbee-herdsman… Zigbee2MQTT:error 2020-10-30 14:38:44: Error while starting zigbee-herdsman Zigbee2MQTT:error 2020-10-30 14:38:44: Failed to start zigbee Zigbee2MQTT:error 2020-10-30 14:38:44: Exiting… Zigbee2MQTT:error 2020-10-30 14:38:44: Error: Error while opening serialport ‘Error: Error: No such file or directory, cannot open /dev/ttyACM0’ at Znp. (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:136:32) at Generator.next () at /app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:27:71 at new Promise () at __awaiter (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:23:12) at SerialPort. (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:134:49) at SerialPort._error (/app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14) at /app/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zigbee2mqtt@1.15.0 start: node index.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zigbee2mqtt@1.15.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-10-30T14_38_44_283Z-debug.log
How can I fix it?
Kind regards