Here are extracts from the errormessages:
…
root@raspberry:/opt/zigbee2mqtt# npm start
zigbee2mqtt@1.8.0 start /opt/zigbee2mqtt
node index.js
zigbee2mqtt:info 2019-12-30 11:23:33: Logging to console and directory: ‘/opt/zigbee2mqtt/data/log/2019-12-30.11-23-33’
zigbee2mqtt:error 2019-12-30 11:23:34: Refusing to start, configuration.yaml is not valid, found the following errors:
zigbee2mqtt:error 2019-12-30 11:23:34: - mqtt should have required property ‘server’
zigbee2mqtt:error 2019-12-30 11:23:34: If you don’t know how to solve this, read …zigbee2mqtt.io/configuration/configuration.html
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.8.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.8.0 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/2019-12-30T11_15_18_289Z-debug.log
yaml is very sensitive about spaces, maybe post a screenshot of your configuration.yaml. The way it is posted now it is impossible to see if there are any indentation errors.
It seems that the user is not correct. The user in the documentation (and the supplied example) assumes you run on raspbian, where the correct user is pi. I run on dietpi, and had to change the line User=pi to User=root
Hi dears, I have same problem as mentioned at first, and did all that you mentioned, but did’nt solved it. This is my text that appears:
zigbee2mqtt:info 2020-07-06 10:43:57: Logging to console and directory: ‘/opt/zigbee2mqtt/data/log/2020-07-06.10-43-57’ filename: log.txt
zigbee2mqtt:info 2020-07-06 10:43:58: Starting zigbee2mqtt version 1.14.1 (commit #7e46435)
zigbee2mqtt:info 2020-07-06 10:43:58: Starting zigbee-herdsman…
zigbee2mqtt:error 2020-07-06 10:43:58: Error while starting zigbee-herdsman
zigbee2mqtt:error 2020-07-06 10:43:58: Failed to start zigbee
zigbee2mqtt:error 2020-07-06 10:43:58: Exiting…
zigbee2mqtt:error 2020-07-06 10:43:58: Error: Error while opening serialport ‘Error: Error Resource temporarily unavailable Cannot lock port’
at Znp. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:123:32)
at Generator.next ()
at /opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:8:71
at new Promise ()
at __awaiter (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:4:12)
at SerialPort. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:121:49)
at SerialPort._error (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
at /opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.14.1 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.14.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! /home/openhabian/.npm/_logs/2020-07-06T08_43_58_928Z-debug.log
return this:
zigbee2mqtt:info 2020-07-06 11:47:15: Logging to console and directory: ‘/opt/zigbee2mqtt/data/log/2020-07-06.11-47-15’ filename: log.txt
zigbee2mqtt:info 2020-07-06 11:47:16: Starting zigbee2mqtt version 1.14.1 (commit #7e46435)
zigbee2mqtt:info 2020-07-06 11:47:16: Starting zigbee-herdsman…
zigbee2mqtt:error 2020-07-06 11:47:16: Error while starting zigbee-herdsman
zigbee2mqtt:error 2020-07-06 11:47:16: Failed to start zigbee
zigbee2mqtt:error 2020-07-06 11:47:16: Exiting…
zigbee2mqtt:error 2020-07-06 11:47:16: Error: Error while opening serialport ‘Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC__0X00124B0018E85A79-if00’
at Znp. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:123:32)
at Generator.next ()
at /opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:8:71
at new Promise ()
at __awaiter (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:4:12)
at SerialPort. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:121:49)
at SerialPort._error (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
at /opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.14.1 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.14.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! /home/openhabian/.npm/_logs/2020-07-06T09_47_16_964Z-debug.log
I can’t post more, I put here:
Changed this, an reboot, and return this:
[11:57:40] openhabian@openHABianPi:~$ cd /opt/zigbee2mqtt
[11:57:47] openhabian@openHABianPi:/opt/zigbee2mqtt$ npm start
zigbee2mqtt:info 2020-07-06 11:57:55: Logging to console and directory: ‘/opt/zigbee2mqtt/data/log/2020-07-06.11-57-55’ filename: log.txt
/opt/zigbee2mqtt/lib/extension/legacy/deviceGroupMembership.js:6
const topicRegex = new RegExp(^${settings.get().mqtt.base_topic}/bridge/device/(.+)/get_group_membership$);
^
TypeError: Cannot read property ‘base_topic’ of null
at Object. (/opt/zigbee2mqtt/lib/extension/legacy/deviceGroupMembership.js:6:54)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (/opt/zigbee2mqtt/lib/controller.js:20:40)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1178:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.14.1 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.14.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! /home/openhabian/.npm/_logs/2020-07-06T09_57_55_746Z-debug.log