Cant start zigbee2mqtt

hello, have some problems to start this addon:

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-04-23T09_08_21_475Z-debug.log
[11:08:21] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js
Zigbee2MQTT:error 2021-04-23 11:08:45: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-04-23 11:08:45: Failed to start zigbee
Zigbee2MQTT:error 2021-04-23 11:08:45: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-04-23 11:08:45: Exiting...
Zigbee2MQTT:error 2021-04-23 11:08:45: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
    at Generator.throw (<anonymous>)
    at rejected (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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/2021-04-23T09_08_45_983Z-debug.log
[11:08:46] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js
Zigbee2MQTT:error 2021-04-23 11:09:11: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-04-23 11:09:11: Failed to start zigbee
Zigbee2MQTT:error 2021-04-23 11:09:11: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-04-23 11:09:11: Exiting...
Zigbee2MQTT:error 2021-04-23 11:09:11: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
    at Generator.throw (<anonymous>)
    at rejected (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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/2021-04-23T09_09_11_178Z-debug.log
[11:09:12] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js
Zigbee2MQTT:error 2021-04-23 11:09:38: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-04-23 11:09:38: Failed to start zigbee
Zigbee2MQTT:error 2021-04-23 11:09:38: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-04-23 11:09:38: Exiting...
Zigbee2MQTT:error 2021-04-23 11:09:38: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
    at Generator.throw (<anonymous>)
    at rejected (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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/2021-04-23T09_09_38_854Z-debug.log
[11:09:42] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js
Zigbee2MQTT:error 2021-04-23 11:10:07: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-04-23 11:10:07: Failed to start zigbee
Zigbee2MQTT:error 2021-04-23 11:10:07: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-04-23 11:10:07: Exiting...
Zigbee2MQTT:error 2021-04-23 11:10:07: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
    at Generator.throw (<anonymous>)
    at rejected (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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/2021-04-23T09_10_07_435Z-debug.log
[11:10:07] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js

config:

data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: 'mqtt://192.168.1.8:1883'
  user: mqtt_user
  password: mqtt_pass
serial:
  port: >-
    /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2404008-if00
advanced:
  log_level: warn
  pan_id: 6754
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental:
  new_api: true
socat:
  enabled: false
  master: 'pty,raw,echo=0,link=/dev/ttyZ2M,mode=777'
  slave: 'tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5'
  restartdelay: 1
  initialdelay: 1
  options: '-d -d'
  log: false

Log Mosquitto:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[10:26:34] INFO: Setup mosquitto configuration
[10:26:34] INFO: Found local users inside config
[10:26:34] INFO: Initialize Home Assistant Add-on services
[10:26:34] ERROR: Can't setup Home Assistant service mqtt
[10:26:34] INFO: Initialize Home Assistant discovery
[10:26:34] INFO: Start Mosquitto daemon
1619166394: mosquitto version 1.6.3 starting
1619166394: Config loaded from /etc/mosquitto.conf.
1619166394: Loading plugin: /usr/share/mosquitto/auth-plug.so
1619166394: |-- *** auth-plug: startup
1619166394:  ├── Username/password checking enabled.
1619166394:  ├── TLS-PSK checking enabled.
1619166394:  └── Extended authentication not enabled.
1619166394: Opening ipv4 listen socket on port 1883.
1619166394: Opening ipv6 listen socket on port 1883.
1619166394: Opening websockets listen socket on port 1884.
1619166394: Opening ipv4 listen socket on port 8883.
1619166394: Opening ipv6 listen socket on port 8883.
1619166394: Opening websockets listen socket on port 8884.
1619166395: Warning: Mosquitto should not be run as root/administrator.
1619166397: New connection from 192.168.1.8 on port 1883.
[10:26:38] INFO: [INFO] found mqtt_user on local database
1619166398: New client connected from 192.168.1.8 as 0qylEpUpmvVOB2a82JJ2ox (p2, c1, k60, u'mqtt_user').
1619167031: Client 0qylEpUpmvVOB2a82JJ2ox has exceeded timeout, disconnecting.
1619167052: New connection from 192.168.1.8 on port 1883.
[10:37:33] INFO: [INFO] found mqtt_user on local database
1619167053: New client connected from 192.168.1.8 as 7FXRkaEEW6ieC7QUJjVWm7 (p2, c1, k60, u'mqtt_user').
1619167589: Client 7FXRkaEEW6ieC7QUJjVWm7 has exceeded timeout, disconnecting.
1619167638: New connection from 192.168.1.8 on port 1883.
[10:47:19] INFO: [INFO] found mqtt_user on local database
1619167639: New client connected from 192.168.1.8 as 4K375nmIaKdxUQt3NdajEb (p2, c1, k60, u'mqtt_user').
1619168195: Saving in-memory database to /data/mosquitto.db.
1619168699: Socket error on client 4K375nmIaKdxUQt3NdajEb, disconnecting.
1619168764: New connection from 192.168.1.8 on port 1883.
[11:06:05] INFO: [INFO] found mqtt_user on local database
1619168765: New client connected from 192.168.1.8 as 0nUsWzCp0PVFV9wIDK91lQ (p2, c1, k60, u'mqtt_user').

and her a Log with zigbee_herdsman_debug: true

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[11:23:26] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[11:23:27] INFO: MQTT available, fetching server detail ...
[11:23:27] INFO: Previous config file found, checking backup
[11:23:27] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[11:23:27] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[11:23:28] INFO: Zigbee Herdsman debug logging enabled
[11:23:28] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js
2021-04-23T09:23:32.908Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2021-04-23T09:23:32.918Z 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":{"path":"/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2404008-if00"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"concurrent":null,"delay":null}}'
2021-04-23T09:23:32.921Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2404008-if00 and {"baudRate":115200,"rtscts":false,"autoOpen":false}
2021-04-23T09:23:32.932Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened
2021-04-23T09:23:33.401Z zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload
2021-04-23T09:23:33.402Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]
2021-04-23T09:23:34.415Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2021-04-23T09:23:34.422Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2021-04-23T09:23:40.427Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2021-04-23T09:23:40.428Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2021-04-23T09:23:46.436Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2021-04-23T09:23:46.437Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
Zigbee2MQTT:error 2021-04-23 11:23:52: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-04-23 11:23:52: Failed to start zigbee
Zigbee2MQTT:error 2021-04-23 11:23:52: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-04-23 11:23:52: Exiting...
Zigbee2MQTT:error 2021-04-23 11:23:52: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
    at Generator.throw (<anonymous>)
    at rejected (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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/2021-04-23T09_23_52_526Z-debug.log
[11:23:52] INFO: Zigbee Herdsman debug logging enabled
[11:23:52] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js
2021-04-23T09:23:57.328Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2021-04-23T09:23:57.334Z 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":{"path":"/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2404008-if00"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"concurrent":null,"delay":null}}'
2021-04-23T09:23:57.337Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2404008-if00 and {"baudRate":115200,"rtscts":false,"autoOpen":false}
2021-04-23T09:23:57.349Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened
2021-04-23T09:23:57.817Z zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload
2021-04-23T09:23:57.818Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]
2021-04-23T09:23:58.829Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2021-04-23T09:23:58.835Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2021-04-23T09:24:04.844Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2021-04-23T09:24:04.845Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2021-04-23T09:24:10.852Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2021-04-23T09:24:10.853Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]

Hi @noxx,

I think, you need to add this key to config in the serial part :

serial
   adapter: deconz
   ...

I had the same problem and this fixed it.

1 Like

thx, then i get this

[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[11:59:07] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[11:59:08] INFO: MQTT available, fetching server detail ...
[11:59:08] INFO: Previous config file found, checking backup
[11:59:08] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[11:59:08] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[11:59:09] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start /app
> node index.js
CREATED DECONZ ADAPTER
Zigbee2MQTT:warn  2021-04-23 11:59:14: `permit_join` set to  `true` in configuration.yaml.
Zigbee2MQTT:warn  2021-04-23 11:59:14: Allowing new devices to join.
Zigbee2MQTT:warn  2021-04-23 11:59:14: Set `permit_join` to `false` once you joined all devices.
Zigbee2MQTT:error 2021-04-23 11:59:25: Not connected to MQTT server!

now the zigbee2mqtt server itself works, but it does not connect to mqtt server.

You have to check ip, port, user e pwd of your mqtt server. I didn’t have any issue on this side, as long as I gave right data.
Actually I don’t specify the port in my config, try this way:

server: 'mqtt://192.168.1.8'

seems good now. in the meantime i try this
server: ‘mqtt://localhost:1883’
that dont work

server: ‘mqtt://192.168.1.8:1883’
works (at the moment)

If you run the standard Mosquitto broker addon you can just use
server: 'mqtt://core-mosquitto'

But is yout MQTT user really mqtt_user with password mqtt_pass?

And if this is your first time using Zigbee2MQTT (aka, have nothing connected yet), change your network key :wink:

Please translate this to English