zigbee2mqtt startet nach update nicht mehr

Begonnen von TomLee, 26 Januar 2026, 18:26:34

Vorheriges Thema - Nächstes Thema

TomLee

Hi,

ich hab Gedankenlos (weil ich schauen wollte ob die neueste Version die Versionsnummer mitliefert) ein update von zigbee2mqtt 2.4.0 auf 2.7.2 gemacht und jetzt folgendes im Log:

pi@fhempi:/opt/zigbee2mqtt $ node -v
v20.15.0
pi@fhempi:/opt/zigbee2mqtt $ pm2 logs zigbee2mqtt
[TAILING] Tailing last 15 lines for [zigbee2mqtt] process (change the value with --lines option)
/home/pi/.pm2/logs/zigbee2mqtt-error.log last 15 lines:
0|zigbee2m |     at Object.<anonymous> (/opt/zigbee2mqtt/dist/extension/availability.js:47:36) {
0|zigbee2m |   code: 'ERR_REQUIRE_ESM'
0|zigbee2m | }
0|zigbee2m | Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/zigbee2mqtt/node_modules/.pnpm/debounce@3.0.0/node_modules/debounce/index.js from /opt/zigbee2mqtt/dist/extension/availability.js not supported.
0|zigbee2m | Instead change the require of index.js in /opt/zigbee2mqtt/dist/extension/availability.js to a dynamic import() which is available in all CommonJS modules.
0|zigbee2m |     at Hook._require.Module.require (/usr/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39)
0|zigbee2m |     at Object.<anonymous> (/opt/zigbee2mqtt/dist/extension/availability.js:47:36) {
0|zigbee2m |   code: 'ERR_REQUIRE_ESM'
0|zigbee2m | }
0|zigbee2m | Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/zigbee2mqtt/node_modules/.pnpm/debounce@3.0.0/node_modules/debounce/index.js from /opt/zigbee2mqtt/dist/extension/availability.js not supported.
0|zigbee2m | Instead change the require of index.js in /opt/zigbee2mqtt/dist/extension/availability.js to a dynamic import() which is available in all CommonJS modules.
0|zigbee2m |     at Hook._require.Module.require (/usr/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39)
0|zigbee2m |     at Object.<anonymous> (/opt/zigbee2mqtt/dist/extension/availability.js:47:36) {
0|zigbee2m |   code: 'ERR_REQUIRE_ESM'
0|zigbee2m | }

/home/pi/.pm2/logs/zigbee2mqtt-out.log last 15 lines:
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.

0|zigbee2mqtt  | Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/zigbee2mqtt/node_modules/.pnpm/debounce@3.0.0/node_modules/debounce/index.js from /opt/zigbee2mqtt/dist/extension/availability.js not supported.
0|zigbee2mqtt  | Instead change the require of index.js in /opt/zigbee2mqtt/dist/extension/availability.js to a dynamic import() which is available in all CommonJS modules.
0|zigbee2mqtt  |     at Hook._require.Module.require (/usr/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39)
0|zigbee2mqtt  |     at Object.<anonymous> (/opt/zigbee2mqtt/dist/extension/availability.js:47:36) {
0|zigbee2mqtt  |   code: 'ERR_REQUIRE_ESM'
0|zigbee2mqtt  | }


Kann wer was mit der Meldung anfangen?

Es läuft noch Buster auf dem System.

Die Suche zeigt den issue:
https://github.com/Koenkk/zigbee2mqtt/issues/29943

Ich bin unsicher was jetzt machen.
Kann mir wer eine Anleitung zeigen wie ich wieder auf die vorherige Version wechseln kann, bis ich die Ursache gefunden habe?


Gruß Thomas