friendly_name shoud atleast be 1 char long
ERR! code ELIFECYCLE
npm
ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/2021-02-03T07_32_21_236Z-debug.log
2021-02-03T08:32:23: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]
2021-02-03T08:32:23: PM2 log: App [npm:0] starting in -fork mode-
2021-02-03T08:32:23: PM2 log: App [npm:0] online
[email protected] start /zigbee2mqtt-1.17.1 node index.js !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! READ THIS CAREFULLY Refusing to start because configuration is not valid, found the following errors:
- friendly_name shoud atleast be 1 char long
If you don't know how to solve this, read https://www.zigbee2mqtt.io/information/configuration.html
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
npm
ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR!
[email protected] start:
node index.jsnpm ERR! Exit status 1
What happened
Zigbee2mqtt just stopped working...
What did you expect to happen
Everytime
How to reproduce it (minimal and precise)
Just upgrading to 17.1
Debug info
Zigbee2MQTT version: Adapter hardware: CC2531 Adapter firmware version: 1.17.1
I have no friendly names on my configuration in the addon in home assistant... Not sure what to change
same issue here
Check groups.yaml
Check groups.yaml
This one is empty, no groups
Same issue here! Groups.yaml is empty. Friendly name is not used.
The friendly_name is required. Can you share your configuration.yaml?
I had a line in the groups.yaml file with friendly_name: ' ' I removed this and the addon started. The fil was here Share\zigbee2mqtt
I had a line in the groups.yaml file with friendly_name: ' ' I removed this and the addon started.
Now it works for me, I did the same.
The
friendly_nameis required. Can you share yourconfiguration.yaml?
I checked config/groups.yaml, it was empty. Then I checked the groups.yaml in the folder share/zigbee2mqtt and removed the following:
'1':
friendly_name: ''
Then I restarted the the addon and got the following error:
Zigbee2MQTT:info 2021-02-03 20:28:37: Starting Zigbee2MQTT version 1.17.1 (commit #1.17.1)
Zigbee2MQTT:info 2021-02-03 20:28:37: Starting zigbee-herdsman (0.13.59)
Zigbee2MQTT:error 2021-02-03 20:28:57: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-02-03 20:28:57: Failed to start zigbee
Zigbee2MQTT:error 2021-02-03 20:28:57: Exiting...
Zigbee2MQTT:error 2021-02-03 20:28:57: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.<anonymous> (/zigbee2mqtt-1.17.1/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
at Generator.throw (<anonymous>)
at rejected (/zigbee2mqtt-1.17.1/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm
Update: I read in issue 5842 to change the USB to another port. And now it works again! I'm happy!! Thanks @Koenkk and @mgrefsrud for your support and helping me out!
The
friendly_nameis required. Can you share yourconfiguration.yaml?I checked config/groups.yaml, it was empty. Then I checked the groups.yaml in the folder share/zigbee2mqtt and removed the following:
'1': friendly_name: ''Then I restarted the the addon and got the following error:
Zigbee2MQTT:info 2021-02-03 20:28:37: Starting Zigbee2MQTT version 1.17.1 (commit #1.17.1) Zigbee2MQTT:info 2021-02-03 20:28:37: Starting zigbee-herdsman (0.13.59) Zigbee2MQTT:error 2021-02-03 20:28:57: Error while starting zigbee-herdsman Zigbee2MQTT:error 2021-02-03 20:28:57: Failed to start zigbee Zigbee2MQTT:error 2021-02-03 20:28:57: Exiting... Zigbee2MQTT:error 2021-02-03 20:28:57: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms) at ZStackAdapter.<anonymous> (/zigbee2mqtt-1.17.1/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31) at Generator.throw (<anonymous>) at rejected (/zigbee2mqtt-1.17.1/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65) npmUpdate: I read in issue 5842 to change the USB to another port. And now it works again! I'm happy!! Thanks @Koenkk and @mgrefsrud for your support and helping me out!
I did the same as above and the error indeed changed to the below message. After changing the zigate to another usb port, the problem remains...
Zigbee2MQTT:error 2021-02-03 21:53:12: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-02-03 21:53:12: Failed to start zigbee
Zigbee2MQTT:error 2021-02-03 21:53:12: Exiting...
Zigbee2MQTT:error 2021-02-03 21:53:12: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.
ERR! code ELIFECYCLE npm ERR! errno 1 npm
ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/2021-02-03T20_53_12_920Z-debug.log
2021-02-03T21:53:13: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]
UPDATE: of course, while troubleshooting I put the configuration back to default but forgot to put back the ‘adapter:zigate’ under serial. Put it back and everything works again! Thanks for the help :)
I found out that the Zigbee2MQTT api allowed to add groups with an empty name, once done this error will be thrown on startup. I've fixed the api to not allow this anymore.