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

Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms) #430

Closed
bezrukovp opened this issue Dec 5, 2022 · 24 comments
Closed
Labels

Comments

@bezrukovp
Copy link

Description of the issue

Installing zigbee2mqtt as home helper addon gives error Error: SRSP - SYS - ping after 6000ms
It looks like the reason is that /run/udev is not mounted in the container.

It works if you separately install koenkk/zigbee2mqtt + addon zigbee2mqtt proxy.

I want to understand how the default addon zigbee2mqtt works for others. Perhaps it needs to be installed in some other way.

Addon version

1.28.4-1

Platform

Core: 2022.11.5
Supervisor: 2022.11.2
Operating system: Linux raspberrypi 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux

Logs of the issue (if applicable)

No response

@makanimike
Copy link

makanimike commented Dec 10, 2022

I seem to be experiencing this after a fresh install of Home Assistant and recovery of my old setup. However, I cannot work around it by installing the proxy.

ETA: I have the slae.sh CC2652R stick. The system recognizes that the USB dongle is attached. It worked perfectly fine on a docker setup before I switched to plain HAOSS. I tried ZHA as well. ZHA gives me a disconnect fail, too.

@thomas-nesser
Copy link

Just got the SkyConnect device. Get same error message when I try to start zigbee2mqtt:

Zigbee2MQTT:error 2022-12-11 11:52:17: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-12-11 11:52:17: Failed to start zigbee
Zigbee2MQTT:error 2022-12-11 11:52:17: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-12-11 11:52:17: Exiting...
Zigbee2MQTT:error 2022-12-11 11:52:17: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:107:5)

@lillson
Copy link

lillson commented Dec 11, 2022

Just got the SkyConnect device. Get same error message when I try to start zigbee2mqtt:

Zigbee2MQTT:error 2022-12-11 11:52:17: Error while starting zigbee-herdsman Zigbee2MQTT:error 2022-12-11 11:52:17: Failed to start zigbee Zigbee2MQTT:error 2022-12-11 11:52:17: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2022-12-11 11:52:17: Exiting... Zigbee2MQTT:error 2022-12-11 11:52:17: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms) at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27) at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29) at Zigbee.start (/app/lib/zigbee.ts:58:27) at Controller.start (/app/lib/controller.ts:101:27) at start (/app/index.js:107:5)

SkyConnect worked with ZHA, but after removing ZHA and trying to use the SkyConnect with Zigbee2MQTT I get the same error.

@mvgent
Copy link

mvgent commented Dec 12, 2022

Havind the same problem ,clean install on a raspberry pi with HA. zigbee stick that worked before. whole hardware setup belongs to a friend...weird...

@lukas-holzner
Copy link

I have the same problem. I am using a Sonoff Zigbee Stick. I disabled and deleted ZHA. I have tried through the terminal addon if the Serial connection works (test -w /dev/ttyUSB0 && echo success || echo failure) and it does. I don't really know what else i can try

@DieterKoblenz
Copy link

Same here with the ZBDongle-E. I installed z2m edge add-on, but it won't work.

Nor can I add ezsp adapter to the config file...

@Koenkk
Copy link
Contributor

Koenkk commented Dec 15, 2022

If you get the (Error: SRSP - SYS - ping after 6000ms) error it means the zstack adapter code is used. For ezsp (=ZBDongle-E, SkyConnect) you can force the adapter type by adding the following to your configuration.yaml

serial:
  port: /dev/THEPORT # <- change this accordingly
  adapter: ezsp

@zigajamnik
Copy link

zigajamnik commented Dec 15, 2022

Hi,
my father also got this error (Error: SRSP - SYS - ping after 6000ms). Several months it was working very well with SONOFF Dongle 3.0 and zigbee2mqtt Edge. Today, suddenly no entities avaliable in HA. Checked logs and got this error. Tried rebooting, rebooting HA. Reinstalling z2mEdge. Tried also with normal version of Z2m... Nothing works :/
Nothing really changed with integrations or any other settings... it suddenly stopped working.
Also, no ZHA integration is installed ( some ppl say that this might be causing it ).

Runing dongle with AH on Raspberry Pi 3b+.

please help?

@lillson
Copy link

lillson commented Dec 15, 2022

If you get the (Error: SRSP - SYS - ping after 6000ms) error it means the zstack adapter code is used. For ezsp (=ZBDongle-E, SkyConnect) you can force the adapter type by adding the following to your configuration.yaml

serial:
  port: /dev/THEPORT # <- change this accordingly
  adapter: ezsp

That did the trick :)

@makanimike
Copy link

makanimike commented Dec 15, 2022

it got rid of the SRSP SYS ping error. Now I only have the 502: Bad Gateway left....

Is the Configuration section of the add-on meant to coexist with a configuration.yaml, or override it?
I've been searching the web for days now trying different suggested solutions.

@lukas-holzner
Copy link

lukas-holzner commented Dec 20, 2022

it got rid of the SRSP SYS ping error. Now I only have the 502: Bad Gateway left....

Is the Configuration section of the add-on meant to coexist with a configuration.yaml, or override it? I've been searching the web for days now trying different suggested solutions.

I can confirm that. The logs unfortionatly dind't give more insight into the error 502

[00:56:49] INFO: Preparing to start...
[00:56:49] INFO: Socat not enabled
[00:56:50] INFO: Zigbee Herdsman debug logging enabled
[00:56:51] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:debug 2022-12-20 00:56:56: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info  2022-12-20 00:56:56: Logging to console and directory: '/config/zigbee2mqtt/log/2022-12-20.00-56-56' filename: log.txt
Zigbee2MQTT:debug 2022-12-20 00:56:56: Removing old log directory '/config/zigbee2mqtt/log/2022-12-14.20-08-33'
Zigbee2MQTT:info  2022-12-20 00:56:56: Starting Zigbee2MQTT version 1.28.4 (commit #unknown)
Zigbee2MQTT:info  2022-12-20 00:56:56: Starting zigbee-herdsman (0.14.76)
Zigbee2MQTT:debug 2022-12-20 00:56:56: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"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":6754},"serialPort":{"adapter":"ezsp","path":"/dev/ttyUSB0"}}'
2022-12-19T23:56:56.802Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2022-12-19T23:56:56.806Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[secret],"panID":6754,"extendedPanID":[secret],"channelList":[11]},"serialPort":{"path":"/dev/ttyUSB0","adapter":"ezsp"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2022-12-19T23:56:56.810Z zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with /dev/ttyUSB0 and {"baudRate":115200,"rtscts":false,"autoOpen":false}
2022-12-19T23:56:56.830Z zigbee-herdsman:adapter:ezsp:uart Serialport opened
2022-12-19T23:56:56.830Z zigbee-herdsman:adapter:ezsp:uart Uart reseting
2022-12-19T23:56:56.831Z zigbee-herdsman:adapter:ezsp:uart --> Write reset
2022-12-19T23:56:56.833Z zigbee-herdsman:adapter:ezsp:uart --> [1ac038bc7e]

I am using a Sonoff ZB Stick and the following config in HA:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt: {}
serial:
  port: /dev/ttyUSB0
  adapter: ezsp
zigbee_herdsman_debug: true

The zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT' Error shouldn't be the problem Koenkk/zigbee-herdsman#389

@evan-annix
Copy link

evan-annix commented Dec 31, 2022

If you get the (Error: SRSP - SYS - ping after 6000ms) error it means the zstack adapter code is used. For ezsp (=ZBDongle-E, SkyConnect) you can force the adapter type by adding the following to your configuration.yaml

serial:
  port: /dev/THEPORT # <- change this accordingly
  adapter: ezsp

9 Hours.

I have been trying to fix this for 9 Straight Hours and this is what fixed it for me.

For reference, I am running HAS OS on an Xpenology DS920+ HackiNAS with zigbee2mqtt via the HAS Add-On. The Zigbee dongle I'm using is the "_Aubess ZigBee 3.0", and spent at least 4 of those hours which I'll never get back were attempting to get the CH-341 drivers from archive.org (which from my research do......something, maybe) running. "The listing has the Zigbee2MQTT logo on it" I thought, "This will definitely not be worse than getting waterboarded" they said.

This is my first foray in to zigbee2mqtt after reading so many threads about it's superiority to ZHA - which, for the record, worked automatically with my Zigbee USB. My rhythmic face smashing into SSH was in hopes of getting passthrough to a Docker instance of Z2M working after running in to OP's issue in the Add-On, which also didn't fix this. It's nearly 6:30am and I haven't slept. I refuse to be defeated by a £9 Aliexpress dongle, though I should have given up. I don't have a firstborn, but I would go out and make a whole pile of dumpster babies to sacrifice if it could make me un-experience the disgust I feel right now. Now matter how hard I scrub that Linux command line dirt just won't come off.

To be clear to anyone else as inexperienced / sleep deprived as I am, @Koenkk means that this should go in the 'configuration.yaml' located in the '/zigbee2mqtt' subfolder, not your main Home Assistant config.

I think I'm going to just go ahead and rip out my brand new Cat 6A runs and replace all my smart bulbs with Candles. Thank you @Koenkk for freeing me from these 7 (layers of dip, and 7) layers of hell, but good god I think I'd rather go through getting off of painkillers than troubleshoot Zigbee. Computers were a mistake.

@kkoenen
Copy link

kkoenen commented Jan 15, 2023

Adding adapter: ezsp to the config (under serial: ) fixed it for me.

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Feb 15, 2023
@Zengzisheng
Copy link

Zengzisheng commented Feb 20, 2023

when i add "adapter: ezsp" then save it will print error as follow

Failed to save add-on configuration, does not match regular expression ^zstack|deconz|zigate$. Got {'data_path': '/config/zigbee2mqtt', 'external_converters': [], 'devices': 'devices.yaml', 'groups': 'groups.yaml', 'homeassistant': True, 'permit_join': False, 'mqtt': {'base_topic': 'zigbee2mqtt'}, 'serial': {'port': '/dev/ttyUSB1', 'adapter': 'ezsp'}, 'advanced': {'log_level': 'warn', 'pan_id': 6754, 'channel': 11, 'network_key': [1, 3, 5, 7, 9, 11, 13, 15, 0, 2, 4, 6, 8, 10, 12, 13], 'availability_blocklist': [], 'availability_passlist': []}, 'device_options': {}, 'blocklist': [], 'passli...

@github-actions github-actions bot removed the Stale label Feb 21, 2023
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@mwood77
Copy link

mwood77 commented Jan 17, 2024

serial:
  port: /dev/THEPORT # <- change this accordingly
  adapter: ezsp

I had a different issue where my Sonoff ZigBee 3.0 V2 (E model) dongle wasn't available, but I could see it in HA. The above fixed it.

@codyc1515
Copy link

Why isn't this automatic?

@cobragt500
Copy link

Adding adapter: ezsp to the config (under serial: ) fixed it for me.

really??!! hours and hours and just move the adapter under serial!!! come on!! thnks!! love you jaja

@dcarpio01
Copy link

My god. I just found this and it's the answer to my SLZB-06 mqtt startup issues. Why is this not in the zigbee2mqtt quick start guide?

@LindsayReid
Copy link

LindsayReid commented May 5, 2024

This solved my problem using Skyconnect on a Proxmox installation after setting the USB interface in Proxmox hardware USBdevice itself:

Use USB Port
SkyConnect v1.0 (1-4)

In HA Zigbee2MQTT config:

mqtt
base_topic: zigbee2mqtt

serial
port: /dev/ttyUSB0
adapter: ezsp

@maxant
Copy link

maxant commented May 24, 2024

for me, this worked:

serial:
  port: /dev/ttyUSB0
  adapter: deconz
  baudrate: 115200

for a conbee 3

@Bagunda
Copy link

Bagunda commented Oct 4, 2024

Everything worked for a long time and reliably.
But today I woke up... And it doesn't work...

I tried to add:

serial:
  port: tcp://10.2.90.5:6638
  adapter: ezsp

Didn't help.
Tried:

serial:
  port: tcp://10.2.90.5:6638
  adapter: ember

Didn't help.

[07:38:43] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-04 07:38:48] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-04 07:38:48] info: 	z2m: Starting Zigbee2MQTT version 1.39.0 (commit #unknown)
[2024-10-04 07:38:48] info: 	z2m: Starting zigbee-herdsman (0.50.1)
[2024-10-04 07:38:48] info: 	zh:zstack:znp: Opening TCP socket with 10.2.90.5:6638
[2024-10-04 07:38:48] info: 	zh:zstack:znp: Socket connected
[2024-10-04 07:38:48] info: 	zh:zstack:znp: Socket ready
[2024-10-04 07:38:48] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-10-04 07:38:49] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-10-04 07:39:07] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-04 07:39:07] error: 	z2m: Failed to start zigbee
[2024-10-04 07:39:07] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-04 07:39:07] error: 	z2m: Exiting...
[2024-10-04 07:39:07] error: 	z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:101:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:129:29)
    at Zigbee.start (/app/lib/zigbee.ts:63:27)
    at Controller.start (/app/lib/controller.ts:139:27)
    at start (/app/index.js:154:5)
[07:41:28] INFO: Preparing to start...
[07:41:28] INFO: Socat not enabled
[07:41:29] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-04 07:41:33] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-04 07:41:33] info: 	z2m: Starting Zigbee2MQTT version 1.39.0 (commit #unknown)
[2024-10-04 07:41:33] info: 	z2m: Starting zigbee-herdsman (0.50.1)
[2024-10-04 07:41:33] warning: 	zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
[2024-10-04 07:41:44] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
Error: Failure to connect
    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:19)
    at SerialDriver.emit (node:events:517:28)
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22
    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
    at Socket.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:154:17)
[07:44:53] INFO: Preparing to start...
[07:44:54] INFO: Socat not enabled
[07:44:55] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-04 07:44:59] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-04 07:44:59] info: 	z2m: Starting Zigbee2MQTT version 1.39.0 (commit #unknown)
[2024-10-04 07:44:59] info: 	z2m: Starting zigbee-herdsman (0.50.1)
[2024-10-04 07:44:59] info: 	zh:ember: Using default stack config.
[2024-10-04 07:44:59] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-10-04 07:44:59] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-10-04 07:44:59] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-10-04 07:44:59] info: 	zh:ember:uart:ash: Socket ready
[2024-10-04 07:44:59] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-04 07:45:01] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-10-04 07:45:01] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-04 07:45:04] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-10-04 07:45:04] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-04 07:45:07] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-10-04 07:45:07] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-04 07:45:09] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-10-04 07:45:09] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-04 07:45:12] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-04 07:45:12] error: 	z2m: Failed to start zigbee
[2024-10-04 07:45:12] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-04 07:45:12] error: 	z2m: Exiting...
[2024-10-04 07:45:12] error: 	z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
    at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:889:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2722:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:129:29)
    at Zigbee.start (/app/lib/zigbee.ts:63:27)
    at Controller.start (/app/lib/controller.ts:139:27)
    at start (/app/index.js:154:5)

Rebooting stick by the power help me. Rebooting from web - does not help

@MR-Ostrich13
Copy link

i have exactly the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests