Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.03k stars 1.67k forks source link

Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms) #4584

Closed ayasystems closed 3 years ago

ayasystems commented 4 years ago

I can not start zigbee2mqtt

Debug info

Zigbee2MQTT version: 1.15.0 (commit #e30b257) Adapter hardware: CC2531 Adapter firmware version: CC2531ZNP-Prod.hex

Log response https://pastebin.com/raw/8QtEBN9b

Koenkk commented 3 years ago

Let's continue in #6517 (this is also about non 1.18.0 releases)

jszkiela72 commented 3 years ago

Zigbee2MQTT version: 1.18.1 Adapter hardware: CC2531 I have issue, zigbee keeps rebooting all the time since yesterday. logs attached. What could be the cause?

Zigbee2MQTT:info 2021-03-21 12:44:27: Logging to console only' Zigbee2MQTT:info 2021-03-21 12:44:28: Starting Zigbee2MQTT version 1.18.1 (commit #a43d1f3) Zigbee2MQTT:info 2021-03-21 12:44:28: Starting zigbee-herdsman (0.13.71) zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT' +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":[25]},"serialPort":{"path":"/dev/ttyACM0"},"databasePath":"/data/data/pl.sviete.dom/files/home/zigbee2mqtt/data/database.db","databaseBackupPath":"/data/data/pl.sviete.dom/files/home/zigbee2mqtt/data/database.db.backup","backupPath":"/data/data/pl.sviete.dom/files/home/zigbee2mqtt/data/coordinator_backup.json","adapter":{"concurrent":null,"delay":null}}' +0ms zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyACM0 and {"baudRate":115200,"rtscts":false,"autoOpen":false} +0ms zigbee-herdsman:adapter:zStack:znp:log Serialport opened +22ms zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload +530ms zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239] +0ms zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} +0ms zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] +1s zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} +6s zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] +6s zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} +6s zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] +6s Zigbee2MQTT:error 2021-03-21 12:44:48: Error while starting zigbee-herdsman Zigbee2MQTT:error 2021-03-21 12:44:48: Failed to start zigbee Zigbee2MQTT:error 2021-03-21 12:44:48: Exiting... Zigbee2MQTT:error 2021-03-21 12:44:48: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms) at ZStackAdapter. (/data/data/pl.sviete.dom/files/home/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31) at Generator.throw () at rejected (/data/data/pl.sviete.dom/files/home/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zigbee2mqtt@1.18.1 start: node index.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zigbee2mqtt@1.18.1 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! /data/data/pl.sviete.dom/files/home/.npm/_logs/2021-03-21T11_44_48_539Z-debug.log ~/zigbee2mqtt $

greghesp commented 3 years ago

I added this line in config and it worked for me:

serial:
  adapter: deconz

Ahhhh perfect, it works now thanks!

iNDeX999 commented 3 years ago

I added this line in config and it worked for me:

serial:
  adapter: deconz

Hi,

"config" ???

What file do you mean??!

greghesp commented 3 years ago

I added this line in config and it worked for me:

serial:
  adapter: deconz

Hi,

"config" ???

What file do you mean??!

https://www.zigbee2mqtt.io/information/configuration.html

LittleBigDev commented 3 years ago

I added this line in config and it worked for me:

serial:
  adapter: deconz

6 hours pulling my hair before I found this. Thx.

danielo515 commented 3 years ago

I tried adding the adapter deconz to my config file and now I am getting this error (note it just logs undefined at certain point):

Zigbee2MQTT:info  2021-09-05 11:31:41: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2021-09-05.11-31-40' filename: log.txt
Zigbee2MQTT:info  2021-09-05 11:31:42: Starting Zigbee2MQTT version 1.18.3 (commit #669489fe)
Zigbee2MQTT:info  2021-09-05 11:31:42: Starting zigbee-herdsman (0.13.92)
CREATED DECONZ ADAPTER
Zigbee2MQTT:error 2021-09-05 11:31:52: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-09-05 11:31:52: Failed to start zigbee
Zigbee2MQTT:error 2021-09-05 11:31:52: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-09-05 11:31:52: Exiting...
Zigbee2MQTT:error 2021-09-05 11:31:52: undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.18.3 start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.18.3 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I added adapter:deconz to my previous configuration, not sure if I should remove the rest. It looks like this now:

serial:
  adapter: deconz
   port: >-
      /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0008BDFED0-if00
advanced:
  channel: 11
szebenyib commented 2 years ago

Ohh and don't be a n00b as me, some other container was using it about which I have completely forgotten.