Демон zigbee2mqtt завершается через несколько минут

Wiren Board 7 (AL4ZXQUT rel.wb-2307) с модулем ZigBee ПО обновлено,
Запускаю сервис командой systemctl start zigbee2mqtt, в интерфейсе переходит в состояние он-лайн, говорю пермит, ошибка 600, проверяю статус - faild.
Проверка статуса:

root@wirenboard-AL4ZXQUT:~/zigbee2mqtt/data/log/2023-09-14.15-15-54# systemctl status zigbee2mqtt
в—Џ zigbee2mqtt.service - zigbee2mqtt
     Loaded: loaded (/lib/systemd/system/zigbee2mqtt.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2023-09-14 15:17:31 UTC; 19h ago
    Process: 28963 ExecStart=/usr/bin/npm start (code=exited, status=1/FAILURE)
   Main PID: 28963 (code=exited, status=1/FAILURE)
        CPU: 27.937s

Warning: journal has been rotated since unit was started, output may be incomplete.

Настройки устройства (frontend пробовал убирать, он не работает):

permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://localhost
serial:
  port: /dev/ttyMOD4
advanced:
  rtscts: false
  last_seen: epoch
  pan_id: 20498
  network_key:
    - 209
    - 47
    - 155
    - 206
    - 200
    - 93
    - 194
    - 205
    - 118
    - 193
    - 103
    - 85
    - 157
    - 103
    - 214
    - 21
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
device_options:
  legacy: false
frontend:
  port: 8042
  host: 192.168.0.86

Содержимое лог файла /root/zigbee2mqtt/data/log/2023-09-14.15-15-54/log.txt

info  2023-09-14 15:15:55: Logging to console and directory: '/mnt/data/root/zigbee2mqtt/data/log/2023-09-14.15-15-54' filename: log.txt
info  2023-09-14 15:15:55: Starting Zigbee2MQTT version 1.32.2 (commit #1ec1e572)
info  2023-09-14 15:15:55: Starting zigbee-herdsman (0.17.2)
error 2023-09-14 15:16:00: Configuration is not consistent with adapter state/backup!
error 2023-09-14 15:16:00: - PAN ID: configured=20498, adapter=47091
error 2023-09-14 15:16:00: - Extended PAN ID: configured=00124b002a2e395c, adapter=00124b002a2e395c
error 2023-09-14 15:16:00: - Network Key: configured=d12f9bcec85dc2cd76c167559d67d615, adapter=7d5aa2f5c791afc70bd25f99aca60436
error 2023-09-14 15:16:00: - Channel List: configured=11, adapter=11
error 2023-09-14 15:16:00: Please update configuration to prevent further issues.
error 2023-09-14 15:16:00: If you wish to re-commission your network, please remove coordinator backup at /mnt/data/root/zigbee2mqtt/data/coordinator_backup.json.
error 2023-09-14 15:16:00: Re-commissioning your network will require re-pairing of all devices!
error 2023-09-14 15:16:00: Error while starting zigbee-herdsman
error 2023-09-14 15:16:00: Failed to start zigbee
error 2023-09-14 15:16:00: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
error 2023-09-14 15:16:00: Exiting...
error 2023-09-14 15:16:00: Error: startup failed - configuration-adapter mismatch - see logs above for more information
    at ZnpAdapterManager.determineStrategy (/mnt/data/root/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:229:35)
    at ZnpAdapterManager.start (/mnt/data/root/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:63:26)
    at Controller.start (/mnt/data/root/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
    at Zigbee.start (/mnt/data/root/zigbee2mqtt/lib/zigbee.ts:59:27)
    at Controller.start (/mnt/data/root/zigbee2mqtt/lib/controller.ts:101:27)
    at start (/mnt/data/root/zigbee2mqtt/index.js:107:5)

Подскажите какие шаги выполнить, чтобы разобраться с проблемой?

Добрый день.
Обратите внимание:

error 2023-09-14 15:16:00: Configuration is not consistent with adapter state/backup!
error 2023-09-14 15:16:00: - PAN ID: configured=20498, adapter=47091
error 2023-09-14 15:16:00: - Extended PAN ID: configured=00124b002a2e395c, adapter=00124b002a2e395c
error 2023-09-14 15:16:00: - Network Key: configured=d12f9bcec85dc2cd76c167559d67d615, adapter=7d5aa2f5c791afc70bd25f99aca60436
error 2023-09-14 15:16:00: - Channel List: configured=11, adapter=11
error 2023-09-14 15:16:00: Please update configuration to prevent further issues.

Вы пытаетесь запустить концентратор с отличающимися от присутствующих в конфиге параметрами.
Тут от цели зависит, можно удалить бэкап и получить концентратор с другим ID, можно восстановить.

Да, спасибо. Невнимательно ранее прочёл указанный вами пост.
Удалил coordinator_backup.json и всё заработало.

Но датчик ни в какую подключаться не хочет и в логе ничего не вижу:

|15-09-2023 23:16:00.851|Zigbee2MQTT:info  2023-09-15 15:16:00: MQTT publish: topic 'zigbee2mqtt/bridge/response/networkmap', payload '{data:{routes:false,type:raw,value:{links:[],nodes:[{definition:null,failed:[],friendlyName:Coordinator,ieeeAddr:0x00124b002a2e395c,lastSeen:null,networkAddress:0,type:Coordinator}]}},status:ok,transaction:42fwf-3}'|
|---|---|
|15-09-2023 23:16:00.844|Zigbee2MQTT:info  2023-09-15 15:16:00: Network scan finished|
|15-09-2023 23:15:59.831|Zigbee2MQTT:info  2023-09-15 15:15:59: Starting network scan (includeRoutes 'false')|
|15-09-2023 23:14:35.401|Zigbee2MQTT:info  2023-09-15 15:14:35: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{data:{value:false},status:ok}'|
|15-09-2023 23:14:35.143|Zigbee2MQTT:info  2023-09-15 15:14:35: Zigbee: disabling joining new devices.|
|15-09-2023 23:14:31.306|Zigbee2MQTT:info  2023-09-15 15:14:31: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{data:{value:true},status:ok}'|
|15-09-2023 23:14:31.049|Zigbee2MQTT:info  2023-09-15 15:14:31: Zigbee: allowing new devices to join.|
|15-09-2023 23:14:18.395|Zigbee2MQTT:info  2023-09-15 15:14:18: MQTT publish: topic 'zigbee2mqtt/bridge/response/options', payload '{data:{restart_required:false},status:ok,transaction:42fwf-2}'|
|15-09-2023 23:14:18.381|Zigbee2MQTT:info  2023-09-15 15:14:18: Successfully changed options|
|15-09-2023 23:14:18.100|Zigbee2MQTT:info  2023-09-15 15:14:18: Zigbee: disabling joining new devices.|
|15-09-2023 23:14:18.100|Zigbee2MQTT:info  2023-09-15 15:14:18: Zigbee: disabling joining new devices.|
|15-09-2023 23:14:00.508|Zigbee2MQTT:info  2023-09-15 15:14:00: MQTT publish: topic 'zigbee2mqtt/bridge/response/networkmap', payload '{data:{routes:false,type:raw,value:{links:[],nodes:[{definition:null,failed:[],friendlyName:Coordinator,ieeeAddr:0x00124b002a2e395c,lastSeen:null,networkAddress:0,type:Coordinator}]}},status:ok,transaction:42fwf-1}'|
|15-09-2023 23:14:00.494|Zigbee2MQTT:info  2023-09-15 15:14:00: Network scan finished|
|15-09-2023 23:13:59.471|Zigbee2MQTT:info  2023-09-15 15:13:59: Starting network scan (includeRoutes 'false')|
|15-09-2023 23:12:31.021|Zigbee2MQTT:info  2023-09-15 15:12:31: Zigbee2MQTT started!|
|15-09-2023 23:12:31.014|Zigbee2MQTT:info  2023-09-15 15:12:31: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{state:online}'|
|15-09-2023 23:12:31.001|Zigbee2MQTT:info  2023-09-15 15:12:31: Started frontend on port 192.168.0.86:8042|
|15-09-2023 23:12:30.754|Zigbee2MQTT:info  2023-09-15 15:12:30: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{state:online}'|
|15-09-2023 23:12:30.748|Zigbee2MQTT:info  2023-09-15 15:12:30: Connected to MQTT server|
|15-09-2023 23:12:30.378|Zigbee2MQTT:info  2023-09-15 15:12:30: Connecting to MQTT server at mqtt://localhost|
|15-09-2023 23:12:30.378|Zigbee2MQTT:info  2023-09-15 15:12:30: Connecting to MQTT server at mqtt://localhost|
|15-09-2023 23:12:30.140|Zigbee2MQTT:info  2023-09-15 15:12:30: Zigbee: allowing new devices to join.|
|15-09-2023 23:12:30.134|Zigbee2MQTT:warn  2023-09-15 15:12:30: Set `permit_join` to `false` once you joined all devices.|
|15-09-2023 23:12:30.131|Zigbee2MQTT:warn  2023-09-15 15:12:30: Allowing new devices to join.|
|15-09-2023 23:12:30.131|Zigbee2MQTT:warn  2023-09-15 15:12:30: `permit_join` set to  `true` in configuration.yaml.|
|15-09-2023 23:12:30.123|Zigbee2MQTT:info  2023-09-15 15:12:30: Currently 0 devices are joined:|
|15-09-2023 23:12:30.106|Zigbee2MQTT:info  2023-09-15 15:12:30: Coordinator firmware version: '{meta:{maintrel:1,majorrel:2,minorrel:7,product:1,revision:20220219,transportrev:2},type:zStack3x0}'|
|15-09-2023 23:12:30.098|Zigbee2MQTT:info  2023-09-15 15:12:30: zigbee-herdsman started (resumed)|
|15-09-2023 23:12:24.723|Zigbee2MQTT:info  2023-09-15 15:12:24: Starting zigbee-herdsman (0.17.2)|
|15-09-2023 23:12:24.710|Zigbee2MQTT:info  2023-09-15 15:12:24: Starting Zigbee2MQTT version 1.32.2 (commit #1ec1e572)|
|15-09-2023 23:12:24.710|Zigbee2MQTT:info  2023-09-15 15:12:24: Starting Zigbee2MQTT version 1.32.2 (commit #1ec1e572)|
|15-09-2023 23:12:24.608|Zigbee2MQTT:info  2023-09-15 15:12:24: Logging to console and directory: '/mnt/data/root/zigbee2mqtt/data/log/2023-09-15.15-12-24' filename: log.txt|
|15-09-2023 23:12:10.490|> node index.js|
|15-09-2023 23:12:10.490|> zigbee2mqtt@1.32.2 start|

Как описан датчик в конфиге?
Ну и - если его удалить и снова связать - что в логе?

Спасибо за правильные вопросы, внимательное прочтение инструкции выявило проблему - на датчике не была нажата кнопка pair. Спасибо, тему можно закрывать.

1 Like

Эта тема была автоматически закрыта через 7 дней после последнего ответа. В ней больше нельзя отвечать.