『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1503|回复: 8

[求助] zigbeemqtt错误怎么解决,求助

[复制链接]

34

主题

312

帖子

1452

积分

金牌会员

Rank: 6Rank: 6

积分
1452
金钱
1140
HASS币
0
发表于 2022-9-3 16:35:10 | 显示全部楼层 |阅读模式
本帖最后由 hcfong2020 于 2022-9-3 17:20 编辑
[16:34:45] INFO: Handing over control to Zigbee2MQTT Core ...
Zigbee2MQTT:info  2022-09-03 16:34:51: Logging to console and directory: '/config/zigbee2mqtt/log/2022-09-03.16-34-51' filename: log.txt
Zigbee2MQTT:info  2022-09-03 16:34:51: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info  2022-09-03 16:34:51: Starting zigbee-herdsman (0.14.53)
Zigbee2MQTT:error 2022-09-03 16:35:12: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-09-03 16:35:12: Failed to start zigbee
Zigbee2MQTT:error 2022-09-03 16:35:12: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-09-03 16:35:12: Exiting...
Zigbee2MQTT:error 2022-09-03 16:35:12: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:101:27)
    at start (/app/index.js:109:5)
[16:35:16] INFO: Handing over control to Zigbee2MQTT Core ...
Zigbee2MQTT:info  2022-09-03 16:35:22: Logging to console and directory: '/config/zigbee2mqtt/log/2022-09-03.16-35-21' filename: log.txt
Zigbee2MQTT:info  2022-09-03 16:35:22: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info  2022-09-03 16:35:22: Starting zigbee-herdsman (0.14.53)

使用ZHA了可以识别到 usb设备为,/dev/ttyACM0禁用ZHA后重启Zigbe2Mqtt后还是报错配置文件
<span style="color: rgb(33, 33, 33); font-family: Roboto, Noto, sans-serif;">socat:</span>


查看错误报告,好像是没有识别到适配器。有哪个大神能帮忙解决一下?使用的适配器是 Sonoff的。Zigbee2MQTT 无法启动|Zigbee2MQTT


s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service z2m successfully started
s6-rc: info: service socat successfully started
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[17:17:47] INFO: Zigbee Herdsman debug logging enabled
[17:17:47] INFO: Socat not enabled
[17:17:50] INFO: Handing over control to Zigbee2MQTT Core ...
Zigbee2MQTT:debug 2022-09-03 17:17:56: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info  2022-09-03 17:17:56: Logging to console and directory: '/config/zigbee2mqtt/log/2022-09-03.17-17-56' filename: log.txt
Zigbee2MQTT:debug 2022-09-03 17:17:56: Removing old log directory '/config/zigbee2mqtt/log/2022-09-03.17-12-43'
Zigbee2MQTT:info  2022-09-03 17:17:56: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info  2022-09-03 17:17:56: Starting zigbee-herdsman (0.14.53)
Zigbee2MQTT:debug 2022-09-03 17:17:56: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyACM0"}}'
2022-09-03T09:17:57.108Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2022-09-03T09:17:57.112Z 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/ttyACM0"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2022-09-03T09:17:57.114Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyACM0 and {"baudRate":115200,"rtscts":false,"autoOpen":false}
2022-09-03T09:17:57.133Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened
2022-09-03T09:17:57.137Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:17:57.140Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:17:57.395Z zigbee-herdsman:adapter:zStack:znp:log Writing CC2530/CC2531 skip bootloader payload
2022-09-03T09:17:57.397Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]
2022-09-03T09:17:58.399Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:17:58.400Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:17:58.653Z zigbee-herdsman:adapter:zStack:znp:log Skip bootloader for CC2652/CC1352
2022-09-03T09:17:59.111Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:17:59.112Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:05.116Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:05.117Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:11.122Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:11.124Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
Zigbee2MQTT:error 2022-09-03 17:18:17: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-09-03 17:18:17: Failed to start zigbee
Zigbee2MQTT:error 2022-09-03 17:18:17: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-09-03 17:18:17: Exiting...
Zigbee2MQTT:error 2022-09-03 17:18:17: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:101:27)
    at start (/app/index.js:109:5)
[17:18:18] INFO: Zigbee Herdsman debug logging enabled
[17:18:21] INFO: Handing over control to Zigbee2MQTT Core ...
Zigbee2MQTT:debug 2022-09-03 17:18:26: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info  2022-09-03 17:18:26: Logging to console and directory: '/config/zigbee2mqtt/log/2022-09-03.17-18-26' filename: log.txt
Zigbee2MQTT:debug 2022-09-03 17:18:26: Removing old log directory '/config/zigbee2mqtt/log/2022-09-03.17-13-14'
Zigbee2MQTT:info  2022-09-03 17:18:27: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info  2022-09-03 17:18:27: Starting zigbee-herdsman (0.14.53)
Zigbee2MQTT:debug 2022-09-03 17:18:27: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyACM0"}}'
2022-09-03T09:18:27.514Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2022-09-03T09:18:27.518Z 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/ttyACM0"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2022-09-03T09:18:27.520Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyACM0 and {"baudRate":115200,"rtscts":false,"autoOpen":false}
2022-09-03T09:18:27.556Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened
2022-09-03T09:18:27.560Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:27.565Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:27.819Z zigbee-herdsman:adapter:zStack:znp:log Writing CC2530/CC2531 skip bootloader payload
2022-09-03T09:18:27.821Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]
2022-09-03T09:18:28.824Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:28.825Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:29.078Z zigbee-herdsman:adapter:zStack:znp:log Skip bootloader for CC2652/CC1352
2022-09-03T09:18:29.537Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:29.538Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:35.542Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:35.544Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:41.549Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:41.550Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
Zigbee2MQTT:error 2022-09-03 17:18:47: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-09-03 17:18:47: Failed to start zigbee
Zigbee2MQTT:error 2022-09-03 17:18:47: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-09-03 17:18:47: Exiting...
Zigbee2MQTT:error 2022-09-03 17:18:47: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:101:27)
    at start (/app/index.js:109:5)


回复

使用道具 举报

77

主题

1391

帖子

2万

积分

元老级技术达人

积分
24331
金钱
22900
HASS币
290
发表于 2022-9-3 22:54:59 | 显示全部楼层
Dingtalk_20220903224507.jpg

参考设置一下试试,不知道你的环境是否与我的一样。
回复

使用道具 举报

20

主题

265

帖子

1852

积分

金牌会员

Rank: 6Rank: 6

积分
1852
金钱
1587
HASS币
0
发表于 2022-9-4 18:12:31 | 显示全部楼层
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service z2m: stopping
s6-rc: info: service socat: stopping
s6-rc: info: service socat successfully stopped
s6-rc: info: service z2m successfully stopped
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Zigbee2MQTT:error 2022-09-04 03:07:10: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-09-04 03:07:10: Failed to start zigbee
Zigbee2MQTT:error 2022-09-04 03:07:10: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-09-04 03:07:10: Exiting...
Zigbee2MQTT:error 2022-09-04 03:07:10: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/teyUSB0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
    at SerialPort._error (/app/node_modules/@serialport/stream/lib/index.js:198:14)
    at /app/node_modules/@serialport/stream/lib/index.js:242:12
/app/node_modules/readable-stream/lib/_stream_writable.js:261
  var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb
           ^
Error: write after end
    at writeAfterEnd (/app/node_modules/readable-stream/lib/_stream_writable.js:261:12)
    at DerivedLogger.Writable.write (/app/node_modules/readable-stream/lib/_stream_writable.js:305:21)
    at DerivedLogger.<computed> [as error] (/app/node_modules/winston/lib/winston/create-logger.js:81:14)
    at Object.error (/app/lib/util/logger.ts:197:12)
    at Controller.callExtensions (/app/lib/controller.ts:318:24)
    at Controller.stop (/app/lib/controller.ts:192:9)
    at stop (/app/index.js:113:5)
    at process.handleQuit (/app/index.js:119:9)
帮忙一起看看这个是什么问题
回复

使用道具 举报

34

主题

312

帖子

1452

积分

金牌会员

Rank: 6Rank: 6

积分
1452
金钱
1140
HASS币
0
 楼主| 发表于 2022-9-4 20:34:39 | 显示全部楼层
dscao 发表于 2022-9-3 22:54
参考设置一下试试,不知道你的环境是否与我的一样。

我的是ttyACM0
回复

使用道具 举报

34

主题

312

帖子

1452

积分

金牌会员

Rank: 6Rank: 6

积分
1452
金钱
1140
HASS币
0
 楼主| 发表于 2022-9-4 20:35:55 | 显示全部楼层
kaka0992 发表于 2022-9-4 18:12
帮忙一起看看这个是什么问题

你的我感觉的是不应该设置成ttyUSB0,要看USB的识别成什么!
回复

使用道具 举报

34

主题

312

帖子

1452

积分

金牌会员

Rank: 6Rank: 6

积分
1452
金钱
1140
HASS币
0
 楼主| 发表于 2022-9-4 20:38:06 | 显示全部楼层
kaka0992 发表于 2022-9-4 18:12
帮忙一起看看这个是什么问题

你的是无法找到这个 /dev/teyUSB0,这个应该就是对应的usb硬件设备。
错误的解决方法这里面有,可以通过安装ZHA,查看识别的usb是什么!然后再禁用ZHA。
https://www.zigbee2mqtt.io/guide ... s-ping-after-6000ms
回复

使用道具 举报

20

主题

265

帖子

1852

积分

金牌会员

Rank: 6Rank: 6

积分
1852
金钱
1587
HASS币
0
发表于 2022-9-8 19:56:50 | 显示全部楼层
hcfong2020 发表于 2022-9-4 20:35
你的我感觉的是不应该设置成ttyUSB0,要看USB的识别成什么!

从esxi换成PVE就没问题了
回复

使用道具 举报

0

主题

38

帖子

296

积分

中级会员

Rank: 3Rank: 3

积分
296
金钱
258
HASS币
0
发表于 2022-9-9 16:07:59 | 显示全部楼层
SONOFF的软件故障,重新写下程序就好了,我遇到过。可能是非法关机造成软件故障。
回复

使用道具 举报

34

主题

312

帖子

1452

积分

金牌会员

Rank: 6Rank: 6

积分
1452
金钱
1140
HASS币
0
 楼主| 发表于 2022-9-16 15:44:46 | 显示全部楼层

SONOFF那个Usb有两个型号,一个是p另外一个是e,e的在代码中需要添加一行。不过我在Supervisor安装的zigbee2mqtt中怎么都启动不了,前端页面就是不显示,不知道怎么回事。单独docker里面安装zigbee2mqtt,只要配置写正确两个型号的都是可以启动的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 13:40 , Processed in 0.170535 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表