zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Upgrade 1.3.0 > 1.6.0 fails with firmware 20190109

Open tubededentifrice opened this issue 7 years ago • 15 comments

#1787 Bug Report

What happened

After upgrading from 1.3.0 to 1.6.0 (with ./update.sh), zigbee2mqtt wouldn't start. Logs can be found at https://pastebin.com/Q2RuWwJt CC2531 is on firmware 20190109 and I had it running for months perfectly fine.

After downgrading to 1.3.0 with git checkout 00ebd44; rm -rf node_modules; npm install, everything starts just fine again: https://pastebin.com/2JUKP6Hm

I haven't tried to re-flash the CC2531 while on 1.6.0, so it could really be an incompatibility issue beweek 20190109 firmware and 1.6.0. However I haven't seen any such incompatibility disclosed anywhere on the releases page.

What did you expect to happen

Painless, in-place upgrade

How to reproduce it (minimal and precise)

  • Get a CC2531 on 20190109
  • Check that everything works fine on 1.3.0
  • run ./update.sh to go to latest version
  • Check that it doesn't start anymore

Debug Info

zigbee2mqtt version: 1.3.0 to 1.6.0 CC253X firmware version: 20190109

tubededentifrice avatar Sep 15 '19 12:09 tubededentifrice

NB: Problem persists with CC2531 on 20190608 (tried on another CC I had though): https://pastebin.com/vcMeQKwN

v1.3.0 is working properly on that CC2531 with 20190608

tubededentifrice avatar Sep 15 '19 13:09 tubededentifrice

Hello, only additional info because I had the same problem. I go back to V1.5.1 and zigbee2mqtt starts now. Puhhh

Differents:

  • CC2531: CC2531_SOURCE_ROUTING_20190619
  • nuc i3

2019_09_15_V1.6-logs.txt

str3000 avatar Sep 15 '19 14:09 str3000

@tubededentifrice can you provide the log when starting with DEBUG=* npm start

Koenkk avatar Sep 15 '19 14:09 Koenkk

@Koenkk sure thing, here is one: https://pastebin.com/Mc4gEZ8v

tubededentifrice avatar Sep 15 '19 17:09 tubededentifrice

@str3000 I've tried 1.5.1 (commit #ac3b924) but I've the same problems on my install

tubededentifrice avatar Sep 15 '19 17:09 tubededentifrice

Other tests: 1.3.0 => 1.3.1: Works fine 1.3.1 => 1.4.0: Works fine 1.4.0 => 1.5.0: Works fine 1.5.0 => 1.5.1: Doesn't work So it looks like the bug was introduced in 1.5.1

EDIT: Downgraded from 1.5.1 to 1.5.0 and now it doesn't work anymore on 1.5.0... weird... mosquitto/now 1.6.4-0mosquitto1~stretch1 armhf

(running on a rpi 3b+)

tubededentifrice avatar Sep 15 '19 18:09 tubededentifrice

ac3b924 works in my environment. It seems that everything works fine. mosquitto version 1.5.8

str3000 avatar Sep 15 '19 18:09 str3000

@tubededentifrice can you check if the dev branch works properly for you? This is a zigbee-shepherd bug and I prefer not to fix any bugs there anymore (it's a waste of time because it will completely be replaced by zigbee-herdsman which is in the current dev #1888)

Koenkk avatar Sep 16 '19 18:09 Koenkk

@Koenkk indeed, the dev branch seems to be working fine, thanks a lot :) when is it "scheduled" to be GA?

tubededentifrice avatar Sep 19 '19 05:09 tubededentifrice

No ETA, first extensive testing needs to be done (as most of the zigbee2mqtt code base has been replaced/touched)

Koenkk avatar Sep 19 '19 05:09 Koenkk

FWIW confirmed that a 1.4.0 restore fixes this issue for me. /ht @tubededentifrice

jamesawebb avatar Sep 19 '19 22:09 jamesawebb

I have the same problem and falling back to 1.4.0 or Dev version doesn't solve it. My system is: CC2531: CC2531_SOURCE_ROUTING_20190619 Device: PI3B Using Docker container

negmos avatar Sep 30 '19 08:09 negmos

I am also having this issue.

EDIT: Using DEV Branch fixes the issue, seems Zigbee-Sheppard isn't working under 1.6 when upgrading, so I advise all users experiencing this issue, to install DEV branch in the interim given zigbee-herdsman will become standard as Koenkk stated.

HarrisonPace avatar Oct 02 '19 09:10 HarrisonPace

I also had the issue when upgrading from 1.3.1 to 1.6.0: zigbee2mqtt did not start, rebooted, unplugged, hit reset, copied the config again, tried the previous firmware, the default 20190608 and the source routing 20190619 firmware, nothing worked with 1.6.0 (different errors). I then upgraded to the dev branch: (in combination with the source routing 20190619 firmware) payload '{"version":"1.6.0","commit":"ba92f73" and then for the first time since the upgrade zigbee2mqtt started again and is processing messages. I'm not sure if I should stay on the dev branch with my production system, or if I could downgrade to 1.6.0 again.

andreas-bell avatar Oct 11 '19 21:10 andreas-bell

Dont worry on staying on the dev branch, this uses zigbee-herdsman (#1888) which is much better than zigbee-shepherd (zigbee2mqtt 1.6). Also this will be close to what zigbee2mqtt 1.7 will be.

Koenkk avatar Oct 11 '19 21:10 Koenkk