Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge πŸŒ‰, get rid of your proprietary Zigbee bridges πŸ”¨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.2k stars 1.68k forks source link

Zigbee2mqtt doesn't start anymore due to changed adapter path/location #17947

Closed Schmetterfliege closed 1 year ago

Schmetterfliege commented 1 year ago

What happened?

Came home to find that my zigbee devices didn't work anymore - with regards to any automations I made. The zigbee2mqtt frontend was still accessible, but the devices just didn't trigger my automations when pushing buttons etc. I'm running iobroker, so I tried updating my iobroker to see if that was the issue - nope. Couldn't start iobroker anymore, so I rebooted the Pi. After the reboot I ran a script to fix the iobroker installation, which then worked again. But zigbee2mqtt was still not available. I remember that I always had to manually start it after a reboot, but it just didn't start. Throwing this error:

` pi@raspberrypi:/opt/zigbee2mqtt $ sudo npm start

zigbee2mqtt@1.28.4 start node index.js Zigbee2MQTT:debug 2023-06-07 18:37:49: Loaded state from file /opt/zigbee2mqtt/data/state.json Zigbee2MQTT:info 2023-06-07 18:37:49: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2023-06-07.18-37-49' filename: log.txt Zigbee2MQTT:debug 2023-06-07 18:37:49: Removing old log directory '/opt/zigbee2mqtt/data/log/2023-06-07.18-29-58' Zigbee2MQTT:info 2023-06-07 18:37:50: Starting Zigbee2MQTT version 1.28.4 (commit #52e545f) Zigbee2MQTT:info 2023-06-07 18:37:50: Starting zigbee-herdsman (0.14.76) Zigbee2MQTT:debug 2023-06-07 18:37:50: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"deconz","path":"/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2253809-if00"}}' Zigbee2MQTT:error 2023-06-07 18:37:50: Error while starting zigbee-herdsman Zigbee2MQTT:error 2023-06-07 18:37:50: Failed to start zigbee Zigbee2MQTT:error 2023-06-07 18:37:50: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2023-06-07 18:37:50: Exiting... Zigbee2MQTT:error 2023-06-07 18:37:50: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2253809-if00' at SerialPort.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:200:28) at SerialPort._error (/opt/zigbee2mqtt/node_modules/@serialport/stream/lib/index.js:198:14) at /opt/zigbee2mqtt/node_modules/@serialport/stream/lib/index.js:242:12

Kind of obvious what's happening... pi@raspberrypi:/opt/zigbee2mqtt $ ls -l /dev/serial/by-id ls: cannot access '/dev/serial/by-id': No such file or directory pi@raspberrypi:/opt/zigbee2mqtt $ ls -l /dev/serial/ total 0 drwxr-xr-x 2 root root 60 Jun 7 18:44 by-path

For some reason, I only have "by-path" but no "by-id" in /dev/serial. No clue why or how it changed - or if it changed at all. pi@raspberrypi:/dev/serial/by-path $ ls platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0

There is a device, but I don't know if that is the adapter. There are no other usb devices connected to that pi. When checking with "dmesg", I get the following output (sorry, it is veeeery long and I have no clue how I can make it "hidden") `pi@raspberrypi:/dev/serial/by-path $ dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.15.61-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1579 SMP Fri Aug 26 11:13:03 BST 2022 [ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1 [ 0.000000] random: crng init done [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] Reserved memory: created CMA memory pool at 0x000000001ac00000, size 320 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000000000-0x000000002fffffff] [ 0.000000] Normal empty [ 0.000000] HighMem [mem 0x0000000030000000-0x00000000fbffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x000000003b3fffff] [ 0.000000] node 0: [mem 0x0000000040000000-0x00000000fbffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff] [ 0.000000] percpu: Embedded 16 pages/cpu s35788 r8192 d21556 u65536 [ 0.000000] pcpu-alloc: s35788 r8192 d21556 u65536 alloc=16*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1011008 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1920x1080M@60 smsc95xx.macaddr=DC:A6:32:3D:6D:A6 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=07bb870e-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles [ 0.000000] Kernel parameter elevator= does not have any effect anymore. Please use sysfs to set IO scheduler for individual devices. [ 0.000000] Unknown kernel command line parameters "splash", will be passed to user space. [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x0000000014890000-0x0000000018890000] (64MB) [ 0.000000] Memory: 3601328K/4050944K available (10240K kernel code, 1385K rwdata, 3304K rodata, 2048K init, 592K bss, 121936K reserved, 327680K cma-reserved, 3264512K highmem) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 35501 entries in 105 pages [ 0.000000] ftrace: allocated 105 pages with 4 groups [ 0.000000] trace event string verifier disabled [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns [ 0.000000] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns [ 0.000018] Switching to timer-based delay loop, resolution 18ns [ 0.000372] Console: colour dummy device 80x30 [ 0.000437] printk: console [tty1] enabled [ 0.000503] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000) [ 0.000536] pid_max: default: 32768 minimum: 301 [ 0.000675] LSM: Security Framework initializing [ 0.000882] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.000912] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.002489] cgroup: Disabling memory control group subsystem [ 0.002737] CPU: Testing write buffer coherency: ok [ 0.002795] CPU0: Spectre BHB: enabling loop workaround for all CPUs [ 0.003264] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.004631] Setting up static identity map for 0x200000 - 0x20003c [ 0.004854] rcu: Hierarchical SRCU implementation. [ 0.005872] smp: Bringing up secondary CPUs ... [ 0.007072] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.008398] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.009717] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.009921] smp: Brought up 1 node, 4 CPUs [ 0.009945] SMP: Total of 4 processors activated (432.00 BogoMIPS). [ 0.009964] CPU: All CPU(s) started in HYP mode. [ 0.009977] CPU: Virtualization extensions available. [ 0.010782] devtmpfs: initialized [ 0.026052] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0 [ 0.026260] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.026294] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.036690] pinctrl core: initialized pinctrl subsystem [ 0.038026] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.042688] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.043466] audit: initializing netlink subsys (disabled) [ 0.043736] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1 [ 0.044407] thermal_sys: Registered thermal governor 'step_wise' [ 0.045250] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.045271] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.045690] Serial: AMBA PL011 UART driver [ 0.056726] bcm2835-mbox fe00b880.mailbox: mailbox enabled [ 0.080043] raspberrypi-firmware soc:firmware: Attached to firmware from 2022-08-26T14:03:16, variant start [ 0.090060] raspberrypi-firmware soc:firmware: Firmware hash is 102f1e848393c2112206fadffaaf86db04e98326 [ 0.149517] Kprobes globally optimized [ 0.155588] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1 [ 0.159986] vgaarb: loaded [ 0.161038] SCSI subsystem initialized [ 0.161298] usbcore: registered new interface driver usbfs [ 0.161360] usbcore: registered new interface driver hub [ 0.161435] usbcore: registered new device driver usb [ 0.161784] usb_phy_generic phy: supply vcc not found, using dummy regulator [ 0.161987] usb_phy_generic phy: dummy supplies not allowed for exclusive requests [ 0.162323] pps_core: LinuxPPS API ver. 1 registered [ 0.162338] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.162380] PTP clock support registered [ 0.164147] clocksource: Switched to clocksource arch_sys_counter [ 0.244935] VFS: Disk quotas dquot_6.6.0 [ 0.245044] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.245228] FS-Cache: Loaded [ 0.245443] CacheFiles: Loaded [ 0.246526] simple-framebuffer 3e3cf000.framebuffer: framebuffer at 0x3e3cf000, 0x7f8000 bytes [ 0.246549] simple-framebuffer 3e3cf000.framebuffer: format=a8r8g8b8, mode=1920x1080x32, linelength=7680 [ 0.247089] Console: switching to colour frame buffer device 240x67 [ 0.257688] simple-framebuffer 3e3cf000.framebuffer: fb0: simplefb registered! [ 0.268160] NET: Registered PF_INET protocol family [ 0.268416] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.270057] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 0.270090] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.270116] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 0.270184] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.270256] TCP: Hash tables configured (established 8192 bind 8192) [ 0.270411] UDP hash table entries: 512 (order: 2, 16384 bytes, linear) [ 0.270449] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear) [ 0.270711] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.275123] RPC: Registered named UNIX socket transport module. [ 0.275142] RPC: Registered udp transport module. [ 0.275156] RPC: Registered tcp transport module. [ 0.275170] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.275194] PCI: CLS 0 bytes, default 64 [ 1.313395] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available [ 1.315857] Initialise system trusted keyrings [ 1.316171] workingset: timestamp_bits=14 max_order=20 bucket_order=6 [ 1.325176] zbud: loaded [ 1.327191] FS-Cache: Netfs 'nfs' registered for caching [ 1.328084] NFS: Registering the id_resolver key type [ 1.328127] Key type id_resolver registered [ 1.328142] Key type id_legacy registered [ 1.328272] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.328288] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 1.329400] Key type asymmetric registered [ 1.329417] Asymmetric key parser 'x509' registered [ 1.329649] bounce: pool size: 64 pages [ 1.329726] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247) [ 1.329969] io scheduler mq-deadline registered [ 1.329986] io scheduler kyber registered [ 1.338993] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges: [ 1.339038] brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff] [ 1.339133] brcm-pcie fd500000.pcie: MEM 0x0600000000..0x063fffffff -> 0x00c0000000 [ 1.339226] brcm-pcie fd500000.pcie: IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000 [ 1.396254] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC) [ 1.396660] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00 [ 1.396680] pci_bus 0000:00: root bus resource [bus 00-ff] [ 1.396703] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff]) [ 1.396797] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400 [ 1.397044] pci 0000:00:00.0: PME# supported from D0 D3hot [ 1.400706] PCI: bus0: Fast back to back transfers disabled [ 1.401045] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330 [ 1.401175] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit] [ 1.401639] pci 0000:01:00.0: PME# supported from D0 D3cold [ 1.405298] PCI: bus1: Fast back to back transfers disabled [ 1.405360] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff] [ 1.405388] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit] [ 1.405474] pci 0000:00:00.0: PCI bridge to [bus 01] [ 1.405500] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff] [ 1.405916] pcieport 0000:00:00.0: enabling device (0140 -> 0142) [ 1.406150] pcieport 0000:00:00.0: PME: Signaling with IRQ 59 [ 1.418747] iproc-rng200 fe104000.rng: hwrng registered [ 1.419067] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB) [ 1.420524] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000 [ 1.433533] brd: module loaded [ 1.444051] loop: module loaded [ 1.444841] Loading iSCSI transport class v2.0-870. [ 1.449996] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000 [ 1.544319] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus [ 1.545567] usbcore: registered new interface driver r8152 [ 1.545657] usbcore: registered new interface driver lan78xx [ 1.545719] usbcore: registered new interface driver smsc95xx [ 1.547338] xhci_hcd 0000:01:00.0: enabling device (0140 -> 0142) [ 1.547521] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 1.547557] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1 [ 1.553241] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x00003c0000000890 [ 1.554365] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 1.554393] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2 [ 1.554420] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed [ 1.554816] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15 [ 1.554840] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.554859] usb usb1: Product: xHCI Host Controller [ 1.554876] usb usb1: Manufacturer: Linux 5.15.61-v7l+ xhci-hcd [ 1.554892] usb usb1: SerialNumber: 0000:01:00.0 [ 1.555651] hub 1-0:1.0: USB hub found [ 1.555723] hub 1-0:1.0: 1 port detected [ 1.556818] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15 [ 1.556840] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.556859] usb usb2: Product: xHCI Host Controller [ 1.556876] usb usb2: Manufacturer: Linux 5.15.61-v7l+ xhci-hcd [ 1.556893] usb usb2: SerialNumber: 0000:01:00.0 [ 1.557603] hub 2-0:1.0: USB hub found [ 1.557699] hub 2-0:1.0: 4 ports detected [ 1.559448] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 1.559746] dwc_otg: FIQ enabled [ 1.559762] dwc_otg: NAK holdoff enabled [ 1.559776] dwc_otg: FIQ split-transaction FSM enabled [ 1.559795] Module dwc_common_port init [ 1.560255] usbcore: registered new interface driver uas [ 1.560365] usbcore: registered new interface driver usb-storage [ 1.560586] mousedev: PS/2 mouse device common for all mice [ 1.565619] sdhci: Secure Digital Host Controller Interface driver [ 1.565639] sdhci: Copyright(c) Pierre Ossman [ 1.566248] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.569900] ledtrig-cpu: registered to indicate activity on CPUs [ 1.570258] hid: raw HID events driver (C) Jiri Kosina [ 1.570447] usbcore: registered new interface driver usbhid [ 1.570463] usbhid: USB HID core driver [ 1.576940] Initializing XFRM netlink socket [ 1.576987] NET: Registered PF_PACKET protocol family [ 1.577100] Key type dns_resolver registered [ 1.577617] Registering SWP/SWPB emulation handler [ 1.578424] registered taskstats version 1 [ 1.578456] Loading compiled-in X.509 certificates [ 1.579315] Key type ._fscrypt registered [ 1.579332] Key type .fscrypt registered [ 1.579348] Key type fscrypt-provisioning registered [ 1.591483] uart-pl011 fe201000.serial: there is not valid maps for state default [ 1.591815] uart-pl011 fe201000.serial: cts_event_workaround enabled [ 1.591971] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 32, base_baud = 0) is a PL011 rev2 [ 1.601396] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 1.601886] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 1.603194] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 1.603214] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated [ 1.633490] of_cfs_init [ 1.633740] of_cfs_init: OK [ 1.669538] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA [ 1.669872] Waiting for root device PARTUUID=07bb870e-02... [ 1.773429] mmc0: new ultra high speed DDR50 SDXC card at address aaaa [ 1.775283] mmc1: new high speed SDIO card at address 0001 [ 1.776190] mmcblk0: mmc0:aaaa SN64G 59.5 GiB [ 1.779804] mmcblk0: p1 p2 [ 1.780372] mmcblk0: mmc0:aaaa SN64G 59.5 GiB [ 1.812710] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none. [ 1.812805] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. [ 1.813624] devtmpfs: mounted [ 1.824857] Freeing unused kernel image (initmem) memory: 2048K [ 1.834487] Run /sbin/init as init process [ 1.834505] with arguments: [ 1.834518] /sbin/init [ 1.834532] splash [ 1.834545] with environment: [ 1.834557] HOME=/ [ 1.834569] TERM=linux [ 1.844208] usb 1-1: new high-speed USB device number 2 using xhci_hcd [ 2.026823] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21 [ 2.026858] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 2.026879] usb 1-1: Product: USB2.0 Hub [ 2.029207] hub 1-1:1.0: USB hub found [ 2.029502] hub 1-1:1.0: 4 ports detected [ 2.266236] systemd[1]: System time before build time, advancing clock. [ 2.354265] usb 1-1.2: new full-speed USB device number 3 using xhci_hcd [ 2.472287] NET: Registered PF_INET6 protocol family [ 2.474084] Segment Routing with IPv6 [ 2.474166] In-situ OAM (IOAM) with IPv6 [ 2.493666] usb 1-1.2: New USB device found, idVendor=1cf1, idProduct=0030, bcdDevice= 1.00 [ 2.493698] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2.493718] usb 1-1.2: Product: ConBee II [ 2.493736] usb 1-1.2: Manufacturer: dresden elektronik ingenieurtechnik GmbH [ 2.493753] usb 1-1.2: SerialNumber: DE2253809 [ 2.557299] systemd[1]: systemd 247.3-7+deb11u2 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified) [ 2.558201] systemd[1]: Detected architecture arm. [ 2.562831] systemd[1]: Set hostname to . [ 3.545883] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed. [ 3.779820] systemd[1]: Queued start job for default target Graphical Interface. [ 3.783435] systemd[1]: Created slice system-getty.slice. [ 3.784844] systemd[1]: Created slice system-modprobe.slice. [ 3.785885] systemd[1]: Created slice system-openvpn.slice. [ 3.786961] systemd[1]: Created slice system-systemd\x2dfsck.slice. [ 3.787778] systemd[1]: Created slice User and Session Slice. [ 3.788344] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 3.789489] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ 3.790407] systemd[1]: Reached target Slices. [ 3.790663] systemd[1]: Reached target Swap. [ 3.791768] systemd[1]: Listening on Syslog Socket. [ 3.794988] systemd[1]: Listening on fsck to fsckd communication Socket. [ 3.795478] systemd[1]: Listening on initctl Compatibility Named Pipe. [ 3.797757] systemd[1]: Listening on Journal Audit Socket. [ 3.798537] systemd[1]: Listening on Journal Socket (/dev/log). [ 3.799432] systemd[1]: Listening on Journal Socket. [ 3.800397] systemd[1]: Listening on udev Control Socket. [ 3.801054] systemd[1]: Listening on udev Kernel Socket. [ 3.801958] systemd[1]: Condition check resulted in Huge Pages File System being skipped. [ 3.807240] systemd[1]: Mounting POSIX Message Queue File System... [ 3.813744] systemd[1]: Mounting RPC Pipe File System... [ 3.820739] systemd[1]: Mounting Kernel Debug File System... [ 3.828345] systemd[1]: Mounting Kernel Trace File System... [ 3.829005] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped. [ 3.838554] systemd[1]: Starting Restore / save the current clock... [ 3.851135] systemd[1]: Starting Set the console keyboard layout... [ 3.858360] systemd[1]: Starting Create list of static device nodes for the current kernel... [ 3.866491] systemd[1]: Starting Load Kernel Module configfs... [ 3.874329] systemd[1]: Starting Load Kernel Module drm... [ 3.881830] systemd[1]: Starting Load Kernel Module fuse... [ 3.891748] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped. [ 3.904588] systemd[1]: Starting File System Check on Root Device... [ 3.916306] systemd[1]: Starting Journal Service... [ 3.954922] systemd[1]: Starting Load Kernel Modules... [ 3.969760] systemd[1]: Starting Coldplug All udev Devices... [ 4.014977] systemd[1]: Mounted POSIX Message Queue File System. [ 4.015890] systemd[1]: Mounted RPC Pipe File System. [ 4.016705] systemd[1]: Mounted Kernel Debug File System. [ 4.017476] systemd[1]: Mounted Kernel Trace File System. [ 4.019614] systemd[1]: Finished Restore / save the current clock. [ 4.037044] systemd[1]: Finished Create list of static device nodes for the current kernel. [ 4.039542] systemd[1]: modprobe@configfs.service: Succeeded. [ 4.041160] systemd[1]: Finished Load Kernel Module configfs. [ 4.048628] fuse: init (API version 7.34) [ 4.054941] systemd[1]: Mounting Kernel Configuration File System... [ 4.063206] systemd[1]: Started File System Check Daemon to report status. [ 4.074074] systemd[1]: modprobe@fuse.service: Succeeded. [ 4.096159] systemd[1]: Finished Load Kernel Module fuse. [ 4.116900] systemd[1]: Mounting FUSE Control File System... [ 4.123556] systemd[1]: Mounted Kernel Configuration File System. [ 4.123672] i2c_dev: i2c /dev entries driver [ 4.161115] systemd[1]: Finished Load Kernel Modules. [ 4.162306] systemd[1]: Mounted FUSE Control File System. [ 4.184612] systemd[1]: Starting Apply Kernel Variables... [ 4.238644] systemd[1]: modprobe@drm.service: Succeeded. [ 4.240495] systemd[1]: Finished Load Kernel Module drm. [ 4.303154] systemd[1]: Finished File System Check on Root Device. [ 4.310139] systemd[1]: Starting Remount Root and Kernel File Systems... [ 4.318639] systemd[1]: Finished Apply Kernel Variables. [ 4.389519] systemd[1]: Started Journal Service. [ 4.705279] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: none. [ 4.770985] systemd-journald[143]: Received client request to flush runtime journal. [ 4.790756] systemd-journald[143]: File /var/log/journal/6edac946c45f44378a5e2a4c9b97d019/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 6.076306] mc: Linux media interface: v0.10 [ 6.237383] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned. [ 6.239673] bcm2835_vc_sm_cma_probe: Videocore shared memory driver

[ 6.294771] [vc_sm_connected_init]: installed successfully [ 6.323915] videodev: Linux video capture interface: v2.00 [ 6.419159] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 6.430602] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 6.443744] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned. [ 6.461635] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned. [ 6.476291] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13 [ 6.476890] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14 [ 6.477398] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15 [ 6.477827] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16 [ 6.477863] bcm2835-isp bcm2835-isp: Register output node 0 with media controller [ 6.477889] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller [ 6.477912] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller [ 6.477935] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller [ 6.494815] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20 [ 6.503571] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21 [ 6.504446] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22 [ 6.505006] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23 [ 6.505044] bcm2835-isp bcm2835-isp: Register output node 0 with media controller [ 6.505070] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller [ 6.505094] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller [ 6.505117] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller [ 6.505454] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp [ 6.804980] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 6.861876] bcm2835-codec bcm2835-codec: Device registered as /dev/video10 [ 6.861944] bcm2835-codec bcm2835-codec: Loaded V4L2 decode [ 6.882754] bcm2835-codec bcm2835-codec: Device registered as /dev/video11 [ 6.882804] bcm2835-codec bcm2835-codec: Loaded V4L2 encode [ 6.886871] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 6.907414] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned. [ 6.947612] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 6.957998] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid [ 6.961339] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 6.999264] bcm2835_audio bcm2835_audio: card created with 4 channels [ 7.021436] rpivid feb10000.codec: Device registered as /dev/video19 [ 7.037309] bcm2835-codec bcm2835-codec: Device registered as /dev/video12 [ 7.037444] bcm2835-codec bcm2835-codec: Loaded V4L2 isp [ 7.054783] bcm2835-codec bcm2835-codec: Device registered as /dev/video18 [ 7.054855] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx [ 7.092149] brcmfmac: F1 signature read @0x18000000=0x15264345 [ 7.093475] bcm2835-codec bcm2835-codec: Device registered as /dev/video31 [ 7.093533] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image [ 7.101393] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 [ 7.102848] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2 [ 7.104538] usbcore: registered new interface driver brcmfmac [ 7.213393] bcm2835_audio bcm2835_audio: card created with 4 channels [ 7.217607] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0 [ 7.420097] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 [ 7.420324] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 [ 7.426587] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov 1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60 [ 8.701564] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device [ 8.701829] usbcore: registered new interface driver cdc_acm [ 8.701848] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters [ 8.798526] checking generic (3e3cf000 7f8000) vs hw (0 ffffffffffffffff) [ 8.798558] fb0: switching to vc4 from simple [ 8.911417] Console: switching to colour dummy device 80x30 [ 8.915975] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4]) [ 8.936372] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1 [ 8.944202] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 8.944229] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 8.944244] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 8.944258] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 8.944273] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 8.944289] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 8.944312] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 8.944331] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 9.096939] Console: switching to colour frame buffer device 240x67 [ 9.123390] vc4-drm gpu: [drm] fb0: vc4drmfb frame buffer device [ 10.122667] 8021q: 802.1Q VLAN Support v1.8 [ 10.296271] uart-pl011 fe201000.serial: no DMA platform data [ 10.492062] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS [ 10.633195] Bluetooth: Core ver 2.22 [ 10.633266] NET: Registered PF_BLUETOOTH protocol family [ 10.633273] Bluetooth: HCI device and connection manager initialized [ 10.633289] Bluetooth: HCI socket layer initialized [ 10.633298] Bluetooth: L2CAP socket layer initialized [ 10.633313] Bluetooth: SCO socket layer initialized [ 11.131775] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay) [ 11.133246] bcmgenet fd580000.ethernet eth0: Link is Down [ 16.314438] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 16.314504] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 16.708694] tun: Universal TUN/TAP device driver, 1.6 [ 17.836389] ICMPv6: process dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.retrans_time - use net.ipv6.neigh.eth0.retrans_time_ms instead [ 18.953252] Bluetooth: HCI UART driver ver 2.3 [ 18.953269] Bluetooth: HCI UART protocol H4 registered [ 18.953334] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 18.953497] Bluetooth: HCI UART protocol Broadcom registered [ 19.545455] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 19.545470] Bluetooth: BNEP filters: protocol multicast [ 19.545485] Bluetooth: BNEP socket layer initialized [ 19.571904] NET: Registered PF_ALG protocol family [ 19.609962] cryptd: max_cpu_qlen set to 1000 [ 19.741546] Bluetooth: RFCOMM TTY layer initialized [ 19.741570] Bluetooth: RFCOMM socket layer initialized [ 19.741589] Bluetooth: RFCOMM ver 1.11 [ 31.836353] cam-dummy-reg: disabling [ 211.438045] usb 1-1.2: USB disconnect, device number 3 [ 211.751020] usb 1-1.2: new full-speed USB device number 4 using xhci_hcd [ 211.890112] usb 1-1.2: New USB device found, idVendor=1cf1, idProduct=0030, bcdDevice= 1.00 [ 211.890127] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 211.890198] usb 1-1.2: Product: ConBee II [ 211.890206] usb 1-1.2: Manufacturer: dresden elektronik ingenieurtechnik GmbH [ 211.890213] usb 1-1.2: SerialNumber: DE2253809 [ 211.899527] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device [ 215.278639] usb 1-1.2: USB disconnect, device number 4 [ 215.641575] usb 1-1.2: new full-speed USB device number 5 using xhci_hcd [ 215.780678] usb 1-1.2: New USB device found, idVendor=1cf1, idProduct=0030, bcdDevice= 1.00 [ 215.780694] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 215.780703] usb 1-1.2: Product: ConBee II [ 215.780710] usb 1-1.2: Manufacturer: dresden elektronik ingenieurtechnik GmbH [ 215.780717] usb 1-1.2: SerialNumber: DE2253809 [ 215.786098] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device [ 639.788172] usb 1-1.2: USB disconnect, device number 5 [ 640.111324] usb 1-1.2: new full-speed USB device number 6 using xhci_hcd [ 640.250643] usb 1-1.2: New USB device found, idVendor=1cf1, idProduct=0030, bcdDevice= 1.00 [ 640.250674] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 640.250694] usb 1-1.2: Product: ConBee II [ 640.250711] usb 1-1.2: Manufacturer: dresden elektronik ingenieurtechnik GmbH [ 640.250728] usb 1-1.2: SerialNumber: DE2253809 [ 640.258250] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device [ 643.628677] usb 1-1.2: USB disconnect, device number 6 [ 643.951455] usb 1-1.2: new full-speed USB device number 7 using xhci_hcd [ 644.090699] usb 1-1.2: New USB device found, idVendor=1cf1, idProduct=0030, bcdDevice= 1.00 [ 644.090730] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 644.090751] usb 1-1.2: Product: ConBee II [ 644.090768] usb 1-1.2: Manufacturer: dresden elektronik ingenieurtechnik GmbH [ 644.090785] usb 1-1.2: SerialNumber: DE2253809 [ 644.100313] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device [ 725.304532] usb 1-1.2: USB disconnect, device number 7 [ 725.605206] usb 1-1.2: new full-speed USB device number 8 using xhci_hcd [ 725.744541] usb 1-1.2: New USB device found, idVendor=1cf1, idProduct=0030, bcdDevice= 1.00 [ 725.744573] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 725.744594] usb 1-1.2: Product: ConBee II [ 725.744612] usb 1-1.2: Manufacturer: dresden elektronik ingenieurtechnik GmbH [ 725.744629] usb 1-1.2: SerialNumber: DE2253809 [ 725.752267] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device [ 729.145086] usb 1-1.2: USB disconnect, device number 8 [ 729.455442] usb 1-1.2: new full-speed USB device number 9 using xhci_hcd [ 729.594849] usb 1-1.2: New USB device found, idVendor=1cf1, idProduct=0030, bcdDevice= 1.00 [ 729.594880] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 729.594901] usb 1-1.2: Product: ConBee II [ 729.594918] usb 1-1.2: Manufacturer: dresden elektronik ingenieurtechnik GmbH [ 729.594935] usb 1-1.2: SerialNumber: DE2253809 [ 729.602357] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device [ 772.670786] usb 1-1.2: USB disconnect, device number 9 [ 772.978238] usb 1-1.2: new full-speed USB device number 10 using xhci_hcd [ 773.117403] usb 1-1.2: New USB device found, idVendor=1cf1, idProduct=0030, bcdDevice= 1.00 [ 773.117431] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 773.117449] usb 1-1.2: Product: ConBee II [ 773.117464] usb 1-1.2: Manufacturer: dresden elektronik ingenieurtechnik GmbH [ 773.117479] usb 1-1.2: SerialNumber: DE2253809 [ 773.124915] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device [ 776.512008] usb 1-1.2: USB disconnect, device number 10 [ 776.838495] usb 1-1.2: new full-speed USB device number 11 using xhci_hcd [ 776.977563] usb 1-1.2: New USB device found, idVendor=1cf1, idProduct=0030, bcdDevice= 1.00 [ 776.977579] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 776.977587] usb 1-1.2: Product: ConBee II [ 776.977594] usb 1-1.2: Manufacturer: dresden elektronik ingenieurtechnik GmbH [ 776.977601] usb 1-1.2: SerialNumber: DE2253809 [ 776.982935] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device [ 902.482163] usb 1-1.2: USB disconnect, device number 11 [ 904.868319] usb 1-1.1: new full-speed USB device number 12 using xhci_hcd [ 905.007657] usb 1-1.1: New USB device found, idVendor=1cf1, idProduct=0030, bcdDevice= 1.00 [ 905.007688] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 905.007708] usb 1-1.1: Product: ConBee II [ 905.007726] usb 1-1.1: Manufacturer: dresden elektronik ingenieurtechnik GmbH [ 905.007743] usb 1-1.1: SerialNumber: DE2253809 [ 905.015180] cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device [ 908.355099] usb 1-1.1: USB disconnect, device number 12 [ 908.668632] usb 1-1.1: new full-speed USB device number 13 using xhci_hcd [ 908.807834] usb 1-1.1: New USB device found, idVendor=1cf1, idProduct=0030, bcdDevice= 1.00 [ 908.807866] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 908.807887] usb 1-1.1: Product: ConBee II [ 908.807904] usb 1-1.1: Manufacturer: dresden elektronik ingenieurtechnik GmbH [ 908.807921] usb 1-1.1: SerialNumber: DE2253809 [ 908.817344] cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device

What did you expect to happen?

I have no idea what triggered it to fail while I was not at home. As far as I can tell, nothing seemed to have happened.

What can I do to fix this? How can I tell it to use "by-path" instead of "by-id" - IF that device there is the adapter....

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.28.4

Adapter firmware version

don't know, doesn't run

Adapter

usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2253809-if00

Debug log

No response

Schmetterfliege commented 1 year ago

Well, basically the question is... is the device in by-path my adapter? And if not, how can I fix this? Is my conbee stick suddenly broken? dmesg shows at least info regarding dresden-electronics, which is the manufacturer of this stick

Schmetterfliege commented 1 year ago

Updated zigbee2mqtt to 1.31.1, same issue. in the configuration.yaml I replaced the adapter path to the path of the device that is shown in by-path. After "npm start" I received a notification from Telegram of one of my devices, but the process still got me this error:

`pi@raspberrypi:/opt/zigbee2mqtt $ npm start

zigbee2mqtt@1.31.1 start node index.js

Zigbee2MQTT:debug 2023-06-07 19:14:46: Loaded state from file /opt/zigbee2mqtt/data/state.json Zigbee2MQTT:info 2023-06-07 19:14:46: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2023-06-07.19-14-46' filename: log.txt Zigbee2MQTT:debug 2023-06-07 19:14:46: Removing old log directory '/opt/zigbee2mqtt/data/log/2023-06-07.18-31-35' Zigbee2MQTT:info 2023-06-07 19:14:47: Starting Zigbee2MQTT version 1.31.1 (commit #3572c60) Zigbee2MQTT:info 2023-06-07 19:14:47: Starting zigbee-herdsman (0.14.117) Zigbee2MQTT:debug 2023-06-07 19:14:47: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","databasePath":"/opt/zigbee2mqtt/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"deconz","path":"/dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0"}}' Zigbee2MQTT:error 2023-06-07 19:14:47: Error while starting zigbee-herdsman Zigbee2MQTT:error 2023-06-07 19:14:47: Failed to start zigbee Zigbee2MQTT:error 2023-06-07 19:14:47: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions Zigbee2MQTT:error 2023-06-07 19:14:47: Exiting... Zigbee2MQTT:error 2023-06-07 19:14:47: Error: Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port' at SerialPort. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:200:28) at SerialPort._error (/opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:75:22) at /opt/zigbee2mqtt/node_modules/@serialport/stream/dist/index.js:111:18 `

The frontend is loaded now, and everything seems to be working. E.g. I can trigger automations from and to my zigbee devices. So the conbee II still works and zigbee2mqtt works again. But somehow I don't trust this... Basically my adapter randomly chose to change the path and its naming completely without any trigger?

lux73 commented 1 year ago

try /dev/ttyUSB0 instead of /dev/serial/... or anything

lux73 commented 1 year ago

if the above don't work show output

ls -l /dev/ttyU*

Schmetterfliege commented 1 year ago

sudo ls -l /dev/ttyUSB0 ls: cannot access '/dev/ttyUSB0': No such file or directory pi@raspberrypi:~ $ ls -l /dev/ttyU* ls: cannot access '/dev/ttyU*': No such file or directory

Both don't seem to exist :S Well, the problem is kind of mitigated by just using the other name, and obviously had nothing to do with zigbee2mqtt, which was just affected by the underlying issue (usb device changed path and name).

Still, 2 questions for me:

  1. has anybody experienced this yet? What could cause something like this?
  2. even though it seems to work now, I got an error when starting with "npm start". Since it still worked, I guess it's nothing critical. Or is it?

@Koenkk you can close this if you want, since a) solved/mitigated and b) not caused by zigbee2mqtt. Would still highly appreciate if someone could shed some light on why my usb stick decided to do that on its own :D

EPicLURcher commented 1 year ago

`sudo ls -l /dev/ttyUSB0

ls: cannot access '/dev/ttyUSB0': No such file or directory

pi@raspberrypi:~ $ ls -l /dev/ttyU*

ls: cannot access '/dev/ttyU*': No such file or directory

`

Both don't seem to exist :S

Well, the problem is kind of mitigated by just using the other name, and obviously had nothing to do with zigbee2mqtt, which was just affected by the underlying issue (usb device changed path and name).

Still, 2 questions for me:

  1. has anybody experienced this yet? What could cause something like this?

  2. even though it seems to work now, I got an error when starting with "npm start". Since it still worked, I guess it's nothing critical. Or is it?

@Koenkk you can close this if you want, since a) solved/mitigated and b) not caused by zigbee2mqtt.

Would still highly appreciate if someone could shed some light on why my usb stick decided to do that on its own :D

I'm seeing this exact same behaviour as of the last week or so - I did with lots of restarting have everything working again - so I don't think it's my dongle (sonoff) - but it is not working again tonight

Schmetterfliege commented 1 year ago

"the exact same thing" would be that your dongle's path and name has changed too and that's why zigbee2mqtt doesn't start anymore: in the configuration.yaml you specify the path, and since this has changed, it is not valid anymore. Did you try to do what I did? -> check if there's a device somewhere else (for me in /dev/serial/by-path) and replace the path in the configuration.yaml

EPicLURcher commented 1 year ago

"the exact same thing" would be that your dongle's path and name has changed too and that's why zigbee2mqtt doesn't start anymore: in the configuration.yaml you specify the path, and since this has changed, it is not valid anymore. Did you try to do what I did? -> check if there's a device somewhere else (for me in /dev/serial/by-path) and replace the path in the configuration.yaml

Yes the path of my adaptor had changed - I got the new path and updated my config file and all is fixed

KiCADHugo commented 1 year ago

It is a bug in Debian. I have updated my "old" Debian v11.6.0 with "apt upgrade". After this upgrade my Sonoff USB Dongle Plus can't found by /dev/serial/by-id but only on /dev/serial/by-path. The link on /dev/ttyACM0 is not accept by zigbee2mqtt so it not work. I habe try a new SD-Card written with Pi Imager, after install my stick is shown on /dev/serial/by-id, after apt upgrade stick only see on by-path. Sorry for my bad english, I hope you understud.

Schmetterfliege commented 1 year ago

It is a bug in Debian. I have updated my "old" Debian v11.6.0 with "apt upgrade". After this upgrade my Sonoff USB Dongle Plus can't found by /dev/serial/by-id but only on /dev/serial/by-path. The link on /dev/ttyACM0 is not accept by zigbee2mqtt so it not work. I habe try a new SD-Card written with Pi Imager, after install my stick is shown on /dev/serial/by-id, after apt upgrade stick only see on by-path. Sorry for my bad english, I hope you understud.

Thank you very much for your effort, and yes: it is very clear what you mean :) Make sense that it is caused by debian, but for me it seemed to happen while I was not at home, and I'm pretty sure my Pi just didn't upgrade the OS by itself :D But at least we know now what it is, and how it can be fixed/mitigated (using the by-path path)

github-actions[bot] commented 1 year 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