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

1.18.0 won't start with Slaesh's CC2652RB: "Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)" #6517

Closed
m0wlheld opened this issue Mar 1, 2021 · 90 comments
Labels
problem Something isn't working

Comments

@m0wlheld
Copy link

m0wlheld commented Mar 1, 2021

What happened

Just switched from Zigbee2MQTT 1.17.1 (koenkk/zigbee2mqtt:1.17.1) to 1.18.0 (koenkk/zigbee2mqtt:latest) and now Zigbee2MQTT won't start any more (see below). Configuration remained unchanged.

Zigbee2MQTT:info  2021-03-01 22:42:12: Logging to console only'
Zigbee2MQTT:info  2021-03-01 22:42:12: Starting Zigbee2MQTT version 1.18.0 (commit #3fd6619)
Zigbee2MQTT:info  2021-03-01 22:42:12: Starting zigbee-herdsman (0.13.72)
Zigbee2MQTT:error 2021-03-01 22:42:33: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-03-01 22:42:33: Failed to start zigbee
Zigbee2MQTT:error 2021-03-01 22:42:33: Exiting...
Zigbee2MQTT:error 2021-03-01 22:42:33: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
    at Generator.throw (<anonymous>)
    at rejected (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.18.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.18.0 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-03-01T21_42_33_282Z-debug.log

What did you expect to happen

I expected Z2M to start.

How to reproduce it (minimal and precise)

My configuration (network key changed):

advanced:
  channel: 11
  homeassistant_legacy_triggers: false
  legacy_api: false
  log_level: info
  log_output:
    - console
  network_key: GENERATE
  pan_id: GENERATE
homeassistant: true
mqtt:
  base_topic: zigbee2mqtt
  server: 'mqtt://mqtt'
  user: zigbee2mqtt
  password: *************
permit_join: false
serial:
  port: /dev/ttyACM0
devices: devices.yaml
groups: groups.yaml

Service definition in docker-compose file:

version: '2'
services:
  zigbee2mqtt:
    container_name: zigbee2mqtt
    depends_on:
      - mqtt
    devices:
      - /dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_21_CC_44_12-if00-port0:/dev/ttyACM0
    environment:
      - TZ=Europe/Berlin
    image: koenkk/zigbee2mqtt:latest
    restart: always
    volumes:
      - /srv/zigbee2mqtt/zigbee2mqtt-volume:/app/data

Debug info

Zigbee2MQTT version: 1.18.0 (official Docker image)
Adapter hardware: CC26X2R1 (slae'sh CC2652)
Adapter firmware version: 20210120

@nstadigs
Copy link

nstadigs commented Mar 1, 2021

I'm having the same problem with the same zigbee stick and docker-compose setup

@CSchlipp
Copy link

CSchlipp commented Mar 1, 2021

Thanks for creating a new issue for this!

There are several others reporting the same on an older (closed) issue: #2997 (comment)

@m0wlheld
Copy link
Author

m0wlheld commented Mar 1, 2021

Additional info: The reported error has been observed on a Raspberry Pi 3B+ with Slae'sh CC2652RB USB stick (on extension cable, of course). However, version 1.18.0 works fine on my 2nd system, a Raspberry Pi 4 with Raspbee II add-on card.

zigbee2mqtt   | Zigbee2MQTT:info  2021-03-01 23:18:39: Logging to console only'
zigbee2mqtt   | Zigbee2MQTT:info  2021-03-01 23:18:39: Starting Zigbee2MQTT version 1.18.0 (commit #3fd6619)
zigbee2mqtt   | Zigbee2MQTT:info  2021-03-01 23:18:39: Starting zigbee-herdsman (0.13.72)
zigbee2mqtt   | CREATED DECONZ ADAPTER
zigbee2mqtt   | Zigbee2MQTT:info  2021-03-01 23:18:39: zigbee-herdsman started
zigbee2mqtt   | Zigbee2MQTT:info  2021-03-01 23:18:39: Coordinator firmware version: '{"meta":{"maintrel":0,"majorrel":38,"minorrel":105,"product":0,"revision":"0x26690700","transportrev":0},"type":"ConBee2/RaspBee2"}'
zigbee2mqtt   | Zigbee2MQTT:info  2021-03-01 23:18:39: Currently 40 devices are joined:

So it could be limited to CC2562RB, the zStack-Firmware or USB devices. Infact, most (if not all) of the older issue reports are related to CC2652R devices.

@CSchlipp
Copy link

CSchlipp commented Mar 1, 2021

I'm on the same setting (slae'sh CC2652 & official Docker Image).

For me, it broke with yesterdays release of the dev image, same for todays 1.18 release.
Rolling back to 1.17.1 always brought z2m back to life.

@m0wlheld
Copy link
Author

m0wlheld commented Mar 1, 2021

@CSchlipp Did it work with -dev images before yesterday and you have the commit ID of the last working version?

@CSchlipp
Copy link

CSchlipp commented Mar 1, 2021

@CSchlipp Did it work with -dev images before yesterday and you have the commit ID of the last working version?

Yes, it did. The last dev-image running successfully was: Zigbee2MQTT version 1.17.1-dev (commit #1ddd2ac) (latest-dev as of 2021-02-28 04:20:07)

The first version that threw this error was Zigbee2MQTT version 1.17.1-dev (commit #57165e3) (latest-dev as of 2021-03-01 04:18:20)

@nstadigs
Copy link

nstadigs commented Mar 1, 2021

Looks like zigbee-herdsman was updated which updated a dependency "serialport" (sounds like it could have something to do with this) one patch version. Looking into the changes in "serialport" if I can find anything that could have caused this...

@shirou93
Copy link

shirou93 commented Mar 1, 2021

same issue slae'sh CC2652

@nstadigs
Copy link

nstadigs commented Mar 1, 2021

I'm going to sleep. One thing to try would be to downgrade zigbee-herdsman to see if that solves the issue.

@m0wlheld
Copy link
Author

m0wlheld commented Mar 2, 2021

@CSchlipp Did it work with -dev images before yesterday and you have the commit ID of the last working version?

Yes, it did. The last dev-image running successfully was: Zigbee2MQTT version 1.17.1-dev (commit #1ddd2ac) (latest-dev as of 2021-02-28 04:20:07)

The first version that threw this error was Zigbee2MQTT version 1.17.1-dev (commit #57165e3) (latest-dev as of 2021-03-01 04:18:20)

That‘s an important information, so the bug must have been introduced with latest 1.17.1-dev/1.18.0 version.

Looks like zigbee-herdsman was updated which updated a dependency "serialport" (sounds like it could have something to do with this) one patch version. Looking into the changes in "serialport" if I can find anything that could have caused this...

Can you link the commit that introduced the change?

@Dylantje
Copy link

Dylantje commented Mar 2, 2021

here also the same error..[ stupid to upgrade withouth looking here ]

Is there a way to downgrade?
Or hope @Koenkk there will be a patch.

@liambrugaro
Copy link

Hello everybody,

Same issue for me. I've downgraded with those commands :

cd /opt/zigbee2mqtt
git checkout 99274c7 (find version wanted here : https://github.com/Koenkk/zigbee2mqtt/tags)
npm ci --production
Npm start
And then z2m starts 😊

@m0wlheld
Copy link
Author

m0wlheld commented Mar 2, 2021

git checkout 99274c7

Could you check, if it still works with commit 1ddd2ac (the last working version as reported by @CSchlipp)?

@d-EScape
Copy link

d-EScape commented Mar 2, 2021

Had the same issue after upgrading tot 1.18. Using slae.sh CC2652 stick. Linux on intel. Works after reverting to previous version from backup.

@f-bader
Copy link

f-bader commented Mar 2, 2021

Same issue with zigbee2mqtt@1.18.0.
Updated the coordinator to CC2652RB_coordinator_20210120 firmware with no luck.
Rollback to 1.17.1 fixed the issue

@liambrugaro
Copy link

git checkout 99274c7

Could you check, if it still works with commit 1ddd2ac (the last working version as reported by @CSchlipp)?

I'm at work, i can check at the end of the day :)

@oxivanisher
Copy link

I have the exact same problem. But only dockervavailable. @liambrugaro Can I test something with a docker based setup?

@mrTuomoK
Copy link

mrTuomoK commented Mar 2, 2021

git checkout 99274c7

Could you check, if it still works with commit 1ddd2ac (the last working version as reported by @CSchlipp)?

I can confirm this DOES NOT work. @m0wlheld & @liambrugaro (Just tested)

It does startup but things don't work properly

If it's for any help I'm also using Slaesh's CC2652RB --> usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_21_CC_41_34-if00-port0

@wimb0
Copy link

wimb0 commented Mar 2, 2021

I'm also having the same issue with 1.18.0 via Docker Compose.
Using Slaesh's CC2652RB stick on a Dell Optiplex 3060 Micro with Ubuntu 18.04LTS.

@m0wlheld
Copy link
Author

m0wlheld commented Mar 2, 2021

Could you check, if it still works with commit 1ddd2ac (the last working version as reported by @CSchlipp)?

I can confirm this DOES NOT work. @m0wlheld & @liambrugaro (Just tested)

Are you sure? In my case, it does work with commit 1ddd2ac. Here's what I used to test:

$ docker run --device /dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_21_CC_44_12-if00-port0:/dev/ttyACM0 --rm -ti node:latest /bin/bash
root@e1523ad5a16b:/# git clone https://github.com/Koenkk/zigbee2mqtt.git
root@e1523ad5a16b:/# cd zigbee2mqtt
root@e1523ad5a16b:/# npm ci
root@e1523ad5a16b:/# npm start

Result after last command:

> zigbee2mqtt@1.18.0 start
> node index.js

Zigbee2MQTT:info  2021-03-02 08:25:51: Logging to console and directory: '/zigbee2mqtt/data/log/2021-03-02.08-25-49' filename: log.txt
Zigbee2MQTT:info  2021-03-02 08:25:51: Starting Zigbee2MQTT version 1.18.0 (commit #3fd6619)
Zigbee2MQTT:info  2021-03-02 08:25:51: Starting zigbee-herdsman (0.13.72)
Zigbee2MQTT:error 2021-03-02 08:26:11: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-03-02 08:26:11: Failed to start zigbee
Zigbee2MQTT:error 2021-03-02 08:26:11: Exiting...
Zigbee2MQTT:error 2021-03-02 08:26:11: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
    at Generator.throw (<anonymous>)
    at rejected (/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm ERR! code 1
npm ERR! path /zigbee2mqtt
npm ERR! command failed
npm ERR! command sh -c node index.js

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-03-02T08_26_11_751Z-debug.

Then I did a checkout on 1ddd2ac:

root@e1523ad5a16b:/zigbee2mqtt# git checkout 1ddd2ac
root@e1523ad5a16b:/zigbee2mqtt# npm ci
root@e1523ad5a16b:/zigbee2mqtt# npm start

Result after last command:

Zigbee2MQTT:info  2021-03-02 08:31:01: Logging to console and directory: '/zigbee2mqtt/data/log/2021-03-02.08-30-59' filename: log.txt
Zigbee2MQTT:info  2021-03-02 08:31:01: Starting Zigbee2MQTT version 1.17.1-dev (commit #1ddd2ac)
Zigbee2MQTT:info  2021-03-02 08:31:01: Starting zigbee-herdsman (0.13.71)
Zigbee2MQTT:info  2021-03-02 08:31:17: zigbee-herdsman started
Zigbee2MQTT:info  2021-03-02 08:31:17: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210120,"transportrev":2},"type":"zStack3x0"}'
Zigbee2MQTT:info  2021-03-02 08:31:17: Currently 0 devices are joined:
Zigbee2MQTT:warn  2021-03-02 08:31:17: `permit_join` set to  `true` in configuration.yaml.
Zigbee2MQTT:warn  2021-03-02 08:31:17: Allowing new devices to join.
Zigbee2MQTT:warn  2021-03-02 08:31:17: Set `permit_join` to `false` once you joined all devices.
Zigbee2MQTT:info  2021-03-02 08:31:17: Zigbee: allowing new devices to join.
Zigbee2MQTT:info  2021-03-02 08:31:18: Connecting to MQTT server at mqtt://localhost

@mrTuomoK
Copy link

mrTuomoK commented Mar 2, 2021

Could you check, if it still works with commit 1ddd2ac (the last working version as reported by @CSchlipp)?

I can confirm this DOES NOT work. @m0wlheld & @liambrugaro (Just tested)

Are you sure? In my case, it does work with commit 1ddd2ac. Here's what I used to test:

$ docker run --device /dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_21_CC_44_12-if00-port0:/dev/ttyACM0 --rm -ti node:latest /bin/bash
root@e1523ad5a16b:/# git clone https://github.com/Koenkk/zigbee2mqtt.git
root@e1523ad5a16b:/# cd zigbee2mqtt
root@e1523ad5a16b:/# npm ci
root@e1523ad5a16b:/# npm start

Result after last command:

> zigbee2mqtt@1.18.0 start
> node index.js

Zigbee2MQTT:info  2021-03-02 08:25:51: Logging to console and directory: '/zigbee2mqtt/data/log/2021-03-02.08-25-49' filename: log.txt
Zigbee2MQTT:info  2021-03-02 08:25:51: Starting Zigbee2MQTT version 1.18.0 (commit #3fd6619)
Zigbee2MQTT:info  2021-03-02 08:25:51: Starting zigbee-herdsman (0.13.72)
Zigbee2MQTT:error 2021-03-02 08:26:11: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-03-02 08:26:11: Failed to start zigbee
Zigbee2MQTT:error 2021-03-02 08:26:11: Exiting...
Zigbee2MQTT:error 2021-03-02 08:26:11: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
    at Generator.throw (<anonymous>)
    at rejected (/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm ERR! code 1
npm ERR! path /zigbee2mqtt
npm ERR! command failed
npm ERR! command sh -c node index.js

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-03-02T08_26_11_751Z-debug.

Then I did a checkout on 1ddd2ac:

root@e1523ad5a16b:/zigbee2mqtt# git checkout 1ddd2ac
root@e1523ad5a16b:/zigbee2mqtt# npm ci
root@e1523ad5a16b:/zigbee2mqtt# npm start

Result after last command:

Zigbee2MQTT:info  2021-03-02 08:31:01: Logging to console and directory: '/zigbee2mqtt/data/log/2021-03-02.08-30-59' filename: log.txt
Zigbee2MQTT:info  2021-03-02 08:31:01: Starting Zigbee2MQTT version 1.17.1-dev (commit #1ddd2ac)
Zigbee2MQTT:info  2021-03-02 08:31:01: Starting zigbee-herdsman (0.13.71)
Zigbee2MQTT:info  2021-03-02 08:31:17: zigbee-herdsman started
Zigbee2MQTT:info  2021-03-02 08:31:17: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210120,"transportrev":2},"type":"zStack3x0"}'
Zigbee2MQTT:info  2021-03-02 08:31:17: Currently 0 devices are joined:
Zigbee2MQTT:warn  2021-03-02 08:31:17: `permit_join` set to  `true` in configuration.yaml.
Zigbee2MQTT:warn  2021-03-02 08:31:17: Allowing new devices to join.
Zigbee2MQTT:warn  2021-03-02 08:31:17: Set `permit_join` to `false` once you joined all devices.
Zigbee2MQTT:info  2021-03-02 08:31:17: Zigbee: allowing new devices to join.
Zigbee2MQTT:info  2021-03-02 08:31:18: Connecting to MQTT server at mqtt://localhost

It does startup but when I tried to control my devices they did not respond. (Can't debug more right now, working)

@CSchlipp
Copy link

CSchlipp commented Mar 2, 2021

git checkout 99274c7

Could you check, if it still works with commit 1ddd2ac (the last working version as reported by @CSchlipp)?

I can confirm this DOES NOT work. @m0wlheld & @liambrugaro (Just tested)

It does startup but things don't work properly

If it's for any help I'm also using Slaesh's CC2652RB --> usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_21_CC_41_34-if00-port0

I've double checked the logs again, but the docker image build from this commit was definitely running smoothly for 24h, until the next update broke it.

@CSchlipp
Copy link

CSchlipp commented Mar 2, 2021

It does startup but when I tried to control my devices they did not respond. (Can't debug more right now, working)

Note the log line "Currently 0 devices are joined", that's probably the reason why none of your devices responded ;)

@mrTuomoK
Copy link

mrTuomoK commented Mar 2, 2021

It does startup but when I tried to control my devices they did not respond. (Can't debug more right now, working)

Note the log line "Currently 0 devices are joined", that's probably the reason why none of your devices responded ;)

Yeah in this case, dunno if it was like that on my case :D

@m0wlheld
Copy link
Author

m0wlheld commented Mar 2, 2021

Did more checks:

So the issue has been introduced with commit 9d835ff and therefore with update of zigbee-herdsman to 0.13.72

@m0wlheld
Copy link
Author

m0wlheld commented Mar 2, 2021

Works for me. RPI3B+ with Slaesh's CC2652RB stick, thanks.

Using '/app/data' as data directory

> zigbee2mqtt@1.18.0-dev start /app
> node index.js

Zigbee2MQTT:info  2021-03-02 21:21:11: Logging to console only'
Zigbee2MQTT:info  2021-03-02 21:21:11: Starting Zigbee2MQTT version 1.18.0-dev (commit #b9c69f9)
Zigbee2MQTT:info  2021-03-02 21:21:11: Starting zigbee-herdsman (0.13.74)
Zigbee2MQTT:info  2021-03-02 21:21:22: zigbee-herdsman started
Zigbee2MQTT:info  2021-03-02 21:21:22: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210120,"transportrev":2},"type":"zStack3x0"}'

Maybe a note on what you actually changed?

@jdfkkok
Copy link

jdfkkok commented Mar 2, 2021

Unfortunately, the new container I made does not read the contents of the configuration.yaml and keeps reporting that 0 devices are currently joined. Also, the front-end won't start.

@m0wlheld
Copy link
Author

m0wlheld commented Mar 2, 2021

Unfortunately, the new container I made does not read the contents of the configuration.yaml and keeps reporting that 0 devices are currently joined. Also, the front-end won't start.

Makes sense, because the default configuration does not enable frontend. But - I'd say that's a different cause / issue.

@jdfkkok
Copy link

jdfkkok commented Mar 2, 2021

Unfortunately, the new container I made does not read the contents of the configuration.yaml and keeps reporting that 0 devices are currently joined. Also, the front-end won't start.

Makes sense, because the default configuration does not enable frontend. But - I'd say that's a different cause / issue.

True, but the fact that it is not using the correct configuration.yaml file seems to stem from this issue, that's why I thought I'd mention it here, in case more people experience this.

Koenkk added a commit that referenced this issue Mar 2, 2021
@Koenkk
Copy link
Owner

Koenkk commented Mar 2, 2021

1.18.1 is available now, can you guys confirm that it works? (hass addon in +- 30 mins)

@m0wlheld
Copy link
Author

m0wlheld commented Mar 2, 2021

1.18.1 is available now, can you guys confirm that it works? (hass addon in +- 30 mins)

Yes, it works (using koenkk/zigbee2mqtt:1.18.1 container image).

@Koenkk
Copy link
Owner

Koenkk commented Mar 2, 2021

Cool, Ill close this.

@m0wlheld I cannot reproduce this myself yet, Could you contact me privately on telegram (@Koenkk) so we can find out what caused this?

@Koenkk Koenkk closed this as completed Mar 2, 2021
@oxivanisher
Copy link

Also works for me. Thanks for the fast fix! <3

@wimb0
Copy link

wimb0 commented Mar 2, 2021

1.18.1 in Docker works fine! Thanks!
The zigbee-herdsman version (0.13.71) is different from the dev version (0.13.74) btw.

Using '/app/data' as data directory

> zigbee2mqtt@1.18.1 start /app
> node index.js

Zigbee2MQTT:info  2021-03-02 22:06:13: Logging to console and directory: '/app/data/log/2021-03-02.22-06-13' filename: log.txt
Zigbee2MQTT:info  2021-03-02 22:06:13: Starting Zigbee2MQTT version 1.18.1 (commit #a43d1f3)
Zigbee2MQTT:info  2021-03-02 22:06:13: Starting zigbee-herdsman (0.13.71)
Zigbee2MQTT:info  2021-03-02 22:06:24: zigbee-herdsman started
Zigbee2MQTT:info  2021-03-02 22:06:24: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210120,"transportrev":2},"type":"zStack3x0"}'
Zigbee2MQTT:info  2021-03-02 22:06:24: Currently 29 devices are joined:

@IngoHenning
Copy link

I can confirm 1.18.1 is running without problems. Thanks for the very quick fix!

I just saw the new frontend and the dashboard for the first time. Looks amazing, great work!

@aureliosaraiva
Copy link

I can confirm 1.18.1 is running too

@reboot81
Copy link

reboot81 commented Mar 4, 2021

CC2531 zStack12 on Rpi4 core-2021.3.0 works smooth. Thanks!

@boojew
Copy link
Contributor

boojew commented Mar 8, 2021

I dont know if this is the same issue, but 1.18.0 and 1.18.1 are not working on my side using slaesh's interface on an rpi 3.

Running in docker and it continually fails with

> Using '/app/data' as data directory
> /usr/local/bin/docker-entrypoint.sh: exec: line 17: illegal option -p

@m0wlheld
Copy link
Author

m0wlheld commented Mar 8, 2021

Line 17: exec "$@"

My assumption is an error in your docker call, can you post the exact docker command line?

@JohannCR
Copy link

JohannCR commented Mar 11, 2021

1.18.1 not working for me
Context : went from conbee II to fresh CC2652R zzh on Synology with debian Buster VM. Flashed coord firmware, stopped z2m, unmounted conbee, changed config, mounted zzh, restarted, error.
Verified every step of the FAQ (correct port, write access, removed modemmanager).
I don't know how to downgrade so can't try 1.17

Zigbee2MQTT:info 2021-03-11 22:59:31: Starting zigbee-herdsman (0.13.71) Zigbee2MQTT:debug 2021-03-11 22:59:31: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6755},"serialPort":{"path":"/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0","rtscts":false}}' 2021-03-11T21:59:31.819Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT' 2021-03-11T21:59:31.823Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6755,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"rtscts":false,"path":"/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"concurrent":null,"delay":null}}' 2021-03-11T21:59:31.829Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 and {"baudRate":115200,"rtscts":false,"autoOpen":false} 2021-03-11T21:59:31.846Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened 2021-03-11T21:59:32.319Z zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload 2021-03-11T21:59:32.321Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239] 2021-03-11T21:59:33.326Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-03-11T21:59:33.330Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] 2021-03-11T21:59:39.340Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-03-11T21:59:39.342Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] 2021-03-11T21:59:45.349Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-03-11T21:59:45.352Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] Zigbee2MQTT:error 2021-03-11 22:59:51: Error while starting zigbee-herdsman Zigbee2MQTT:error 2021-03-11 22:59:51: Failed to start zigbee Zigbee2MQTT:error 2021-03-11 22:59:51: Exiting... Zigbee2MQTT:error 2021-03-11 22:59:51: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms) at ZStackAdapter.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31) at Generator.throw (<anonymous>) at rejected (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zigbee2mqtt@1.18.1 start: node index.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zigbee2mqtt@1.18.1 start script.

@JohannCR
Copy link

JohannCR commented Mar 24, 2021

Can someone please help ? Still stuck with this problem...
Edit : solved by reinstalling drivers and reflashing cf #2997 (comment)

@dummys
Copy link

dummys commented Jun 12, 2021

Hello, still have problem with slaesh.
I tried reflashing, no luck. Problem come from 18.1.1 z2m version.
Tested another slaesh, same problem.
Latest version of home assistant on the supported Odroid.
EDIT: Changing PAN_ID made it work, but then I lost all my device. Why I need to change PAN_ID if I didn't change anything in hardware/config and only upgraded HA/z2M ????
Here is the full log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[02:03:48] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[02:03:49] INFO: MQTT available, fetching server detail ...
[02:03:50] INFO: Previous config file found, checking backup
[02:03:50] INFO: Creating backup config in '/share/zigbee2mqtt/.configuration.yaml.bk'
[02:03:50] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[02:03:51] INFO: Zigbee Herdsman debug logging enabled
[02:03:51] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.18.1 start /app
> node index.js
Zigbee2MQTT:info  2021-06-12 02:03:55: Logging to console and directory: '/share/zigbee2mqtt/log/2021-06-12.02-03-54' filename: log.txt
Zigbee2MQTT:info  2021-06-12 02:03:56: Starting Zigbee2MQTT version 1.18.1 (commit #1.18.1)
Zigbee2MQTT:info  2021-06-12 02:03:56: Starting zigbee-herdsman (0.13.71)
2021-06-12T00:03:56.316Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2021-06-12T00:03:56.320Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"path":"/dev/ttyUSB0","adapter":"zstack"},"databasePath":"/share/zigbee2mqtt/database.db","databaseBackupPath":"/share/zigbee2mqtt/database.db.backup","backupPath":"/share/zigbee2mqtt/coordinator_backup.json","adapter":{"concurrent":null,"delay":null}}'
2021-06-12T00:03:56.326Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyUSB0 and {"baudRate":115200,"rtscts":false,"autoOpen":false}
2021-06-12T00:03:56.344Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened
2021-06-12T00:03:56.357Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [0]
2021-06-12T00:03:56.359Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [0]
2021-06-12T00:04:07.588Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,33,9,135,0,0,1,0,171]
2021-06-12T00:04:07.596Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,97,9,0,105]
2021-06-12T00:04:07.596Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,97,9,0,105]
2021-06-12T00:04:07.596Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 1 - 9 - [0] - 105
2021-06-12T00:04:07.597Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvWrite - {"status":0}
2021-06-12T00:04:07.597Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:07.599Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvWrite - {"id":99,"len":1,"offset":0,"value":{"type":"Buffer","data":[0]}}
2021-06-12T00:04:07.600Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,33,9,99,0,0,1,0,79]
2021-06-12T00:04:07.607Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,97,9,0,105]
2021-06-12T00:04:07.608Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,97,9,0,105]
2021-06-12T00:04:07.608Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 1 - 9 - [0] - 105
2021-06-12T00:04:07.609Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvWrite - {"status":0}
2021-06-12T00:04:07.609Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:07.611Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvWrite - {"id":143,"len":1,"offset":0,"value":{"type":"Buffer","data":[1]}}
2021-06-12T00:04:07.612Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,33,9,143,0,0,1,1,162]
2021-06-12T00:04:07.620Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,97,9,0,105]
2021-06-12T00:04:07.620Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,97,9,0,105]
2021-06-12T00:04:07.621Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 1 - 9 - [0] - 105
2021-06-12T00:04:07.621Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvWrite - {"status":0}
2021-06-12T00:04:07.622Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:07.623Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvWrite - {"id":132,"len":4,"offset":0,"value":{"type":"Buffer","data":[0,8,0,0]}}
2021-06-12T00:04:07.624Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,8,33,9,132,0,0,4,0,8,0,0,168]
2021-06-12T00:04:07.633Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,97,9,0,105]
2021-06-12T00:04:07.633Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,97,9,0,105]
2021-06-12T00:04:07.633Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 1 - 9 - [0] - 105
2021-06-12T00:04:07.634Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvWrite - {"status":0}
2021-06-12T00:04:07.634Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:07.636Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvWrite - {"id":131,"len":2,"offset":0,"value":{"type":"Buffer","data":[98,26]}}
2021-06-12T00:04:07.637Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,6,33,9,131,0,0,2,98,26,215]
2021-06-12T00:04:07.644Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,97,9,0,105]
2021-06-12T00:04:07.645Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,97,9,0,105]
2021-06-12T00:04:07.645Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 1 - 9 - [0] - 105
2021-06-12T00:04:07.646Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvWrite - {"status":0}
2021-06-12T00:04:07.646Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:07.648Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvWrite - {"id":45,"len":8,"offset":0,"value":{"type":"Buffer","data":[221,221,221,221,221,221,221,221]}}
2021-06-12T00:04:07.649Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,12,33,9,45,0,0,8,221,221,221,221,221,221,221,221,1]
2021-06-12T00:04:07.657Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,97,9,0,105]
2021-06-12T00:04:07.658Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,97,9,0,105]
2021-06-12T00:04:07.658Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 1 - 9 - [0] - 105
2021-06-12T00:04:07.659Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvWrite - {"status":0}
2021-06-12T00:04:07.659Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:07.661Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - osalNvWrite - {"id":98,"configid":98,"len":16,"offset":0,"value":{"type":"Buffer","data":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13]}}
2021-06-12T00:04:07.662Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,20,33,9,98,0,0,16,1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13,77]
2021-06-12T00:04:07.671Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,97,9,0,105]
2021-06-12T00:04:07.671Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,97,9,0,105]
2021-06-12T00:04:07.671Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 1 - 9 - [0] - 105
2021-06-12T00:04:07.672Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- SYS - osalNvWrite - {"status":0}
2021-06-12T00:04:07.672Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:07.674Z zigbee-herdsman:adapter:zStack:znp:SREQ --> APP_CNF - bdbSetChannel - {"isPrimary":1,"channel":2048}
2021-06-12T00:04:07.676Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,47,8,1,0,8,0,0,43]
2021-06-12T00:04:07.680Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,111,8,0,102]
2021-06-12T00:04:07.680Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,111,8,0,102]
2021-06-12T00:04:07.680Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 15 - 8 - [0] - 102
2021-06-12T00:04:07.681Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- APP_CNF - bdbSetChannel - {"status":0}
2021-06-12T00:04:07.681Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:07.682Z zigbee-herdsman:adapter:zStack:znp:SREQ --> APP_CNF - bdbSetChannel - {"isPrimary":0,"channel":0}
2021-06-12T00:04:07.683Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,47,8,0,0,0,0,0,34]
2021-06-12T00:04:07.687Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,111,8,0,102]
2021-06-12T00:04:07.688Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,111,8,0,102]
2021-06-12T00:04:07.688Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 15 - 8 - [0] - 102
2021-06-12T00:04:07.688Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- APP_CNF - bdbSetChannel - {"status":0}
2021-06-12T00:04:07.689Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:07.690Z zigbee-herdsman:adapter:zStack:znp:SREQ --> APP_CNF - bdbStartCommissioning - {"mode":4}
2021-06-12T00:04:07.691Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,1,47,5,4,47]
2021-06-12T00:04:10.847Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,111,5,0,107]
2021-06-12T00:04:10.847Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,111,5,0,107]
2021-06-12T00:04:10.847Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 15 - 5 - [0] - 107
2021-06-12T00:04:10.848Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- APP_CNF - bdbStartCommissioning - {"status":0}
2021-06-12T00:04:10.849Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:10.850Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,3,79,128,1,2,4,203]
2021-06-12T00:04:10.851Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,3,79,128,1,2,4,203]
2021-06-12T00:04:10.851Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 3 - 2 - 15 - 128 - [1,2,4] - 203
2021-06-12T00:04:10.851Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- APP_CNF - bdbComissioningNotifcation - {"status":1}
2021-06-12T00:04:10.852Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:11.076Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,69,192,8,140]
2021-06-12T00:04:11.076Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,69,192,8,140]
2021-06-12T00:04:11.077Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 2 - 5 - 192 - [8] - 140
2021-06-12T00:04:11.077Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - stateChangeInd - {"state":8}
2021-06-12T00:04:11.078Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:11.633Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,69,192,8,140]
2021-06-12T00:04:11.633Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,69,192,8,140]
2021-06-12T00:04:11.634Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 2 - 5 - 192 - [8] - 140
2021-06-12T00:04:11.634Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - stateChangeInd - {"state":8}
2021-06-12T00:04:11.635Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext []
2021-06-12T00:04:11.636Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,3,79,128,8,2,0,198]
2021-06-12T00:04:11.637Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,3,79,128,8,2,0,198]
2021-06-12T00:04:11.637Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 3 - 2 - 15 - 128 - [8,2,0] - 198
2021-06-12T00:04:11.637Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- APP_CNF - bdbComissioningNotifcation - {"status":8}

@d-EScape
Copy link

Hello, still have problem with slaesh.

That doesn’t mean it is in any way related to this issue, that was solved and closed months ago. Your log doesn’t contain the error message that is in the subject, so it is probably unrelated.

Unfortunately I do not have a solution for you but I would start searching for the “Failed to validate path: 'Error: spawn udevadm ENOENT'” message that is in your log.

@dummys
Copy link

dummys commented Jun 12, 2021

Hello, still have problem with slaesh.

That doesn’t mean it is in any way related to this issue, that was solved and closed months ago. Your log doesn’t contain the error message that is in the subject, so it is probably unrelated.

Unfortunately I do not have a solution for you but I would start searching for the “Failed to validate path: 'Error: spawn udevadm ENOENT'” message that is in your log.

yes but didnt found anything about that... also when I change the panid it is starting ...

@Koenkk
Copy link
Owner

Koenkk commented Jul 5, 2021

@m0wlheld I've updated serialport again (what previously caused the issue) since there is a newer version available now. Can you check if the latest dev branch works now (wait at least 1 hour before testing after this comment).

@m0wlheld
Copy link
Author

m0wlheld commented Jul 6, 2021

Recent latest-dev (Docker image) works: "Starting Zigbee2MQTT version 1.19.0-dev (commit #c508155)" . No issues.

@Koenkk
Copy link
Owner

Koenkk commented Jul 6, 2021

@m0wlheld it should show 1.20.0-dev, are you sure you are using the latest?

@m0wlheld
Copy link
Author

m0wlheld commented Jul 6, 2021

Now I do and still no issues.

Zigbee2MQTT:info  2021-07-06 20:21:37: Logging to console only'
Zigbee2MQTT:info  2021-07-06 20:21:37: Starting Zigbee2MQTT version 1.20.0-dev (commit #486ae90)
Zigbee2MQTT:info  2021-07-06 20:21:37: Starting zigbee-herdsman (0.13.118)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests