zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

friendly_name shoud atleast be 1 char long

Open mabusdogma opened this issue 5 years ago • 11 comments

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.js npm 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

mabusdogma avatar Feb 03 '21 07:02 mabusdogma

I have no friendly names on my configuration in the addon in home assistant... Not sure what to change

mabusdogma avatar Feb 03 '21 07:02 mabusdogma

same issue here

skipper79 avatar Feb 03 '21 12:02 skipper79

Check groups.yaml

mgrefsrud avatar Feb 03 '21 13:02 mgrefsrud

Check groups.yaml

This one is empty, no groups

skipper79 avatar Feb 03 '21 14:02 skipper79

Same issue here! Groups.yaml is empty. Friendly name is not used.

TheLama1993 avatar Feb 03 '21 16:02 TheLama1993

The friendly_name is required. Can you share your configuration.yaml?

Koenkk avatar Feb 03 '21 17:02 Koenkk

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

mgrefsrud avatar Feb 03 '21 17:02 mgrefsrud

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.

mabusdogma avatar Feb 03 '21 18:02 mabusdogma

The friendly_name is required. Can you share your configuration.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!

skipper79 avatar Feb 03 '21 18:02 skipper79

The friendly_name is required. Can you share your configuration.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!

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. (/zigbee2mqtt-1.17.1/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31) at Generator.throw () at rejected (/zigbee2mqtt-1.17.1/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65) npm

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 :)

TheLama1993 avatar Feb 03 '21 20:02 TheLama1993

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.

Koenkk avatar Feb 04 '21 17:02 Koenkk