Hello,
I have the following setup:
- Raspberry Pi 3 - Hasbian 10.1
- Class 10 SD Card (16Gb) - currently is 80% free
- A CC2531 as coordinator attached to the Pi3 (it was flashed a while ago, so I dont know the firmware version)
- PI3 is running z2m only
- My mosquitto is installed in a CentOS 7 at a Apple MacMini
- 5 Aqara sensors (WSDCGQ11LM)
Everything is working with the current sensors that Homeassistant has already found and recognized as you can see from one extracted line from the log.
Dec 08 18:43:10 zigbee2mqtt npm[852]: zigbee2mqtt:info 2019-12-08T18:43:10: MQTT publish: topic ‘homeassistant/sensor/0x00158d00025f0398/temperature/config’, payload ‘{“unit_of_measurement”:“°C”,“device_class”:“temperature”,“value_template”:"{{ value_json.temperature }}",“state_topic”:“zigbee2mqtt/TVRoom”,“json_attributes_topic”:“zigbee2mqtt/TVRoom”,“name”:“TVRoom_temperature”,“unique_id”:“0x00158d00025f0398_temperature_zigbee2mqtt”,“device”:{“identifiers”:[“zigbee2mqtt_0x00158d00025f0398”],“name”:“TVRoom”,“sw_version”:“Zigbee2mqtt 1.7.1”,“model”:“Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)”,“manufacturer”:“Xiaomi”},“availability_topic”:“zigbee2mqtt/bridge/state”}’
When I try to add an additional sensor, I immediately get this error loop:
Dec 08 18:43:48 zigbee2mqtt npm[852]: zigbee2mqtt:warn 2019-12-08T18:43:48: Device ‘0x00158d0002e94cd8’ left the network
Dec 08 18:43:48 zigbee2mqtt npm[852]: zigbee2mqtt:info 2019-12-08T18:43:48: MQTT publish: topic ‘zigbee2mqtt/bridge/log’, payload ‘{“type”:“device_removed”,“message”:“left_network”,“meta”:{“friendly_name”:“0x00158d0002e94cd8”}}’
Dec 08 18:43:49 zigbee2mqtt npm[852]: zigbee2mqtt:error 2019-12-08T18:43:49: Adapter disconnected, stopping
Dec 08 18:43:49 zigbee2mqtt npm[852]: zigbee2mqtt:info 2019-12-08T18:43:49: MQTT publish: topic ‘zigbee2mqtt/bridge/state’, payload ‘offline’
Dec 08 18:43:49 zigbee2mqtt npm[852]: zigbee2mqtt:info 2019-12-08T18:43:49: Disconnecting from MQTT server
Dec 08 18:43:49 zigbee2mqtt npm[852]: zigbee2mqtt:error 2019-12-08T18:43:49: Failed to stop zigbee
Dec 08 18:43:49 zigbee2mqtt npm[852]: npm ERR! code ELIFECYCLE
Dec 08 18:43:49 zigbee2mqtt npm[852]: npm ERR! errno 1
Dec 08 18:43:49 zigbee2mqtt npm[852]: npm ERR! zigbee2mqtt@1.7.1 start: node index.js
Dec 08 18:43:49 zigbee2mqtt npm[852]: npm ERR! Exit status 1
Dec 08 18:43:49 zigbee2mqtt npm[852]: npm ERR!
Dec 08 18:43:49 zigbee2mqtt npm[852]: npm ERR! Failed at the zigbee2mqtt@1.7.1 start script.
Dec 08 18:43:49 zigbee2mqtt npm[852]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Dec 08 18:43:49 zigbee2mqtt npm[852]: npm ERR! A complete log of this run can be found in:
Dec 08 18:43:49 zigbee2mqtt npm[852]: npm ERR! /home/pi/.npm/_logs/2019-12-08T18_43_49_176Z-debug.log
Dec 08 18:43:49 zigbee2mqtt systemd[1]: zigbee2mqtt.service: Main process exited, code=exited, status=1/FAILURE
Dec 08 18:43:49 zigbee2mqtt systemd[1]: zigbee2mqtt.service: Failed with result ‘exit-code’.
Dec 08 18:43:49 zigbee2mqtt systemd[1]: zigbee2mqtt.service: Service RestartSec=100ms expired, scheduling restart.
Dec 08 18:43:49 zigbee2mqtt systemd[1]: zigbee2mqtt.service: Scheduled restart job, restart counter is at 1.
Dec 08 18:43:49 zigbee2mqtt systemd[1]: Stopped zigbee2mqtt.
Dec 08 18:43:49 zigbee2mqtt systemd[1]: Started zigbee2mqtt.
Dec 08 18:43:50 zigbee2mqtt npm[897]: > zigbee2mqtt@1.7.1 start /opt/zigbee2mqtt
Dec 08 18:43:50 zigbee2mqtt npm[897]: > node index.js
Dec 08 18:43:53 zigbee2mqtt npm[897]: zigbee2mqtt:info 2019-12-08T18:43:53: Logging to directory: ‘/opt/zigbee2mqtt/data/log/2019-12-08.18-43-52’
Dec 08 18:43:53 zigbee2mqtt npm[897]: zigbee2mqtt:info 2019-12-08T18:43:53: Starting zigbee2mqtt version 1.7.1 (commit #b459c35)
Dec 08 18:43:53 zigbee2mqtt npm[897]: zigbee2mqtt:info 2019-12-08T18:43:53: Starting zigbee-herdsman…
Dec 08 18:43:53 zigbee2mqtt npm[897]: zigbee2mqtt:error 2019-12-08T18:43:53: Error while starting zigbee-herdsman
Here is the dump file extract:
pi@zigbee2mqtt:~ $ vi /home/pi/.npm/_logs/2019-12-08T18_44_45_218Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’ ]
2 info using npm@6.11.3
3 info using node@v10.17.0
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle zigbee2mqtt@1.7.1~prestart: zigbee2mqtt@1.7.1
6 info lifecycle zigbee2mqtt@1.7.1~start: zigbee2mqtt@1.7.1
7 verbose lifecycle zigbee2mqtt@1.7.1~start: unsafe-perm in lifecycle true
8 verbose lifecycle zigbee2mqtt@1.7.1~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/zigbee2mqtt/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9 verbose lifecycle zigbee2mqtt@1.7.1~start: CWD: /opt/zigbee2mqtt
10 silly lifecycle zigbee2mqtt@1.7.1~start: Args: [ ‘-c’, ‘node index.js’ ]
11 silly lifecycle zigbee2mqtt@1.7.1~start: Returned: code: 1 signal: null
12 info lifecycle zigbee2mqtt@1.7.1~start: Failed to exec start script
13 verbose stack Error: zigbee2mqtt@1.7.1 start: node index.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:198:13)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:198:13)
13 verbose stack at maybeClose (internal/child_process.js:982:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid zigbee2mqtt@1.7.1
15 verbose cwd /opt/zigbee2mqtt
16 verbose Linux 4.19.75-v7+
17 verbose argv “/usr/bin/node” “/usr/bin/npm” “start”
18 verbose node v10.17.0
19 verbose npm v6.11.3
20 error code ELIFECYCLE
21 error errno 1
22 error zigbee2mqtt@1.7.1 start: node index.js
22 error Exit status 1
23 error Failed at the zigbee2mqtt@1.7.1 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
What am I doing wrong?
Thanks
Kript Digger