Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Router pairing issue - "TypeError: Cannot read property" #1774

Closed
szporwolik opened this issue Jul 24, 2019 · 5 comments
Closed

Router pairing issue - "TypeError: Cannot read property" #1774

szporwolik opened this issue Jul 24, 2019 · 5 comments

Comments

@szporwolik
Copy link

Bug Report

Pairing a router Ikea Trådfri outlet is a reason that zigbee2mqtt cannot start.

What happened

After pairing with the router, I cannot start zigbee2mqtt anymore.

What did you expect to happen

zigbee2mqtt working started and working

How to reproduce it (minimal and precise)

I have zigbee2mqtt runing inside docker at Synology NAS; containter was created using:
sudo docker run -it -v /volume1/docker/zigbee2mqtt/:/app/data --device=/dev/ttyACM0 --privileged koenkk/zigbee2mqtt:latest

After creating a clean container everything works fine - zigbee shepard is started and I can start pairing devices.
While pairing metioned Ikea outlet (It happened with CC2531 router as well) everything looks fine untill, but the following error comes:
TypeError: Cannot read property 'size' of null
Full log: https://pastebin.com/NVuQAgqe

Next I'm not able to start the containter anymore: https://pastebin.com/dr35YNgB

configuration.yaml https://pastebin.com/UUeEZiwg
database.db https://pastebin.com/kwhArLnb
state.json https://pastebin.com/p2icHWih

The only way to fix is to complete clean image/files and repair again (then situation repeats).

Debug Info

zigbee2mqtt version: 1.5.1
CC2531 firmware version: CC2531_DEFAULT_20190608.zip

@szporwolik
Copy link
Author

Update: pairing with IKEA router generate similar issue https://pastebin.com/uY1nxNEH

@szporwolik
Copy link
Author

Repairing log (with clean database.db, otherwise it does not start) with DEBUG: https://pastebin.com/PGmjrQK0

@Koenkk
Copy link
Owner

Koenkk commented Jul 26, 2019

Your configuration.yaml defines whitelist: null, change it to whitelist: [] or remove it completely.

@szporwolik
Copy link
Author

szporwolik commented Jul 26, 2019

Hello , thank you @Koenkk - yes, I can confirmed, this was the configuration issue. Thank you for information.

What is happeing, if someone will put the lines:

whitelist:
blacklist:

during execution those lines are replaced with "whitelist: null"; with such change zigbee2mqtt is not starting after restart.

It's not a big issue, but as in example HA is OK with putting empty nodes I would consider this to be a bug/feature request, so nobody will have similar troubles like myself.

Anyhow, my case is closed - thank you! 👍

@Koenkk
Copy link
Owner

Koenkk commented Jul 27, 2019

Will be set to empty array when null now, thanks!

@Koenkk Koenkk closed this as completed Jul 27, 2019
wilmardo pushed a commit to wilmardo/zigbee2mqtt that referenced this issue Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants