ioBroker.zigbee: Adapter not starting after 1.5.5 update
Updated the adapter to npm 1.5.5 and now I’m getting these errors and the adapter won’t start
`
zigbee.0 | 2021-05-20 21:44:17.590 | error | (420) Error: Error while opening serialport ‘Error: Error Resource temporarily unavailable Cannot lock port’ at Znp.<anonymous> (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herd |
---|---|---|---|
zigbee.0 | 2021-05-20 21:44:17.587 | error | (420) Failed to start Zigbee |
zigbee.0 | 2021-05-20 21:44:17.129 | info | (420) Installed Version: asgothian/ioBroker.zigbee#RawState |
zigbee.0 | 2021-05-20 21:44:17.071 | info | (420) Starting Zigbee npm … |
zigbee.0 | 2021-05-20 21:44:17.067 | info | (420) Try to reconnect. 1 attempts left |
zigbee.0 | 2021-05-20 21:44:07.063 | error | (420) TypeError: Cannot read property ‘warn’ of undefined at ZnpAdapterManager.<anonymous> (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/man |
zigbee.0 | 2021-05-20 21:44:07.060 | error | (420) Failed to start Zigbee |
zigbee.0 | 2021-05-20 21:44:05.287 | info | (420) Installed Version: asgothian/ioBroker.zigbee#RawState |
zigbee.0 | 2021-05-20 21:43:12.403 | info | (420) Starting Zigbee npm … |
zigbee.0 | 2021-05-20 21:43:11.963 | info | (420) starting. Version 1.5.5 in /opt/iobroker/node_modules/iobroker.zigbee, node: v14.17.0, js-controller: 3.2.16 |
`
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 36 (1 by maintainers)
Commits related to this issue
- Send our logger to herdsman controller https://github.com/ioBroker/ioBroker.zigbee/issues/1105 — committed to ioBroker/ioBroker.zigbee by kirovilya 3 years ago
Thank you for the detailed breakdown.
Just to clarify. When i mentioned “keep the changes and reprovision the network” in my post above this implied that all components need to be paired again to the new network. I do not currently see an option for an automatic network parameter change.
A.
This is not a sensible option. The user should have the option to change the network parameters if desired. Else we could also do the same for channel and PanID, which, if changed on an existing network will currently generate a similar error message.
What is considered is to not throw the adapter in a startup loop but generate a message for the user offering one of 2 choices:
When the adapter is initially installed, the ext-pan ID needs to be set by the adapter configuration. Without this, the herdsman would always use DDDDDDDDDDDDDDDD as extPanID, which can cause issues when running multiple instances.
The entire issue with reversed pan ID’s is caused by a refactoring which was done in the Herdsman about 2 weeks ago. It seems (even though this cannot be certain at this point) that a bug in this refactoring caused the entry to be reversed at some point. The entire method of checking extPanId vs a stored extPanId is also a new addition in the Herdsman as a result of this refactoring.
Unfortunately, the text in the error messages may cause confusion when considering the iobroker.zigbee Adapter, as “configured” refers to the entries made in the iobroker.zigbee Adapter configuration, while “adapter” entry refer to the ExtPanID stored in the backup of the zigbee network configuration. This does match the result from your network sniffer. This PanID was at one time set from the zigbee Adapter, and has been used since to safeguard your zigbee network. Why this does not match the entry you had in your configuration is very hard to determine at this point.
The ExtPanID from the configuration is transferred to the zigbee-herdsman in reversed byte order. For Compatibility, this has to remain as any change on this will cause similar issues to the one you had for people updating to 1.5.5, which adds to the confusion of the error message as the “configured” PanID will have a reverse byte order to what has been entered in the zigbee Admin.
A.