deCONZ 2.32.5 crashes every 2-3 days with "Could not create AF_NETLINK socket (Too many open files)" / GLib-ERROR

Hello,

I’m experiencing a reproducible issue with deCONZ since the end of April.

Environment

  • Raspberry Pi 5
  • Raspberry Pi OS / Debian 12 Bookworm (64-bit)
  • Linux kernel 6.12.x
  • ConBee III
  • deCONZ 2.32.5
  • Around 80 Zigbee devices
  • ConBee III connected via USB extension cable
  • Native installation (no Docker)

Symptoms

Every 2-3 days the complete Zigbee network stops responding.

After a short time, devices reconnect one after another.

At the same moment the ioBroker deCONZ adapter reports only an ECONNRESET, which appears to be a consequence of the actual deCONZ failure.

The deCONZ web interface is sometimes still reachable shortly before deCONZ crashes and is automatically restarted by systemd.

Journal output

Immediately before the crash I repeatedly get

Could not create AF_NETLINK socket (Too many open files)

followed by

GLib-ERROR **: Creating pipes for GWakeup: Too many open files

and finally

deconz.service: Main process exited, code=killed, status=5/TRAP
deconz.service: Failed with result 'signal'

Afterwards systemd automatically restarts deCONZ.

Already checked

  • LimitNOFILE=524288
  • /proc/<pid>/limits also reports 524288 open files
  • Immediately after restart deCONZ only has about 20 open file descriptors
  • USB extension cable is used
  • ConBee III is detected correctly (lsusb)
  • Debian and deCONZ are fully up to date
  • The issue does not seem to originate from ioBroker; it only reports ECONNRESET after deCONZ crashes.

Question

Is this a known issue? The combination of

Could not create AF_NETLINK socket (Too many open files)

and

GLib-ERROR: Creating pipes for GWakeup: Too many open files

looks like an internal resource or socket leak inside deCONZ rather than a Linux file descriptor limit issue.

I’m happy to provide additional logs, debug output or perform further tests if required.

Thank you.

I found commit a2a8e2c432e0d3e73d1ae007534c378cdcc4a3a9, which fixed a resource leak related to HTTP connections. My issue looks very similar from a symptom perspective, although the trigger appears to be different. After 2–3 days deCONZ repeatedly logs Could not create AF_NETLINK socket (Too many open files), followed by GLib-ERROR: Creating pipes for GWakeup and finally exits with status=5/TRAP. Could this be another resource/socket leak in a different code path?

And if you try the last beta version ? Same issue ?

(Because the 2.32.5 is from february …)