zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

SkyConnect Crashes on v1.35, OK on v1.34 and earlier

Open droans opened this issue 2 years ago • 43 comments

What happened?

With v1.35.0/1.35.1, I've been receiving the sendZclFrameToEndpointInternal error. Unlike similar issue reports, mine was not occurring due to my config pointing at the wrong device.

However, based on the information in those posts, I set Z2M to collect the Zigbee-Herdsman debug logs. The first two files are the complete logs. The third file is a truncated log with the logs up until the devices are identified and the logs beginning right before the error occurred. Error messages begin on line 82227 in the second file.

log.part1.txt log.part2.txt truncated_log.txt

When this error occurs, Z2M will not work until I restart the service. The error showed up in my Z2M logs as below and would show for all my router devices:

warn  2024-01-17 19:40:08: Failed to ping 'Chaise Light' (attempt 1/2, Read 0x001788010311daf4/11 genBasic(["zclVersion"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disable
Recovery":true,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (sendZclFrameToEndpointInternal error))
warn  2024-01-17 19:40:11: Failed to ping 'Chaise Light' (attempt 2/2, Read 0x001788010311daf4/11 genBasic(["zclVersion"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (sendZclFrameToEndpointInternal error))
info  2024-01-17 19:40:14: MQTT publish: topic 'zigbee2mqtt2/Chaise Light/availability', payload '{"state":"offline"}'

When zigbee-herdsman debug logging is enabled, I was able to receive more information:

2024-01-18T00:37:44.119Z zigbee-herdsman:adapter:ezsp:ezsp Time to watchdog ... 0
2024-01-18T00:37:44.119Z zigbee-herdsman:adapter:ezsp:ezsp ==> nop: null
2024-01-18T00:37:44.119Z zigbee-herdsman:adapter:ezsp:ezsp ==> {"_cls_":"nop","_id_":5,"_isRequest_":true}
2024-01-18T00:37:44.119Z zigbee-herdsman:adapter:ezsp:uart --> DATA (1,7,0): f900010500
2024-01-18T00:37:44.119Z zigbee-herdsman:adapter:ezsp:uart --> [17bb21a9512ac4457e]
2024-01-18T00:37:44.119Z zigbee-herdsman:adapter:ezsp:uart -?- waiting (2)
2024-01-18T00:37:46.121Z zigbee-herdsman:adapter:ezsp:uart --> Error: Error: {"sequence":2} after 2000ms
2024-01-18T00:37:46.121Z zigbee-herdsman:adapter:ezsp:uart -!- break waiting (2)
2024-01-18T00:37:46.121Z zigbee-herdsman:adapter:ezsp:uart Can't send DATA frame (1,7,0): f900010500
2024-01-18T00:37:46.621Z zigbee-herdsman:adapter:ezsp:uart ->> DATA (1,7,1): f900010500
2024-01-18T00:37:46.621Z zigbee-herdsman:adapter:ezsp:uart --> [1fbb21a9512ac9077e]
2024-01-18T00:37:46.621Z zigbee-herdsman:adapter:ezsp:uart -?- rewaiting (2)
2024-01-18T00:37:48.623Z zigbee-herdsman:adapter:ezsp:uart --> Error: Error: {"sequence":2} after 2000ms
2024-01-18T00:37:48.623Z zigbee-herdsman:adapter:ezsp:uart -!- break rewaiting (2)
2024-01-18T00:37:48.623Z zigbee-herdsman:adapter:ezsp:uart Can't resend DATA frame (1,7,1): f900010500
2024-01-18T00:37:48.623Z zigbee-herdsman:adapter:ezsp:driv Reset connection. Try 0
2024-01-18T00:37:48.623Z zigbee-herdsman:adapter:ezsp:driv Stop driver
2024-01-18T00:37:48.624Z zigbee-herdsman:adapter:ezsp:ezsp Stop ezsp
2024-01-18T00:37:48.659Z zigbee-herdsman:adapter:ezsp:erro Watchdog heartbeat timeout Error: Failure send nop:{"type":"Buffer","data":[249,0,1,5,0]}
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:562:23
    at Queue.executeNext (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:32:32)
2024-01-18T00:37:48.664Z zigbee-herdsman:adapter:ezsp:uart Port closed
2024-01-18T00:37:48.664Z zigbee-herdsman:adapter:ezsp:ezsp Close ezsp
2024-01-18T00:37:48.664Z zigbee-herdsman:adapter:ezsp:driv Close driver
2024-01-18T00:37:48.664Z zigbee-herdsman:adapter:ezsp:ezsp Close ezsp
2024-01-18T00:37:48.664Z zigbee-herdsman:adapter:ezsp:driv Close driver
2024-01-18T00:37:49.666Z zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_d4b930fb36d5ec118a8e1fb1a1ca919a-if00-port0","baudRate":115200,"rtscts":true,"autoOpen":false}
2024-01-18T00:37:49.688Z zigbee-herdsman:adapter:ezsp:erro Connection attempt 1 error: Error: Error while opening serialport 'Error: Error: I/O error, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_d4b930fb36d5ec118a8e1fb1a1ca919a-if00-port0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:94:28)
    at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:82:22)
    at /app/node_modules/@serialport/stream/dist/index.js:118:18
2024-01-18T00:37:54.688Z zigbee-herdsman:adapter:ezsp:ezsp Next attempt 2
2024-01-18T00:37:54.689Z zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_d4b930fb36d5ec118a8e1fb1a1ca919a-if00-port0","baudRate":115200,"rtscts":true,"autoOpen":false}
2024-01-18T00:37:54.689Z zigbee-herdsman:adapter:ezsp:erro Connection attempt 2 error: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_d4b930fb36d5ec118a8e1fb1a1ca919a-if00-port0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:94:28)
    at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:82:22)
    at /app/node_modules/@serialport/stream/dist/index.js:118:18
2024-01-18T00:37:59.692Z zigbee-herdsman:adapter:ezsp:ezsp Next attempt 3
2024-01-18T00:37:59.692Z zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_d4b930fb36d5ec118a8e1fb1a1ca919a-if00-port0","baudRate":115200,"rtscts":true,"autoOpen":false}
2024-01-18T00:37:59.693Z zigbee-herdsman:adapter:ezsp:erro Connection attempt 3 error: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_d4b930fb36d5ec118a8e1fb1a1ca919a-if00-port0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:94:28)
    at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:82:22)
    at /app/node_modules/@serialport/stream/dist/index.js:118:18
2024-01-18T00:38:04.693Z zigbee-herdsman:adapter:ezsp:ezsp Next attempt 4
2024-01-18T00:38:04.693Z zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_d4b930fb36d5ec118a8e1fb1a1ca919a-if00-port0","baudRate":115200,"rtscts":true,"autoOpen":false}
2024-01-18T00:38:04.694Z zigbee-herdsman:adapter:ezsp:erro Connection attempt 4 error: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_d4b930fb36d5ec118a8e1fb1a1ca919a-if00-port0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:94:28)
    at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:82:22)
    at /app/node_modules/@serialport/stream/dist/index.js:118:18
2024-01-18T00:38:09.695Z zigbee-herdsman:adapter:ezsp:ezsp Next attempt 5
2024-01-18T00:38:09.709Z zigbee-herdsman:adapter:ezsp:erro Reset error Error: Failure to connect
    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:277:19)
    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:139:9)
    at Driver.onReset (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:111:17)
2024-01-18T00:38:09.709Z zigbee-herdsman:adapter:ezsp:driv Pause 10sec before try 1
2024-01-18T00:38:19.715Z zigbee-herdsman:adapter:ezsp:driv Reset connection. Try 1
2024-01-18T00:38:19.715Z zigbee-herdsman:adapter:ezsp:driv Stop driver
2024-01-18T00:38:19.715Z zigbee-herdsman:adapter:ezsp:ezsp Stop ezsp
2024-01-18T00:38:19.715Z zigbee-herdsman:adapter:ezsp:ezsp Close ezsp
2024-01-18T00:38:19.715Z zigbee-herdsman:adapter:ezsp:driv Close driver

To get more information, I pulled the kernel logs. The attached log is filtered on the relevant lines. The logs below are filtered on lines which are more unique.

Jan 17 19:37:43 server kernel: [887812.694496] usb 1-3.3: clear tt 1 (9052) error -71
Jan 17 19:37:43 server kernel: [887812.694744] usb 1-3.3: clear tt 1 (9042) error -71
...
Jan 17 19:37:44 server kernel: [887812.977357] cp210x ttyUSB0: usb_serial_generic_write_bulk_callback - nonzero urb status: -71
Jan 17 19:37:44 server kernel: [887812.979796] usb 1-3.3: clear tt 1 (9042) error -71
Jan 17 19:37:44 server kernel: [887812.979945] usb 1-3.3: clear tt 1 (1042) error -71
...

Jan 17 19:37:48 server kernel: [887817.519120] cp210x ttyUSB0: failed to get comm status: -71
Jan 17 19:37:48 server kernel: [887817.519375] usb 1-3.3: clear tt 1 (9042) error -71
Jan 17 19:37:48 server kernel: [887817.519622] usb 1-3.3: clear tt 1 (8040) error -71
Jan 17 19:37:48 server kernel: [887817.519795] usb 1-3.3: clear tt 1 (9042) error -71
Jan 17 19:37:48 server kernel: [887817.519799] cp210x ttyUSB0: failed get req 0x14 size 16 status: -71
Jan 17 19:37:48 server kernel: [887817.519915] usb 1-3.3: clear tt 1 (8040) error -71
Jan 17 19:37:48 server kernel: [887817.520127] usb 1-3.3: clear tt 1 (9042) error -71
Jan 17 19:37:48 server kernel: [887817.520168] cp210x ttyUSB0: failed set request 0x12 status: -71
Jan 17 19:37:48 server kernel: [887817.520373] usb 1-3.3: clear tt 1 (0040) error -71
Jan 17 19:37:48 server kernel: [887817.520879] cp210x ttyUSB0: failed set request 0x0 status: -71
...

Jan 17 19:37:49 server kernel: [887818.525847] cp210x ttyUSB0: failed set request 0x0 status: -71
Jan 17 19:37:49 server kernel: [887818.525854] cp210x ttyUSB0: cp210x_open - Unable to enable UART

Jan 17 19:37:54 server kernel: [887823.208486] usb 1-3.3.1: USB disconnect, device number 38
Jan 17 19:37:54 server kernel: [887823.208724] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
Jan 17 19:37:54 server kernel: [887823.209063] cp210x 1-3.3.1:1.0: device disconnected
Jan 17 19:37:54 server kernel: [887823.336401] usb 1-3.3: reset high-speed USB device number 37 using xhci_hcd
Jan 17 19:37:54 server kernel: [887823.416697] usb 1-3.3: device descriptor read/64, error -71
Jan 17 19:37:54 server kernel: [887823.612694] usb 1-3.3: device descriptor read/64, error -71
Jan 17 19:37:54 server kernel: [887823.804694] usb 1-3.3: reset high-speed USB device number 37 using xhci_hcd
Jan 17 19:37:55 server kernel: [887823.884692] usb 1-3.3: device descriptor read/64, error -71
Jan 17 19:37:55 server kernel: [887824.084698] usb 1-3.3: device descriptor read/64, error -71
Jan 17 19:37:55 server kernel: [887824.280686] usb 1-3.3: reset high-speed USB device number 37 using xhci_hcd
Jan 17 19:37:55 server kernel: [887824.280718] usb 1-3.3: Device not responding to setup address.
Jan 17 19:37:55 server kernel: [887824.488702] usb 1-3.3: Device not responding to setup address.
Jan 17 19:37:55 server kernel: [887824.700660] usb 1-3.3: device not accepting address 37, error -71
Jan 17 19:37:55 server kernel: [887824.780670] usb 1-3.3: reset high-speed USB device number 37 using xhci_hcd
Jan 17 19:37:55 server kernel: [887824.780714] usb 1-3.3: Device not responding to setup address.
Jan 17 19:37:56 server kernel: [887824.988696] usb 1-3.3: Device not responding to setup address.
Jan 17 19:37:56 server kernel: [887825.196646] usb 1-3.3: device not accepting address 37, error -71
Jan 17 19:37:56 server kernel: [887825.198594] usb 1-3.3: USB disconnect, device number 37
Jan 17 19:37:56 server kernel: [887825.384654] usb 1-3.3: new high-speed USB device number 40 using xhci_hcd
Jan 17 19:37:56 server kernel: [887825.486339] usb 1-3.3: New USB device found, idVendor=214b, idProduct=7250, bcdDevice= 1.00
Jan 17 19:37:56 server kernel: [887825.486344] usb 1-3.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Jan 17 19:37:56 server kernel: [887825.486347] usb 1-3.3: Product: USB2.0 HUB
Jan 17 19:37:56 server kernel: [887825.544551] hub 1-3.3:1.0: USB hub found
Jan 17 19:37:56 server kernel: [887825.544714] hub 1-3.3:1.0: 4 ports detected
Jan 17 19:37:56 server kernel: [887825.836641] usb 1-3.3.1: new full-speed USB device number 41 using xhci_hcd
Jan 17 19:37:57 server kernel: [887825.959215] usb 1-3.3.1: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
Jan 17 19:37:57 server kernel: [887825.959220] usb 1-3.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 17 19:37:57 server kernel: [887825.959222] usb 1-3.3.1: Product: SkyConnect v1.0
Jan 17 19:37:57 server kernel: [887825.959224] usb 1-3.3.1: Manufacturer: Nabu Casa
Jan 17 19:37:57 server kernel: [887825.959225] usb 1-3.3.1: SerialNumber: d4b930fb36d5ec118a8e1fb1a1ca919a
Jan 17 19:37:57 server kernel: [887825.961323] cp210x 1-3.3.1:1.0: cp210x converter detected
Jan 17 19:37:57 server kernel: [887825.971608] usb 1-3.3.1: cp210x converter now attached to ttyUSB0

This is not an issue that occurs on v1.34.0 or earlier. Please let me know if you need any more information.


Additional info:

Configuration:

permit_join: false
availability: true
serial:
  adapter: ezsp
  port: >-
    /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_d4b930fb36d5ec118a8e1fb1a1ca919a-if00-port0
  baudrate: 115200
  rtscts: true
mqtt:
  base_topic: zigbee2mqtt2
  server: mqtt://XXX.XXX.XXX.XXX
  user: zigbee2mqtt2
  password: XXXXXXXXXXXXXX
  keepalive: 60
  reject_unauthorized: false
  version: 4
  include_device_information: true
advanced:
  pan_id: XXXX
  ikea_ota_use_test_url: true
  channel: 25
  network_key:
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
    - XXX
  log_syslog:
    app_name: Zigbee2MQTT
    eol: /n
    host: localhost
    localhost: localhost
    path: /dev/log
    pid: process.pid
    port: 123
    protocol: tcp4
    type: '5424'
  legacy_availability_payload: false
  last_seen: ISO_8601
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  log_level: info
frontend:
  port: 4980
homeassistant:
  status_topic: homeassistant/status
  legacy_entity_attributes: true
device_options:
  legacy: false
devices:
  ...
groups:
  ...
ota:
  ikea_ota_use_test_url: false

Docker-Compose:

services:
  zigbee2mqtt:
    container_name: zigbee2mqtt
    # image: koenkk/zigbee2mqtt:1.34.0
    image: koenkk/zigbee2mqtt
    volumes:
      - /run/udev:/run/udev:ro
      - ${SMART_DIR_LOCAL}/zigbee2mqtt2/data:/app/data
      - /dev/serial/by-id:/dev/serial/by-id
    devices:
      - /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_d4b930fb36d5ec118a8e1fb1a1ca919a-if00-port0:/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_d4b930fb36d5ec118a8e1fb1a1ca919a-if00-port0
    ports:
      - 27080:4980
    privileged: true
    restart: always
    depends_on:
      mqtt:
        condition: service_started
        restart: false
      homeassistant:
        condition: service_started
        restart: true
    environment: 
      TZ: ${TZ}
      PUID: ${PUID}
      PGID: ${PGID}
      LOG4J_FORMAT_MSG_NO_LOOKUPS: "true"
      DEBUG: zigbee-herdsman*

What did you expect to happen?

The Zigbee adapter should not crash.

How to reproduce it (minimal and precise)

Use SkyConnect (and possibly other EZSP adapters?). Run v1.35.0 or v1.35.1 and wait. It can take between a few minutes and 24 hours to crash.

Zigbee2MQTT version

1.35.0

Adapter firmware version

7.3.2.0 build 212, Gecko SDK v4.3.2.0

Adapter

SkyConnect

Setup

Z2M Docker

Debug log

See above

droans avatar Jan 18 '24 14:01 droans

I have the same issue. About onse a day randomly I start getting this error: Exception while calling fromZigbee converter: Command 0x70ac08fffe316a12/1 manuSpecificTuya.mcuGatewayConnectionStatus({"payloadSize":1,"payload":1}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (sendZclFrameToEndpointInternal error)} After some time later the whole Z2M stop wokring and I not receiving information from any of my sensors (I have 43 zigbees). After manual restart it Zibee2MQTT it works again.

TokoTSP avatar Jan 26 '24 06:01 TokoTSP

I have the issue with 1.35 too - though I don't see anything in the dmesg logs. I'm using the Sonoff dongle. I tried replacing the USB extension cable in case it was that but it made no difference.

In my case it fails frequently, often multiple times in the day, and it's not picked up by the container watchdog - it just stops working reporting or updating devices.

I've rolled back to 1.34 and everything has been stable since.

j4m3s avatar Jan 26 '24 07:01 j4m3s

@Nerivec is this something you could check?

Koenkk avatar Jan 27 '24 08:01 Koenkk

I don't think this is EZSP-related. Comparing Z2M versions 1.34.0...1.35.1, herdsman went from v0.25.0...v0.30.0. The only change to the EZSP code in all that, is the missing parentheses in init from a while back. (And I doubt a potential problem with converters would go as far as crashing the coordinator completely.)

@droans That error -71 in the kernel logs seems to be related to USB suspend. Could something have changed in your system roughly at the same time you updated Z2M (or because you updated you triggered some other update, like the USB driver)? A USB power issue seems to be the second cause of error -71...

Nerivec avatar Jan 27 '24 17:01 Nerivec

@Nerivec Negative.

The coordinator only crashes on 1.35.0/1.35.1. I've been on 1.34 since with no issues but experience the crash within a few hours after upgrading to 1.35.

droans avatar Jan 27 '24 20:01 droans

I don't know what system you are using exactly, but you could have restored a pre-breaking-update state when you rolled back (as in, an update that happened alongside Z2M's that also got reversed when you went back to 1.34)?

I can see this in the Dockerfile that changed and could affect the underlaying hardware, even though it's only a patch version...

-FROM alpine:3.18.4 as base
+FROM alpine:3.18.5 as base

https://git.alpinelinux.org/aports/log/?h=v3.18.5 @Koenkk Do you follow the changes there? (It's a long list 😅)

Last resort... If you are comfortable/familiar with the swap, you could always try the EDGE version, it should fix quite a few EZSP issues in the init/reset logic. But since the versions you mentioned don't bring any difference to EZSP I doubt it would make... well, a difference...

Nerivec avatar Jan 27 '24 21:01 Nerivec

@droans are you using the z2m docker container or the z2m HA docker container (HA addon)

Koenkk avatar Jan 28 '24 19:01 Koenkk

Docker on Ubuntu 22.04.

droans avatar Jan 28 '24 20:01 droans

In case it's of use I'm using haos on a pi and was seeing the frequent crashes until I rolled back to 1.34 :) No USB issues in dmesg on my side though (and using the Sonoff dongle).

On Sun, 28 Jan 2024, 20:01 droans, @.***> wrote:

Docker on Ubuntu 22.04.

— Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/20868#issuecomment-1913705986, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPIBE7GRPHOC5B2FUPO5ALYQ2VCXAVCNFSM6AAAAABCAMJKEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTG4YDKOJYGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

j4m3s avatar Jan 28 '24 21:01 j4m3s

@j4m3s Dongle E or Dongle P?

I'm assuming E since the original post was about EZSP. I have the Dongle E on HAOS, but on an Intel NUC. I didn't get a single error (much less crash) since I updated to 1.35, been running ever since... It is plugged into a USB3.0 port with a decent cable length (though it used to sit right next to the NUC without issue either).

What's the firmware version of your adapter? If you are on 6.x.x try going to 7.3.x. I've had it running for about three months now, no issue. 6 is getting old... 7.4.0 will get support in next release (only EDGE right now)! https://darkxst.github.io/silabs-firmware-builder/

Nerivec avatar Jan 28 '24 22:01 Nerivec

@Nerivec

I've been running the SkyConnect 7.3.2.0 for months now unfortunately. I use a long USB extension cable with a USB 2.0 hub at the end of it. My Zigbee and Z-Wave dongles are plugged into short extension cables attached to that.

I've built 1.35.1 locally with Alpine v3.18.4 since that seems to be the most likely issue... I'll see if it still crashes.

droans avatar Jan 29 '24 14:01 droans

I've built 1.35.1 locally with Alpine v3.18.4 since that seems to be the most likely issue... I'll see if it still crashes.

Great! Let me know. PS: You should also be able to check USB power with lsusb -v, with a bit of luck, you might see something relevant. Could be the hub is not getting enough juice... (as to why that would happen only with latest version...)

Nerivec avatar Jan 29 '24 15:01 Nerivec

@Nerivec yes Dongle-E and you're dead right, firmware version 6.10.3.0 build 297. I'm upgrading to 7.3.1.0 build 176 as we speak, I'll report back on stability in a day or two!

That firmware updater was reeeeeally easy. Wouldn't work on Linux unfortunately even through Chromium but worked like a dream in Windows.

j4m3s avatar Jan 29 '24 21:01 j4m3s

It's been about eight hours so far and no issues... Usually by now it would have crashed. I'll keep it running and update tomorrow.

droans avatar Jan 29 '24 22:01 droans

@Koenkk Flagging this in case you're not subscribed anymore, since release day is approaching and you'll probably do some housekeeping... Seems there might indeed be some problem related to Alpine, @droans is reporting better behavior from building Z2M 1.35.1 with Alpine 3.18.4 instead of 3.18.5...

Nerivec avatar Jan 29 '24 23:01 Nerivec

@Nerivec

Unfortunately it crashed again this morning, surprisingly lasting about 18 hours.

Interestingly, the dmesg errors and the Herdsman errors were slightly out of sync. The dmesg errors first start at 4:13:50. Herdsman reports a wait success at 4:13:45 followed by a watchdog wait at 4:13:55 and a failure two seconds later.

My guess at this point is that it's possibly due to a dependency change or maybe even a device converter? I'm not confident on it being a dependency, though... I looked through the changes about a week ago and didn't see any that would affect the operation; they all seemed to be related to the linter or utility.

I do have an "odd" network so maybe that? My old coordinator, a TI LAUNCHXL, is being used as a router so I suppose it could be causing issues. I also used to have some problems with my Ikea outlets dropping off with the SkyConnect but I haven't seen that occur in months.

I also used the lsusb suggestion but it doesn't seem like I can get power reporting from it, though; the closest I see is max power which is always reporting 100mA.

Would you have any suggestions on how I can help diagnose this further? I've got backups of my data so I'm not worried if there's a risk of destroying my data. I can also provide reasonable access to my instance if needed.

I'll upload new logs in a couple hours.

droans avatar Jan 30 '24 12:01 droans

New logs...

Z2M

Filtered Syslog

Oddly, Z2M worked perfectly fine from when I started yesterday until it restarted at 3:30 AM due to HA restarting. At that point, it worked for about 45 minutes until it went down.

I couldn't find anything in related logs that seems relevant... No HA or MQTT issues, no unexpected Docker logs, etc.

I rebuilt my container using zigbee-herdsman-converters 15.130.1. We'll see if that makes a difference. If not, my next steps would be to rebuild it with zigbee-herdsman 0.25.

droans avatar Jan 30 '24 16:01 droans

Thanks for the detailed report. Unfortunately, like you mentioned, I didn't find anything relevant in the logs... There's a ~45min gap at the beginning of your syslog though, seems strange..? You wouldn't have the RAM usage pre-crash by any chance? Same question as above, what firmware "supplier" are you using for the skyconnect (Nabu, darkxst, etc)? You could try to re-flash, even same version, just in case something weird is going on... Another thing you can check, the configuration.yaml file (directly, not via config UI)... to make sure it wasn't somehow duplicated (the folder), or improperly saved by the UI.

Possibly https://github.com/Koenkk/zigbee-herdsman/pull/897 will help.

Error 71 should be -EPROTO, but that's not very helpful...

Ref: https://github.com/torvalds/linux/blob/861c0981648f5b64c86fd028ee622096eb7af05a/drivers/usb/serial/cp210x.c

Nerivec avatar Jan 30 '24 18:01 Nerivec

@Nerivec downgraded to 3.18.4 just in case

Koenkk avatar Jan 30 '24 19:01 Koenkk

There's a ~45min gap at the beginning of your syslog though, seems strange..?

I left that in the syslog intentionally in case you thought it could be relevant. It's from when Docker started the container up.

You wouldn't have the RAM usage pre-crash by any chance?

I actually do! Unfortunately, it doesn't seem to show any issues. None of my other hardware data show anything unusual either...

image

Same question as above, what firmware "supplier" are you using for the skyconnect (Nabu, darkxst, etc)? You could try to re-flash, even same version, just in case something weird is going on...

I installed it using the Nabu Casa online flasher. I can give that a try if my other attempts don't help.

Another thing you can check, the configuration.yaml file (directly, not via config UI)... to make sure it wasn't somehow duplicated (the folder), or improperly saved by the UI.

It doesn't seem like I do.

image

Possibly https://github.com/Koenkk/zigbee-herdsman/pull/897 will help.

Thanks - will try it out next.

droans avatar Jan 30 '24 19:01 droans