-
Notifications
You must be signed in to change notification settings - Fork 15
Node-Red in Docker. After restarting all paired devices are gone. #143
Comments
Most likely a wrong panID or Network Key. Make sure the panID is 4 characters in HEX, e.g. 1A62 and the Network Key is 32 chars, equally in Hex. Hex means only A to F and 0 to 9 may be used. |
Hi, I've checked the panID, extPanId and networkKey, they seem correct. 27 Feb 19:46:54 - [error] [zigbee-controller:controller] TypeError: Cannot read property 'getEntries' of null Thanks |
Have you tried restarting NR completely? After changing zigbee Network parameters etc a full restart is required. Deploy / restart flow is not enough. |
Hi, Please find below the installation logs: [root@rpi3 node-red1]# docker start node-red ; docker logs -f node-red
28 Feb 12:28:25 - [info] Welcome to Node-RED28 Feb 12:28:25 - [info] Node-RED version: v1.2.9 Your flow credentials file is encrypted using a system-generated key. If the system-generated key is lost for any reason, your credentials You should set your own key using the 'credentialSecret' option in
|
Looks like dependencies of the zigbee-node are not correctly installed. You need to provide full nodejs and (iirc) Python 2 in your Docker env. |
I use the latest official node-red image, the nodered/node-red:latest. |
I have no experience running it in docker: The path where the zigbee-node saves its device database If you want to start fresh:
|
Hi, |
It surely is not a common problem. I run an installation with Rasperrymatic since over 1 year with countless reboots. I had instances where my paired devices where gone but it was always my fault, e.g. switching coordinator, wrong network settings etc. We also had some reports here and all where user / installation topics. |
Attach your dev.db file here:
|
Hi, {"id":1,"type":"Coordinator","ieeeAddr":"0x00124b000be8a559","nwkAddr":0,"manufId":0,"epList":[242,47,13,12,110,11,10,8,6,5,4,3,2,1],"endpoints":{"1":{"profId":260,"epId":1,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"2":{"profId":257,"epId":2,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"3":{"profId":261,"epId":3,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"4":{"profId":263,"epId":4,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"5":{"profId":264,"epId":5,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"6":{"profId":265,"epId":6,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"8":{"profId":260,"epId":8,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"10":{"profId":260,"epId":10,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"11":{"profId":260,"epId":11,"devId":1024,"inClusterList":[1281],"outClusterList":[1280,1282],"clusters":{},"binds":[],"meta":{}},"12":{"profId":49246,"epId":12,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"13":{"profId":260,"epId":13,"devId":5,"inClusterList":[25],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"47":{"profId":260,"epId":47,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"110":{"profId":260,"epId":110,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}},"242":{"profId":41440,"epId":242,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"meta":{}}},"interviewCompleted":true,"meta":{"name":"Coordinator","isCoordinator":true,"version":"2.6.3","revision":20190608,"type":"zStack12"},"lastSeen":null} |
Hi, My system: Update: dev.db without the device dev.db with the 2nd device: |
Hi, Also, in the sherpherd.js row 576 there is:
but the herdsmanOptions structure doesn't contain the sp attribute. Thanks again for your work. |
Hi, Unfortunately, when the inject is fired, the database in the Zigbee herdsman module has not been injected yet (because the start() returns a promise and it has not been executed yet) (around row 120 in controller.ts of zigbee-herdsman module). Because of this, the loadFromDatabaseIfNecessary function in model/device.ts of zigbee-herdsman module try to call
but Entity.database is null, and goes in error, but Device.devices has been initialized, and never again the Entity.database.getEntries is called. Below some logs, modified to find the problem: Welcome to Node-RED2 Mar 10:23:13 - [info] Node-RED version: v1.2.9 |
Hi, [{"id":"ced4c81a.d9c328","type":"inject","z":"797754e1.399a9c","name":"getDevices","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"2","topic":"getDevices","payload":"","payloadType":"str","x":370,"y":140,"wires":[["319f5b0d.4798c4"]]},{"id":"319f5b0d.4798c4","type":"zigbee-controller","z":"797754e1.399a9c","shepherd":"","name":"controller","x":560,"y":140,"wires":[[]]}] Thanks |
First of all, thank you for your great work.
I'm using Node-Red in Docker in archlinuxarm. After restarting the docker image using the "docker restart node-red" command all paired devices are gone.
Is there some check I can perform to understand what's happening?
Thanks
The text was updated successfully, but these errors were encountered: