Failed at the zigbee2mqtt@1.9.0 start script

Hi there,

I’m new to this forum and recognized that error’s like this happened the last months to different users.
I’m running a Raspberry Pi 3 B+ with installed openHABIAN. Then I use a TI CC-Debugger and an USB Zigbee Sniffer CC2531. It’s flashed and installed and I created my own zigbee gateway (according to https://www.zigbee2mqtt.io/getting_star … 2mqtt.html](| Zigbee2MQTT). I already paired 2 Aqara temperature sensors (but currently they are not paired, as I re-installed openHABIAN.
With a new start (npm start) I get the following error:

zigbee2mqtt@1.9.0 start /opt/zigbee2mqtt
node index.js

zigbee2mqtt:info 2020-01-26 13:21:25: Logging to console and directory: ‘/opt/zigbee2mqtt/data/log/2020-01-26.13-21-25’
zigbee2mqtt:info 2020-01-26 13:21:26: Starting zigbee2mqtt version 1.9.0 (commit #287f843)
zigbee2mqtt:info 2020-01-26 13:21:26: Starting zigbee-herdsman…
zigbee2mqtt:error 2020-01-26 13:21:26: Error while starting zigbee-herdsman
zigbee2mqtt:error 2020-01-26 13:21:26: Failed to start zigbee
zigbee2mqtt:error 2020-01-26 13:21:26: Exiting…
zigbee2mqtt:error 2020-01-26 13:21:26: Error: Error while opening serialport ‘Error: Error Resource temporarily unavailable Cannot lock port’
at Znp. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:113:32)
at Generator.next ()
at /opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:8:71
at new Promise ()
at __awaiter (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:4:12)
at SerialPort. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:111:49)
at SerialPort._error (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
at /opt/zigbee2mqtt/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.9.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.9.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! /home/openhabian/.npm/_logs/2020-01-26T12_21_26_886Z-debug.log

Configuration.yaml looks like this:

Home Assistant integration (MQTT discovery)

homeassistant: false

allow new devices to join

permit_join: true

MQTT settings

mqtt:

MQTT base topic for zigbee2mqtt MQTT messages

base_topic: zigbee2mqtt

MQTT server URL

server: ‘mqtt://localhost’

MQTT server authentication, uncomment if required:

user: my_user

password: my_password

Serial settings

serial:

Location of CC2531 USB sniffer

port: /dev/ttyACM0

I have no clue what to do - hope you can help. Any assistance is appreciated.
Thanks

Are you sure it is the correct port ?

Situation is different now - with “npm start” I get this output all the time:

zigbee2mqtt@1.9.0 start /opt/zigbee2mqtt
node index.js

zigbee2mqtt:info 2020-01-30 20:25:41: Logging to console and directory: ‘/opt/zigbee2mqtt/data/log/2020-01-30.20-25-41’
zigbee2mqtt:info 2020-01-30 20:25:41: Starting zigbee2mqtt version 1.9.0 (commit #287f843)
zigbee2mqtt:info 2020-01-30 20:25:41: Starting zigbee-herdsman…
zigbee2mqtt:error 2020-01-30 20:25:54: Error while starting zigbee-herdsman
zigbee2mqtt:error 2020-01-30 20:25:54: Failed to start zigbee
zigbee2mqtt:error 2020-01-30 20:25:54: Exiting…
zigbee2mqtt:error 2020-01-30 20:25:54: Error: SRSP - SYS - version after 6000ms
at Timeout._onTimeout (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.9.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.9.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! /home/openhabian/.npm/_logs/2020-01-30T19_26_30_031Z-debug.log

After “sudo reboot” the output looks correct:

zigbee2mqtt@1.9.0 start /opt/zigbee2mqtt
node index.js

zigbee2mqtt:info 2020-01-30 20:29:43: Logging to console and directory: ‘/opt/zigbee2mqtt/data/log/2020-01-30.20-29-43’
zigbee2mqtt:info 2020-01-30 20:29:44: Starting zigbee2mqtt version 1.9.0 (commit #287f843)
zigbee2mqtt:info 2020-01-30 20:29:44: Starting zigbee-herdsman…
zigbee2mqtt:info 2020-01-30 20:29:48: zigbee-herdsman started
zigbee2mqtt:info 2020-01-30 20:29:48: Coordinator firmware version: ‘{“type”:“zStack12”,“meta”:{“transportrev”:2,“product”:0,“majorrel”:2,“minorrel”:6,“maintrel”:3,“revision”:20190608}}’
zigbee2mqtt:info 2020-01-30 20:29:48: Currently 0 devices are joined:
zigbee2mqtt:warn 2020-01-30 20:29:48: permit_join set to true in configuration.yaml.
zigbee2mqtt:warn 2020-01-30 20:29:48: Allowing new devices to join.
zigbee2mqtt:warn 2020-01-30 20:29:48: Set permit_join to false once you joined all devices.
zigbee2mqtt:info 2020-01-30 20:29:48: Zigbee: allowing new devices to join.
zigbee2mqtt:info 2020-01-30 20:29:48: Connecting to MQTT server at mqtt://localhost
zigbee2mqtt:info 2020-01-30 20:29:48: Connected to MQTT server
zigbee2mqtt:info 2020-01-30 20:29:48: MQTT publish: topic ‘zigbee2mqtt/bridge/state’, payload ‘online’
zigbee2mqtt:info 2020-01-30 20:29:48: MQTT publish: topic ‘zigbee2mqtt/bridge/config’, payload ‘{“version”:“1.9.0”,“commit”:“287f843”,“coordinator”:{“type”:“zStack12”,“meta”:{“transportrev”:2,“product”:0,“majorrel”:2,“minorrel”:6,“maintrel”:3,“revision”:20190608}},“log_level”:“info”,“permit_join”:true}’

Have no clue…

Don’t know how, but a new installation solved the problem. I believe I had the wrong password in the installation of openhabian. Never mind - works now - happy :slight_smile: