zigbee2mqtt / hassio-zigbee2mqtt

Official Zigbee2MQTT Home Assistant add-on
https://www.zigbee2mqtt.io
Apache License 2.0
1.02k stars 369 forks source link

Z2M stopped working. Connection lost? #535

Closed Krzysztonek closed 6 months ago

Krzysztonek commented 7 months ago

Description of the issue

What happened?

Since 18.11.2023 early morning Z2M add-on is not running at all. obraz

HA instance is not able to contol zigbee devices. Config is as follows:

data_path: /config/z2m_sky
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:
  server: mqtt://core-mosquitto:1883
  user: zigbee
  password: zigbee
  keepalive: 90
  reject_unauthorized: true
  version: 5
  base_topic: z2m
  include_device_information: true
serial:
  port: /dev/ttyUSB0
  adapter: ezsp
  disable_led: true
  rtscts: true
homeassistant:
  legacy_entity_attributes: true

I'm stuck now... I don't know if I would be forced to reinstall Z2M add-on from scratch? How to do it avoiding re-pairing all of over 120 devices? It would be very demanding and difficult action to perform..

On the Portainer.io dashboard I see this: obraz

What did you expect to happen?

Z2M add-on should run

How to reproduce it (minimal and precise)

?

Zigbee2MQTT version

1.33.2-1

Adapter firmware version

DEVLINKS: >- /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_30c07efc368dec119afc69e883c5466d-if00-port0 /dev/serial/by-path/pci-0000:00:1d.0-usb-0:1.2:1.0-port0 DEVNAME: /dev/ttyUSB0 DEVPATH: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/ttyUSB0/tty/ttyUSB0 ID_BUS: usb ID_MODEL: SkyConnect_v1.0 ID_MODEL_ENC: SkyConnect\x20v1.0 ID_MODEL_ID: ea60 ID_PATH: pci-0000:00:1d.0-usb-0:1.2:1.0 ID_PATH_TAG: pci-0000_00_1d_0-usb-0_1_2_1_0 ID_REVISION: '0100' ID_SERIAL: Nabu_Casa_SkyConnect_v1.0_30c07efc368dec119afc69e883c5466d ID_SERIAL_SHORT: 30c07efc368dec119afc69e883c5466d ID_TYPE: generic ID_USB_DRIVER: cp210x ID_USB_INTERFACES: ':ff0000:' ID_USB_INTERFACE_NUM: '00' ID_USB_MODEL: SkyConnect_v1.0 ID_USB_MODEL_ENC: SkyConnect\x20v1.0 ID_USB_MODEL_ID: ea60 ID_USB_REVISION: '0100' ID_USB_SERIAL: Nabu_Casa_SkyConnect_v1.0_30c07efc368dec119afc69e883c5466d ID_USB_SERIAL_SHORT: 30c07efc368dec119afc69e883c5466d ID_USB_TYPE: generic ID_USB_VENDOR: Nabu_Casa ID_USB_VENDOR_ENC: Nabu\x20Casa ID_USB_VENDOR_ID: 10c4 ID_VENDOR: Nabu_Casa ID_VENDOR_ENC: Nabu\x20Casa ID_VENDOR_ID: 10c4 MAJOR: '188' MINOR: '0' SUBSYSTEM: tty TAGS: ':systemd:' USEC_INITIALIZED: '3703775'

Adapter

Nabu_Casa_SkyConnect_v1.0

I have also run Inspect Z2M container and I got this:

e428dae33b531460998c3d7e3842a96bfdad87da490079665204442edcacf448

    AppArmorProfile docker-default
    Args
        0 --
        1 /docker-entrypoint.sh
    Config
        AttachStderr false
        AttachStdin false
        AttachStdout false
        Cmd
        Domainname local.hass.io
        Entrypoint
            0 /sbin/tini
            1 --
            2 /docker-entrypoint.sh
        Env
            0 TZ=Europe/Warsaw
            1 SUPERVISOR_TOKEN=90ed319b4b0a46da35b36877634db93d590c8150922f8ccc9f830e95bbd96ed8d12b4fd8347b96528d5e248165cdb84751d99b860ae8d5aa
            2 HASSIO_TOKEN=90ed319b4b0a46da35b36877634db93d590c8150922f8ccc9f830e95bbd96ed8d12b4fd8347b96528d5e248165cdb84751d99b860ae8d5aa
            3 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
            4 LANG=C.UTF-8
            5 S6_BEHAVIOUR_IF_STAGE2_FAILS=2
            6 S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
            7 S6_CMD_WAIT_FOR_SERVICES=1
            8 S6_SERVICES_READYTIME=50
            9 NODE_ENV=production
        ExposedPorts
            8485/tcp
        Hostname 9336c2b0-zigbee2mqtt
        Image zigbee2mqtt/zigbee2mqtt-amd64:1.33.2-1
        Labels
            io.hass.arch amd64
            io.hass.base.arch amd64
            io.hass.base.image alpine:3.16
            io.hass.base.name alpine
            io.hass.base.version 2023.10.4
            io.hass.description Use your ZigBee devices without the vendors bridge or gateway
            io.hass.name Zigbee2MQTT
            io.hass.type addon
            io.hass.url https://github.com/zigbee2mqtt/hassio-zigbee2mqtt/tree/master/zigbee2mqtt
            io.hass.version 1.33.2-1
            org.opencontainers.image.created 2023-11-01 19:30:24+00:00
            org.opencontainers.image.source https://github.com/home-assistant/docker-base
            org.opencontainers.image.version 1.33.2-1
            supervisor_managed
        OnBuild
        OpenStdin false
        StdinOnce false
        Tty false
        User
        Volumes
        WorkingDir /app
    Created 2023-11-18T14:44:40.875376012Z
    Driver overlay2
    ExecIDs
    GraphDriver
        Data
            LowerDir /mnt/data/docker/overlay2/a36a5639f8bc2ab84ed1415a2c0b293827f863ed193698a76a76e36aa6cf905e-init/diff:/mnt/data/docker/overlay2/a14a789c6ad8ca4fe9c7b77c00dd43600ab7b72348e12b6640f3163a0462114d/diff:/mnt/data/docker/overlay2/5acb43f59b8df9e5478a14a2c0ea777820d84334dc9410acbd0361c63e0a34f1/diff:/mnt/data/docker/overlay2/9ff7a8e7ae3c24e2dbc57ddfb24cef914796f3bdf4b7185d38b9405dbf665cff/diff:/mnt/data/docker/overlay2/fe927b45addf7d8f98cc6d50beb55404bb7e1e732db0cd205c37916b5bb027fc/diff:/mnt/data/docker/overlay2/5bda38d5c7f26609266b3600d475c30f1d4618f9a33c6295d495ff8191abfbce/diff:/mnt/data/docker/overlay2/8aa499cf319dbf8d96359156921088d5be7eba420c3d0d6004034828e0bda3d5/diff:/mnt/data/docker/overlay2/23cbecef339cacf9df1e48a414bc5b17f9d4fc278576eae9052769ef92aaf3cc/diff:/mnt/data/docker/overlay2/d8af360ec00489574a6dce8a254c90949620fbfa816ac60a025d8b27ac0e3012/diff:/mnt/data/docker/overlay2/2e6e2621939abea707ccb018640aedd566232dc172cb00f2560bacf9eb830a02/diff:/mnt/data/docker/overlay2/d0ab728840ec00fde9fe9f314efa87784b51bada521f37aa73505fc90e2b0ab8/diff
            MergedDir /mnt/data/docker/overlay2/a36a5639f8bc2ab84ed1415a2c0b293827f863ed193698a76a76e36aa6cf905e/merged
            UpperDir /mnt/data/docker/overlay2/a36a5639f8bc2ab84ed1415a2c0b293827f863ed193698a76a76e36aa6cf905e/diff
            WorkDir /mnt/data/docker/overlay2/a36a5639f8bc2ab84ed1415a2c0b293827f863ed193698a76a76e36aa6cf905e/work
        Name overlay2
    HostConfig
        AutoRemove false
        Binds
        BlkioDeviceReadBps
        BlkioDeviceReadIOps
        BlkioDeviceWriteBps
        BlkioDeviceWriteIOps
        BlkioWeight 0
        BlkioWeightDevice
        CapAdd
        CapDrop
        Cgroup
        CgroupParent
        CgroupnsMode private
        ConsoleSize
            0 0
            1 0
        ContainerIDFile
        CpuCount 0
        CpuPercent 0
        CpuPeriod 0
        CpuQuota 0
        CpuRealtimePeriod 0
        CpuRealtimeRuntime 0
        CpuShares 0
        CpusetCpus
        CpusetMems
        DeviceCgroupRules
            0 c 4:65 rwm
            1 c 4:66 rwm
            2 c 204:* rwm
            3 c 4:67 rwm
            4 c 166:* rwm
            5 c 4:64 rwm
            6 c 188:* rwm
        DeviceRequests
        Devices
        Dns
            0 172.30.32.3
        DnsOptions
        DnsSearch
            0 local.hass.io
        ExtraHosts
            0 hassio:172.30.32.2
            1 supervisor:172.30.32.2
        GroupAdd
        IOMaximumBandwidth 0
        IOMaximumIOps 0
        Init false
        IpcMode private
        Isolation
        Links
        LogConfig
            Config
                tag {{.Name}}
            Type journald
        MaskedPaths
            0 /proc/asound
            1 /proc/acpi
            2 /proc/kcore
            3 /proc/keys
            4 /proc/latency_stats
            5 /proc/timer_list
            6 /proc/timer_stats
            7 /proc/sched_debug
            8 /proc/scsi
            9 /sys/firmware
        Memory 0
        MemoryReservation 0
        MemorySwap 0
        MemorySwappiness
        Mounts
            0
                ReadOnly true
                Source /dev
                Target /dev
                Type bind
            1
                Source /mnt/data/supervisor/addons/data/9336c2b0_zigbee2mqtt
                Target /data
                Type bind
            2
                Source /mnt/data/supervisor/homeassistant
                Target /config
                Type bind
            3
                BindOptions { Propagation: rslave }
                Source /mnt/data/supervisor/share
                Target /share
                Type bind
        NanoCpus 0
        NetworkMode default
        OomKillDisable
        OomScoreAdj 200
        PidMode
        PidsLimit
        PortBindings
            8485/tcp
                0
                    HostIp
                    HostPort 8485
        Privileged false
        PublishAllPorts false
        ReadonlyPaths
            0 /proc/bus
            1 /proc/fs
            2 /proc/irq
            3 /proc/sys
            4 /proc/sysrq-trigger
        ReadonlyRootfs false
        RestartPolicy
            MaximumRetryCount 0
            Name
        Runtime runc
        SecurityOpt
            0 seccomp=unconfined
        ShmSize 67108864
        Tmpfs
            /dev/shm
        UTSMode
        Ulimits
        UsernsMode
        VolumeDriver
        VolumesFrom
    HostnamePath /mnt/data/docker/containers/e428dae33b531460998c3d7e3842a96bfdad87da490079665204442edcacf448/hostname
    HostsPath /mnt/data/docker/containers/e428dae33b531460998c3d7e3842a96bfdad87da490079665204442edcacf448/hosts
    Id e428dae33b531460998c3d7e3842a96bfdad87da490079665204442edcacf448
    Image sha256:26df3e4a4e7f1a6e80984cfdcac896e74f08d3d34207f3b7222b00a489d8bc24
    LogPath
    MountLabel
    Mounts
        0
            Destination /share
            Mode
            Propagation rslave
            RW true
            Source /mnt/data/supervisor/share
            Type bind
        1
            Destination /dev
            Mode
            Propagation rprivate
            RW false
            Source /dev
            Type bind
        2
            Destination /data
            Mode
            Propagation rprivate
            RW true
            Source /mnt/data/supervisor/addons/data/9336c2b0_zigbee2mqtt
            Type bind
        3
            Destination /config
            Mode
            Propagation rprivate
            RW true
            Source /mnt/data/supervisor/homeassistant
            Type bind
    Name /addon_9336c2b0_zigbee2mqtt
    NetworkSettings
        Bridge
        EndpointID
        Gateway
        GlobalIPv6Address
        GlobalIPv6PrefixLen 0
        HairpinMode false
        IPAddress
        IPPrefixLen 0
        IPv6Gateway
        LinkLocalIPv6Address
        LinkLocalIPv6PrefixLen 0
        MacAddress
        Networks
            hassio
                Aliases
                    0 9336c2b0-zigbee2mqtt
                    1 e428dae33b53
                DriverOpts
                EndpointID
                Gateway
                GlobalIPv6Address
                GlobalIPv6PrefixLen 0
                IPAMConfig
                IPAddress
                IPPrefixLen 0
                IPv6Gateway
                Links
                MacAddress
                NetworkID b4600d863a8a900082f4272a7947a2068e5185434a7396cc86d47bcfab070ab9
        Ports
        SandboxID f02ec8aca66cf887493ba03bcf487aabab7e576862e7538c100deaf104aac4dc
        SandboxKey /var/run/docker/netns/f02ec8aca66c
        SecondaryIPAddresses
        SecondaryIPv6Addresses
    Path /sbin/tini
    Platform linux
    ProcessLabel
    ResolvConfPath /mnt/data/docker/containers/e428dae33b531460998c3d7e3842a96bfdad87da490079665204442edcacf448/resolv.conf
    RestartCount 0
    State
        Dead false
        Error
        ExitCode 1
        FinishedAt 2023-11-18T14:44:54.3769342Z
        OOMKilled false
        Paused false
        Pid 0
        Restarting false
        Running false
        StartedAt 2023-11-18T14:44:41.139973451Z
        Status exited

Addon version

1.33.2-1

Platform

obraz

Logs of the issue (if applicable)

[13:34:51] INFO: Preparing to start...
[13:34:52] INFO: Socat not enabled
[13:34:52] INFO: Zigbee Herdsman debug logging enabled
[13:34:52] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:debug 2023-11-18 13:34:54: Loaded state from file /config/z2m_sky/state.json
Zigbee2MQTT:info  2023-11-18 13:34:54: Logging to console and directory: '/config/z2m_sky/log/2023-11-18.13-34-54' filename: log.txt
Zigbee2MQTT:debug 2023-11-18 13:34:54: Removing old log directory '/config/z2m_sky/log/2023-11-18.13-32-20'
Zigbee2MQTT:info  2023-11-18 13:34:54: Starting Zigbee2MQTT version 1.33.2 (commit #unknown)
Zigbee2MQTT:info  2023-11-18 13:34:54: Starting zigbee-herdsman (0.21.0)
Zigbee2MQTT:debug 2023-11-18 13:34:54: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/config/z2m_sky/coordinator_backup.json","databaseBackupPath":"/config/z2m_sky/database.db.backup","databasePath":"/config/z2m_sky/database.db","network":{"channelList":[11],"extendedPanID":[125,47,193,240,180,159,183,194],"networkKey":"HIDDEN","panID":29003},"serialPort":{"adapter":"ezsp","path":"/dev/ttyUSB0","rtscts":true}}'
2023-11-18T12:34:54.966Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2023-11-18T12:34:54.967Z zigbee-herdsman:adapter:ezsp:debg Adapter concurrent: 8
2023-11-18T12:34:54.967Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[109,224,182,4,162,166,201,149,59,208,4,180,249,155,13,208],"panID":29003,"extendedPanID":[125,47,193,240,180,159,183,194],"channelList":[11]},"serialPort":{"rtscts":true,"path":"/dev/ttyUSB0","adapter":"ezsp"},"databasePath":"/config/z2m_sky/database.db","databaseBackupPath":"/config/z2m_sky/database.db.backup","backupPath":"/config/z2m_sky/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2023-11-18T12:34:54.969Z zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":true,"autoOpen":false}
2023-11-18T12:34:54.976Z zigbee-herdsman:adapter:ezsp:uart Serialport opened
2023-11-18T12:34:54.976Z zigbee-herdsman:adapter:ezsp:uart Uart reseting
2023-11-18T12:34:54.977Z zigbee-herdsman:adapter:ezsp:uart --> Write reset
2023-11-18T12:34:54.978Z zigbee-herdsman:adapter:ezsp:uart --> [1ac038bc7e]
2023-11-18T12:34:54.979Z zigbee-herdsman:adapter:ezsp:uart -?- waiting reset
2023-11-18T12:35:04.984Z zigbee-herdsman:adapter:ezsp:uart --> Error: Error: {"sequence":-1} after 10000ms
2023-11-18T12:35:04.985Z zigbee-herdsman:adapter:ezsp:driv Reset connection. Try 0
2023-11-18T12:35:04.985Z zigbee-herdsman:adapter:ezsp:driv Stop driver
2023-11-18T12:35:04.985Z zigbee-herdsman:adapter:ezsp:ezsp Stop ezsp
2023-11-18T12:35:04.986Z zigbee-herdsman:adapter:ezsp:ezsp Close ezsp
2023-11-18T12:35:04.986Z zigbee-herdsman:adapter:ezsp:driv Close driver
Error: Reset error: Error: {"sequence":-1} after 10000ms
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:299:23
    at Queue.executeNext (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:32:32)
github-actions[bot] commented 6 months ago

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