Good morning , i got the CC2531 , flashed by a friend , and i assume the device is ok.
I followed 2 ways of install :
The first is typing this cmd : sudo docker run -itd --name=“Zigbee2MQTT” --net=host -e TZ=Europe/London --device=/dev/ttyACM0 --restart=always -v /volume1/docker/zigbee2mqtt/data:/app/data koenkk/zigbee2mqtt:latest
But the docker continues to restart and i do not know how to fix.
The other way is I plug it into my nas and from the docker registry i install zigbee2mqtt after the image is downloaded i have it installed and up and running , without any unexpected reset.
My problem is that in the first way i decide where to store the config file , in the second way i do not know where the file is stored which i read being in /app/data but no clue how to access it
ash-4.3# sudo docker run -it --name="zigbee2mqtt" --net=host -e TZ=Europe/London --device=/dev/ttyACM0 --restart=always -v /volume1/docker/zigbee2mqtt/data:/app/data koenkk/zigbee2mqtt
Using ‘/app/data’ as data directory
Creating configuration file…
zigbee2mqtt@1.10.0 start /app
node index.js
zigbee2mqtt:info 2020-02-11 12:29:33: Logging to console and directory: ‘/app/data/log/2020-02-11.12-29-33’ filename: log.txt
zigbee2mqtt:info 2020-02-11 12:29:33: Starting zigbee2mqtt version 1.10.0 (commit #8df6be8)
zigbee2mqtt:info 2020-02-11 12:29:33: Starting zigbee-herdsman…
zigbee2mqtt:info 2020-02-11 12:29:35: zigbee-herdsman started
zigbee2mqtt:info 2020-02-11 12:29:35: Coordinator firmware version: ‘{“type”:“zStack30x”,“meta”:{“transportrev”:2,“product”:2,“majorrel”:2,“minorrel”:7,“maintrel”:2,“revision”:20190425}}’
zigbee2mqtt:info 2020-02-11 12:29:35: Currently 0 devices are joined:
zigbee2mqtt:warn 2020-02-11 12:29:35: permit_join
set to true
in configuration.yaml.
zigbee2mqtt:warn 2020-02-11 12:29:35: Allowing new devices to join.
zigbee2mqtt:warn 2020-02-11 12:29:35: Set permit_join
to false
once you joined all devices.
zigbee2mqtt:info 2020-02-11 12:29:35: Zigbee: allowing new devices to join.
zigbee2mqtt:info 2020-02-11 12:29:35: Connecting to MQTT server at mqtt://localhost
events.js:200
throw er; // Unhandled ‘error’ event
^
Error: Connection refused: Not authorized
at MqttClient._handleConnack (/app/node_modules/mqtt/lib/client.js:1076:15)
at MqttClient._handlePacket (/app/node_modules/mqtt/lib/client.js:365:12)
at work (/app/node_modules/mqtt/lib/client.js:283:12)
at Writable.writable._write (/app/node_modules/mqtt/lib/client.js:294:5)
at doWrite (/app/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/app/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at Writable.write (/app/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at Socket.ondata (_stream_readable.js:728:22)
at Socket.emit (events.js:223:5)
at addChunk (_stream_readable.js:309:12)
Emitted ‘error’ event on MqttClient instance at:
at MqttClient._handleConnack (/app/node_modules/mqtt/lib/client.js:1078:10)
at MqttClient._handlePacket (/app/node_modules/mqtt/lib/client.js:365:12)
[… lines matching original stack trace …]
at addChunk (_stream_readable.js:309:12) {
code: 5
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.10.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.10.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-02-11T12_29_35_642Z-debug.log
Any help please