Mise à jour des dépendances Z2M version 2.1.2 en erreur

Bonjour,
J’ai tenté la mise à jour de z2m en version 2.1.2 et le deamon ne démarre plus. Si je repasse en 2.1.1 c’est ok.
Je suis en debian 11 et jeedom 4.4.19
Je reste en version 2.1.1 en attendant que cela soit résolu.
Voilà l’état du démon :


Et l’état de santé de jeedom :

Et les logs d’install :

0000|#######################################################
0001|#    INSTALL : Zigbee2mqtt                            #
0002|#######################################################
0003|#######################################################
0004|##### apt-get update in progress
0005|Atteint :1 https://download.docker.com/linux/debian bullseye InRelease
0006|Atteint :2 https://deb.nodesource.com/node_20.x nodistro InRelease
0007|Atteint :3 http://security.debian.org/debian-security bullseye-security InRelease
0008|Atteint :4 http://deb.debian.org/debian bullseye InRelease
0009|Atteint :5 http://deb.debian.org/debian bullseye-updates InRelease
0010|Lecture des listes de paquets…
0011|#######################################################
0012|##### Install or update Git
0013|Lecture des listes de paquets…
0014|Construction de l'arbre des dépendances…
0015|Lecture des informations d'état…
0016|g++ est déjà la version la plus récente (4:10.2.1-1).
0017|gcc est déjà la version la plus récente (4:10.2.1-1).
0018|make est déjà la version la plus récente (4.3-4.1).
0019|git est déjà la version la plus récente (1:2.30.2-1+deb11u4).
0020|0 mis à jour, 0 nouvellement installés, 0 à enlever et 63 non mis à jour.
0021|#######################################################
0022|##### Install or update NodeJs
0023|NodeJs 20 already installed : Nothing to do !
0024|pnpm install version 9.15.6
0025|changed 1 package in 2s
0026|1 package is looking for funding
0027|run `npm fund` for details
0028|#######################################################
0029|#    INSTALLING : Mosquitto for Php                   #
0030|#######################################################
0031|Mosquitto for Php is already installed, nothing to do
0032|##### Z2M BRANCH version to install : master
0033|#######################################################
0034|##### Install Socat
0035|Socat is already installed, nothing to do
0036|#######################################################
0037|##### Install yaml php and restart apache
0038|Yaml is already installed, nothing to do
0039|#######################################################
0040|#####    Stopping Zigbee2mqtt deamon                  #
0041|## Supprime l'installation dans /opt/zigbee2mqtt
0042|#######################################################
0043|##### Complete installation : Download Zigbee2mqtt git
0044|Clonage dans '/opt/zigbee2mqtt'...
0045|#######################################################
0046|##### Install/Update Zigbee2mqtt
0047|Lockfile is up to date, resolution step is skipped
0048|Progress: resolved 1, reused 0, downloaded 0, added 0
0049|Packages: +363
0050|++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
0051|Progress: resolved 363, reused 363, downloaded 0, added 203
0052|Progress: resolved 363, reused 363, downloaded 0, added 363, done
0053|.../node_modules/sd-notify install$ node-gyp rebuild
0054|.../node_modules/sd-notify install: gyp info it worked if it ends with ok
0055|.../node_modules/sd-notify install: gyp info using node-gyp@10.2.0
0056|.../node_modules/sd-notify install: gyp info using node@20.18.1 | linux | x64
0057|.../node_modules/sd-notify install: gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
0058|.../node_modules/sd-notify install: gyp info spawn /usr/bin/python3
0059|.../node_modules/sd-notify install: gyp info spawn args [
0060|.../node_modules/sd-notify install: gyp info spawn args '/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
0061|.../node_modules/sd-notify install: gyp info spawn args 'binding.gyp',
0062|.../node_modules/sd-notify install: gyp info spawn args '-f',
0063|.../node_modules/sd-notify install: gyp info spawn args 'make',
0064|.../node_modules/sd-notify install: gyp info spawn args '-I',
0065|.../node_modules/sd-notify install: gyp info spawn args '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build/config.gypi',
0066|.../node_modules/sd-notify install: gyp info spawn args '-I',
0067|.../node_modules/sd-notify install: gyp info spawn args '/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
0068|.../node_modules/sd-notify install: gyp info spawn args '-I',
0069|.../node_modules/sd-notify install: gyp info spawn args '/root/.cache/node-gyp/20.18.1/include/node/common.gypi',
0070|.../node_modules/sd-notify install: gyp info spawn args '-Dlibrary=shared_library',
0071|.../node_modules/sd-notify install: gyp info spawn args '-Dvisibility=default',
0072|.../node_modules/sd-notify install: gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/20.18.1',
0073|.../node_modules/sd-notify install: gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp',
0074|.../node_modules/sd-notify install: gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/20.18.1/<(target_arch)/node.lib',
0075|.../node_modules/sd-notify install: gyp info spawn args '-Dmodule_root_dir=/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify',
0076|.../node_modules/sd-notify install: gyp info spawn args '-Dnode_engine=v8',
0077|.../node_modules/sd-notify install: gyp info spawn args '--depth=.',
0078|.../node_modules/sd-notify install: gyp info spawn args '--no-parallel',
0079|.../node_modules/sd-notify install: gyp info spawn args '--generator-output',
0080|.../node_modules/sd-notify install: gyp info spawn args 'build',
0081|.../node_modules/sd-notify install: gyp info spawn args '-Goutput_dir=.'
0082|.../node_modules/sd-notify install: gyp info spawn args ]
0083|.../node_modules/sd-notify install: gyp info spawn make
0084|.../node_modules/sd-notify install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
0085|.../node_modules/sd-notify install: make : on entre dans le répertoire « /opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build »
0086|.../node_modules/sd-notify install:   CXX(target) Release/obj.target/notify/notify.o
0087|.../node_modules/sd-notify install: ../notify.cc:5:10: fatal error: systemd/sd-daemon.h: Aucun fichier ou dossier de ce type
0088|.../node_modules/sd-notify install:     5 | #include 
0089|.../node_modules/sd-notify install:       |          ^~~~~~~~~~~~~~~~~~~~~
0090|.../node_modules/sd-notify install: compilation terminated.
0091|.../node_modules/sd-notify install: make: *** [notify.target.mk:106 : Release/obj.target/notify/notify.o] Erreur 1
0092|.../node_modules/sd-notify install: make : on quitte le répertoire « /opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build »
0093|.../node_modules/sd-notify install: gyp ERR! build error
0094|.../node_modules/sd-notify install: gyp ERR! stack Error: `make` failed with exit code: 2
0095|.../node_modules/sd-notify install: gyp ERR! stack at ChildProcess. (/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:216:23)
0096|.../node_modules/sd-notify install: gyp ERR! System Linux 5.10.0-33-amd64
0097|.../node_modules/sd-notify install: gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
0098|.../node_modules/sd-notify install: gyp ERR! cwd /opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify
0099|.../node_modules/sd-notify install: gyp ERR! node -v v20.18.1
0100|.../node_modules/sd-notify install: gyp ERR! node-gyp -v v10.2.0
0101|.../node_modules/sd-notify install: gyp ERR! not ok
0102|.../node_modules/sd-notify install: Failed
0103|dependencies:
0104|+ ajv 8.17.1
0105|+ bind-decorator 1.0.11
0106|+ debounce 2.2.0
0107|+ express-static-gzip 2.2.0
0108|+ fast-deep-equal 3.1.3
0109|+ finalhandler 1.3.1
0110|+ git-last-commit 1.0.1
0111|+ humanize-duration 3.32.1
0112|+ js-yaml 4.1.0
0113|+ json-stable-stringify-without-jsonify 1.0.1
0114|+ jszip 3.10.1
0115|+ moment 2.30.1
0116|+ mqtt 5.10.3
0117|+ object-assign-deep 0.4.0
0118|+ rimraf 6.0.1
0119|+ semver 7.7.1
0120|+ source-map-support 0.5.21
0121|+ throttleit 2.1.0
0122|+ winston 3.17.0
0123|+ winston-syslog 2.7.1
0124|+ winston-transport 4.9.0
0125|+ ws 8.18.1
0126|+ zigbee-herdsman 3.2.7
0127|+ zigbee-herdsman-converters 23.2.0
0128|+ zigbee2mqtt-frontend 0.9.4
0129|optionalDependencies:
0130|+ sd-notify 2.8.0
0131|devDependencies:
0132|+ @eslint/core 0.12.0
0133|+ @eslint/js 9.21.0
0134|+ @ianvs/prettier-plugin-sort-imports 4.4.1
0135|+ @types/finalhandler 1.2.3
0136|+ @types/humanize-duration 3.27.4
0137|+ @types/js-yaml 4.0.9
0138|+ @types/node 22.13.5
0139|+ @types/object-assign-deep 0.4.3
0140|+ @types/readable-stream 4.0.18
0141|+ @types/sd-notify 2.8.2
0142|+ @types/serve-static 1.15.7
0143|+ @types/ws 8.5.14
0144|+ @vitest/coverage-v8 3.0.7
0145|+ eslint 9.21.0
0146|+ eslint-config-prettier 10.0.1
0147|+ prettier 3.5.2
0148|+ tmp 0.2.3
0149|+ typescript 5.7.3
0150|+ typescript-eslint 8.25.0
0151|+ vitest 3.0.7
0152|Done in 3.2s using pnpm v9.15.6
0153|> zigbee2mqtt@2.1.2 build /opt/zigbee2mqtt
0154|> tsc && node index.js writehash
0155|#######################################################
0156|##### Configure deamon and start it
0157|#######################################################
0158|#                         END                         #
0159|#######################################################

Salut

Antoine

j’ai le meme pb et je ne comprends pas le liens stackoverflow

/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build/config.gypi’,

sd-notify@2.8.0 n’existe pas
il y a quelque chose qui ne va pas dans les dépendances

Merci

Bonjour
de mon cote même en 2.11 rien ne fonctionne, je suis bloque en 2.1.2 , debian 11.8 jeedom 4.4.19 , cle sonoff flashé 7.4.4
c’est en dehors de mes competences cette fois :frowning:
cette fois je suis en 2.1.3 et nouvelle version dispo 2.1.2, pige rien
image_2025-03-02_091137276

Bonjour,
Le changelog est là z2m changelog
Peut-être la version de pnpm ? Passée de pnpm@9.15.4 à pnpm@10.4.1
Christophe

Hello

j’ai le meme probleme sur 3 jeedom.

1 en VM (rollback pas de pb)
2 autres en raspberry (ca va etre chaud)

La vérification de la version de z2m par le plugin doit se faire régulièrement mais pas en temps réel…Hier la notification de la version 2.1.2 est arrivée à minuit chez moi.

1 « J'aime »

Bonjour,
Idem de mon coté pour l’installation de la version 2.1.2 sur un jeedom 4.4.19 en debian 11.11

Comment fait on repasser en 2.1.1 sans tout réinstaller ?
Merci de votre aide.
Mathieu

Log de l installation des dépendances :

[2025-03-02 09:35:25] INFO  : ##### Synchronisation du temps avant l'installation des dépendances...
[2025-03-02 09:35:33] INFO  : ##### Synchronisation du temps terminée, lancement des dépendances.
#######################################################
#    INSTALL : Zigbee2mqtt                            #
#######################################################
#######################################################
##### apt-get update in progress
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
Reading package lists...
#######################################################
##### Install or update Git
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:10.2.1-1).
gcc is already the newest version (4:10.2.1-1).
make is already the newest version (4.3-4.1).
git is already the newest version (1:2.30.2-1+deb11u4).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
#######################################################
##### Install or update NodeJs
NodeJs 20 already installed : Nothing to do !
pnpm install version 9.15.6
changed 1 package in 1s
1 package is looking for funding
run `npm fund` for details
#######################################################
#    INSTALLING : Mosquitto for Php                   #
#######################################################
Mosquitto for Php is already installed, nothing to do
##### Z2M BRANCH version to install : master
#######################################################
##### Install Socat
Socat is already installed, nothing to do
#######################################################
##### Install yaml php and restart apache
Yaml is already installed, nothing to do
#######################################################
#####    Stopping Zigbee2mqtt deamon                  #
## Supprime l'installation dans /opt/zigbee2mqtt
#######################################################
##### Complete installation : Download Zigbee2mqtt git
Cloning into '/opt/zigbee2mqtt'...
#######################################################
##### Install/Update Zigbee2mqtt
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +363
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 363, reused 363, downloaded 0, added 51
Progress: resolved 363, reused 363, downloaded 0, added 363, done
.../node_modules/sd-notify install$ node-gyp rebuild
.../node_modules/sd-notify install: gyp info it worked if it ends with ok
.../node_modules/sd-notify install: gyp info using node-gyp@10.2.0
.../node_modules/sd-notify install: gyp info using node@20.18.3 | linux | x64
.../node_modules/sd-notify install: gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
.../node_modules/sd-notify install: gyp http GET https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz
.../node_modules/sd-notify install: gyp http 200 https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz
.../node_modules/sd-notify install: gyp http GET https://nodejs.org/download/release/v20.18.3/SHASUMS256.txt
.../node_modules/sd-notify install: gyp http 200 https://nodejs.org/download/release/v20.18.3/SHASUMS256.txt
.../node_modules/sd-notify install: gyp info spawn /usr/bin/python3
.../node_modules/sd-notify install: gyp info spawn args [
.../node_modules/sd-notify install: gyp info spawn args '/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
.../node_modules/sd-notify install: gyp info spawn args 'binding.gyp',
.../node_modules/sd-notify install: gyp info spawn args '-f',
.../node_modules/sd-notify install: gyp info spawn args 'make',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build/config.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/root/.cache/node-gyp/20.18.3/include/node/common.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-Dlibrary=shared_library',
.../node_modules/sd-notify install: gyp info spawn args '-Dvisibility=default',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/20.18.3',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/20.18.3/<(target_arch)/node.lib',
.../node_modules/sd-notify install: gyp info spawn args '-Dmodule_root_dir=/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_engine=v8',
.../node_modules/sd-notify install: gyp info spawn args '--depth=.',
.../node_modules/sd-notify install: gyp info spawn args '--no-parallel',
.../node_modules/sd-notify install: gyp info spawn args '--generator-output',
.../node_modules/sd-notify install: gyp info spawn args 'build',
.../node_modules/sd-notify install: gyp info spawn args '-Goutput_dir=.'
.../node_modules/sd-notify install: gyp info spawn args ]
.../node_modules/sd-notify install: gyp info spawn make
.../node_modules/sd-notify install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
.../node_modules/sd-notify install: make: Entering directory '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build'
.../node_modules/sd-notify install:   CXX(target) Release/obj.target/notify/notify.o
.../node_modules/sd-notify install: ../notify.cc:5:10: fatal error: systemd/sd-daemon.h: No such file or directory
.../node_modules/sd-notify install:     5 | #include <systemd/sd-daemon.h>
.../node_modules/sd-notify install:       |          ^~~~~~~~~~~~~~~~~~~~~
.../node_modules/sd-notify install: compilation terminated.
.../node_modules/sd-notify install: make: *** [notify.target.mk:106: Release/obj.target/notify/notify.o] Error 1
.../node_modules/sd-notify install: make: Leaving directory '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build'
.../node_modules/sd-notify install: gyp ERR! build error
.../node_modules/sd-notify install: gyp ERR! stack Error: `make` failed with exit code: 2
.../node_modules/sd-notify install: gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:216:23)
.../node_modules/sd-notify install: gyp ERR! System Linux 5.10.0-27-amd64
.../node_modules/sd-notify install: gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
.../node_modules/sd-notify install: gyp ERR! cwd /opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify
.../node_modules/sd-notify install: gyp ERR! node -v v20.18.3
.../node_modules/sd-notify install: gyp ERR! node-gyp -v v10.2.0
.../node_modules/sd-notify install: gyp ERR! not ok
.../node_modules/sd-notify install: Failed
dependencies:
+ ajv 8.17.1
+ bind-decorator 1.0.11
+ debounce 2.2.0
+ express-static-gzip 2.2.0
+ fast-deep-equal 3.1.3
+ finalhandler 1.3.1
+ git-last-commit 1.0.1
+ humanize-duration 3.32.1
+ js-yaml 4.1.0
+ json-stable-stringify-without-jsonify 1.0.1
+ jszip 3.10.1
+ moment 2.30.1
+ mqtt 5.10.3
+ object-assign-deep 0.4.0
+ rimraf 6.0.1
+ semver 7.7.1
+ source-map-support 0.5.21
+ throttleit 2.1.0
+ winston 3.17.0
+ winston-syslog 2.7.1
+ winston-transport 4.9.0
+ ws 8.18.1
+ zigbee-herdsman 3.2.7
+ zigbee-herdsman-converters 23.2.0
+ zigbee2mqtt-frontend 0.9.4
optionalDependencies:
+ sd-notify 2.8.0
devDependencies:
+ @eslint/core 0.12.0
+ @eslint/js 9.21.0
+ @ianvs/prettier-plugin-sort-imports 4.4.1
+ @types/finalhandler 1.2.3
+ @types/humanize-duration 3.27.4
+ @types/js-yaml 4.0.9
+ @types/node 22.13.5
+ @types/object-assign-deep 0.4.3
+ @types/readable-stream 4.0.18
+ @types/sd-notify 2.8.2
+ @types/serve-static 1.15.7
+ @types/ws 8.5.14
+ @vitest/coverage-v8 3.0.7
+ eslint 9.21.0
+ eslint-config-prettier 10.0.1
+ prettier 3.5.2
+ tmp 0.2.3
+ typescript 5.7.3
+ typescript-eslint 8.25.0
+ vitest 3.0.7
Done in 4.9s using pnpm v9.15.6
zigbee2mqtt@2.1.3 build /opt/zigbee2mqtt
tsc && node index.js writehash
>#######################################################
>##### Configure deamon and start it
#######################################################
#                         END                         #
#######################################################

Bonjour,

En effet, voir : Erreur lors de l'installation des dépendances (switch pnpm to v9.15.4) - #9 par akenad

Par ailleurs pour ne plus avoir l’erreur fatale lors de la compilation du module sd-notify :

aller dans
Réglages > Système > Configuration OS/DB > Administration Système > Ouvrir
taper commande :
sudo apt install -y libsystemd-dev
Relancer l’installation des dépendances
akenad :slight_smile:

1 « J'aime »

Bonjour,

Donc sans modification du script de mise à jour de z2m il faudrait installer (pour l’instant manuellement) la version pnpm 10.4.1. Pas trop envie d’essayer car le retour en 2.1.1 s’est bien passé. Je vais attendre la solution définitive.

Merci.
Christophe.

C’est bon, j’ai trouvé dans la config du plugin

zigbee2mqtt 2.1.0 tu voulais dire.
(si sudo npm install -g pnpm dans /plugins/zigbee2mqtt/resources/install_nodejs.sh)

akenad :slight_smile:

suis repassé en 2.1.0 , mqtt fonctionne mais rien ne fonctionne en zigbee
suis perdu

Heu … non hier j’ai tenté un passage en 2.1.2 qui a raté et je suis revenu en 2.1.1 en forçant dans zigbeelinker.

Christophe.

oui, parce que depuis hier
sudo npm install -g pnpm@9.15.6 dans /plugins/zigbee2mqtt/resources/install_nodejs.sh

autrement dit, à ce stade, le succès de l’installation des dépendances zigbe2mqtt en 2.1.0 ou 2.1.1 ou 2.1.2 ou 2.1.3
dépend de la version du pnpm installée.

akenad :slight_smile:

1 « J'aime »

Bonjour à tous,

Je pense avoir le même soucis.

#######################################################
#    INSTALL : Zigbee2mqtt                            #
#######################################################
#######################################################
##### apt-get update in progress
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:6 http://www.deb-multimedia.org bullseye InRelease
Hit:7 https://oph.mdrjr.net/meveric all InRelease
Hit:8 https://oph.mdrjr.net/meveric bullseye InRelease
Reading package lists...
#######################################################
##### Install or update Git
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:10.2.1-1).
gcc is already the newest version (4:10.2.1-1).
make is already the newest version (4.3-4.1).
git is already the newest version (1:2.30.2-1+deb11u4).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
#######################################################
##### Install or update NodeJs
NodeJs 20 already installed : Nothing to do !
pnpm install version 9.15.6
changed 1 package in 9s
1 package is looking for funding
run `npm fund` for details
#######################################################
#    INSTALLING : Mosquitto for Php                   #
#######################################################
Mosquitto for Php is already installed, nothing to do
##### Z2M BRANCH version to install : master
#######################################################
##### Install Socat
Socat is already installed, nothing to do
#######################################################
##### Install yaml php and restart apache
Yaml is already installed, nothing to do
#######################################################
#####    Stopping Zigbee2mqtt deamon                  #
#######################################################
##### Repare Zigbee2MQTT
npm warn using --force Recommended protections disabled.
## Supprime l'installation dans /opt/zigbee2mqtt
## Supprime l'installation dans /opt/zigbee2mqtt
#######################################################
##### Complete installation : Download Zigbee2mqtt git
Cloning into '/opt/zigbee2mqtt'...
#######################################################
##### Install/Update Zigbee2mqtt
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +363
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 363, reused 19, downloaded 0, added 0
Progress: resolved 363, reused 180, downloaded 0, added 0
Progress: resolved 363, reused 309, downloaded 0, added 0
Progress: resolved 363, reused 363, downloaded 0, added 102
Progress: resolved 363, reused 363, downloaded 0, added 363, done
.../node_modules/sd-notify install$ node-gyp rebuild
.../node_modules/sd-notify install: gyp info it worked if it ends with ok
.../node_modules/sd-notify install: gyp info using node-gyp@10.2.0
.../node_modules/sd-notify install: gyp info using node@20.17.0 | linux | arm64
.../node_modules/sd-notify install: gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
.../node_modules/sd-notify install: gyp info spawn /usr/bin/python3
.../node_modules/sd-notify install: gyp info spawn args [
.../node_modules/sd-notify install: gyp info spawn args '/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
.../node_modules/sd-notify install: gyp info spawn args 'binding.gyp',
.../node_modules/sd-notify install: gyp info spawn args '-f',
.../node_modules/sd-notify install: gyp info spawn args 'make',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build/config.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/root/.cache/node-gyp/20.17.0/include/node/common.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-Dlibrary=shared_library',
.../node_modules/sd-notify install: gyp info spawn args '-Dvisibility=default',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/20.17.0',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/20.17.0/<(target_arch)/node.lib',
.../node_modules/sd-notify install: gyp info spawn args '-Dmodule_root_dir=/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_engine=v8',
.../node_modules/sd-notify install: gyp info spawn args '--depth=.',
.../node_modules/sd-notify install: gyp info spawn args '--no-parallel',
.../node_modules/sd-notify install: gyp info spawn args '--generator-output',
.../node_modules/sd-notify install: gyp info spawn args 'build',
.../node_modules/sd-notify install: gyp info spawn args '-Goutput_dir=.'
.../node_modules/sd-notify install: gyp info spawn args ]
.../node_modules/sd-notify install: gyp info spawn make
.../node_modules/sd-notify install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
.../node_modules/sd-notify install: make: Entering directory '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build'
.../node_modules/sd-notify install:   CXX(target) Release/obj.target/notify/notify.o
.../node_modules/sd-notify install: ../notify.cc:5:10: fatal error: systemd/sd-daemon.h: No such file or directory
.../node_modules/sd-notify install:     5 | #include <systemd/sd-daemon.h>
.../node_modules/sd-notify install:       |          ^~~~~~~~~~~~~~~~~~~~~
.../node_modules/sd-notify install: compilation terminated.
.../node_modules/sd-notify install: make: *** [notify.target.mk:104: Release/obj.target/notify/notify.o] Error 1
.../node_modules/sd-notify install: make: Leaving directory '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build'
.../node_modules/sd-notify install: gyp ERR! build error
.../node_modules/sd-notify install: gyp ERR! stack Error: `make` failed with exit code: 2
.../node_modules/sd-notify install: gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:216:23)
.../node_modules/sd-notify install: gyp ERR! System Linux 6.5.13-arm64
.../node_modules/sd-notify install: gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
.../node_modules/sd-notify install: gyp ERR! cwd /opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify
.../node_modules/sd-notify install: gyp ERR! node -v v20.17.0
.../node_modules/sd-notify install: gyp ERR! node-gyp -v v10.2.0
.../node_modules/sd-notify install: gyp ERR! not ok
.../node_modules/sd-notify install: Failed
dependencies:
+ ajv 8.17.1
+ bind-decorator 1.0.11
+ debounce 2.2.0
+ express-static-gzip 2.2.0
+ fast-deep-equal 3.1.3
+ finalhandler 1.3.1
+ git-last-commit 1.0.1
+ humanize-duration 3.32.1
+ js-yaml 4.1.0
+ json-stable-stringify-without-jsonify 1.0.1
+ jszip 3.10.1
+ moment 2.30.1
+ mqtt 5.10.3
+ object-assign-deep 0.4.0
+ rimraf 6.0.1
+ semver 7.7.1
+ source-map-support 0.5.21
+ throttleit 2.1.0
+ winston 3.17.0
+ winston-syslog 2.7.1
+ winston-transport 4.9.0
+ ws 8.18.1
+ zigbee-herdsman 3.2.7
+ zigbee-herdsman-converters 23.2.0
+ zigbee2mqtt-frontend 0.9.4
optionalDependencies:
+ sd-notify 2.8.0
devDependencies:
+ @eslint/core 0.12.0
+ @eslint/js 9.21.0
+ @ianvs/prettier-plugin-sort-imports 4.4.1
+ @types/finalhandler 1.2.3
+ @types/humanize-duration 3.27.4
+ @types/js-yaml 4.0.9
+ @types/node 22.13.5
+ @types/object-assign-deep 0.4.3
+ @types/readable-stream 4.0.18
+ @types/sd-notify 2.8.2
+ @types/serve-static 1.15.7
+ @types/ws 8.5.14
+ @vitest/coverage-v8 3.0.7
+ eslint 9.21.0
+ eslint-config-prettier 10.0.1
+ prettier 3.5.2
+ tmp 0.2.3
+ typescript 5.7.3
+ typescript-eslint 8.25.0
+ vitest 3.0.7
Done in 15.3s using pnpm v9.15.6
> zigbee2mqtt@2.1.3 build /opt/zigbee2mqtt
> tsc && node index.js writehash
#######################################################
##### Configure deamon and start it
#######################################################
#                         END                         #
#######################################################

J’ai tenté de repasser en 2.1.0 ou 2.1.1 ou 2.1.2 depuis la plugin mais cela ne passe pas…

#######################################################
#    INSTALL : Zigbee2mqtt                            #
#######################################################
#######################################################
##### apt-get update in progress
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
Hit:4 http://security.debian.org bullseye-security InRelease
Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:6 http://www.deb-multimedia.org bullseye InRelease
Hit:7 https://oph.mdrjr.net/meveric all InRelease
Hit:8 https://oph.mdrjr.net/meveric bullseye InRelease
Reading package lists...
#######################################################
##### Install or update Git
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:10.2.1-1).
gcc is already the newest version (4:10.2.1-1).
make is already the newest version (4.3-4.1).
git is already the newest version (1:2.30.2-1+deb11u4).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
#######################################################
##### Install or update NodeJs
NodeJs 20 already installed : Nothing to do !
pnpm install version 9.15.6
changed 1 package in 8s
1 package is looking for funding
run `npm fund` for details
#######################################################
#    INSTALLING : Mosquitto for Php                   #
#######################################################
Mosquitto for Php is already installed, nothing to do
##### Z2M BRANCH version to install : 2.2.0
#######################################################
##### Install Socat
Socat is already installed, nothing to do
#######################################################
##### Install yaml php and restart apache
Yaml is already installed, nothing to do
#######################################################
#####    Stopping Zigbee2mqtt deamon                  #
## Supprime l'installation dans /opt/zigbee2mqtt
#######################################################
##### Complete installation : Download Zigbee2mqtt git
Cloning into '/opt/zigbee2mqtt'...
fatal: Remote branch 2.2.0 not found in upstream origin

Bonjour,
Dans le log que tu montres tu as mis 2.2.0 version qui n’existe pas …
Christophe.

effectivement erreur de ma part, je m’en excuse.

Je confirme que le repasse en 2.1.0 fait refonctionner l’ensemble.

Du coup, quelle solution pour passer à une version supérieur à 2.1.1 fonctionnelle ?

Je precise que cela ne passe pas de la 2.1.1 à la 2.1.2.

Merci !

#######################################################
#    INSTALL : Zigbee2mqtt                            #
#######################################################
#######################################################
##### apt-get update in progress
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:6 http://www.deb-multimedia.org bullseye InRelease
Hit:7 https://oph.mdrjr.net/meveric all InRelease
Hit:8 https://oph.mdrjr.net/meveric bullseye InRelease
Reading package lists...
#######################################################
##### Install or update Git
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:10.2.1-1).
gcc is already the newest version (4:10.2.1-1).
make is already the newest version (4.3-4.1).
git is already the newest version (1:2.30.2-1+deb11u4).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
#######################################################
##### Install or update NodeJs
NodeJs 20 already installed : Nothing to do !
pnpm install version 9.15.6
changed 1 package in 8s
1 package is looking for funding
run `npm fund` for details
#######################################################
#    INSTALLING : Mosquitto for Php                   #
#######################################################
Mosquitto for Php is already installed, nothing to do
##### Z2M BRANCH version to install : 2.1.2
#######################################################
##### Install Socat
Socat is already installed, nothing to do
#######################################################
##### Install yaml php and restart apache
Yaml is already installed, nothing to do
#######################################################
#####    Stopping Zigbee2mqtt deamon                  #
## Supprime l'installation dans /opt/zigbee2mqtt
#######################################################
##### Complete installation : Download Zigbee2mqtt git
Cloning into '/opt/zigbee2mqtt'...
Note: switching to 'd2d7ebeed9bffb9723a7a9fefee8ea6deb27e000'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
#######################################################
##### Install/Update Zigbee2mqtt
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +363
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 363, reused 36, downloaded 0, added 0
Progress: resolved 363, reused 192, downloaded 0, added 0
Progress: resolved 363, reused 363, downloaded 0, added 72
Progress: resolved 363, reused 363, downloaded 0, added 349
Progress: resolved 363, reused 363, downloaded 0, added 363, done
.../node_modules/sd-notify install$ node-gyp rebuild
.../node_modules/sd-notify install: gyp info it worked if it ends with ok
.../node_modules/sd-notify install: gyp info using node-gyp@10.2.0
.../node_modules/sd-notify install: gyp info using node@20.17.0 | linux | arm64
.../node_modules/sd-notify install: gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
.../node_modules/sd-notify install: gyp info spawn /usr/bin/python3
.../node_modules/sd-notify install: gyp info spawn args [
.../node_modules/sd-notify install: gyp info spawn args '/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
.../node_modules/sd-notify install: gyp info spawn args 'binding.gyp',
.../node_modules/sd-notify install: gyp info spawn args '-f',
.../node_modules/sd-notify install: gyp info spawn args 'make',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build/config.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-I',
.../node_modules/sd-notify install: gyp info spawn args '/root/.cache/node-gyp/20.17.0/include/node/common.gypi',
.../node_modules/sd-notify install: gyp info spawn args '-Dlibrary=shared_library',
.../node_modules/sd-notify install: gyp info spawn args '-Dvisibility=default',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/20.17.0',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/20.17.0/<(target_arch)/node.lib',
.../node_modules/sd-notify install: gyp info spawn args '-Dmodule_root_dir=/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify',
.../node_modules/sd-notify install: gyp info spawn args '-Dnode_engine=v8',
.../node_modules/sd-notify install: gyp info spawn args '--depth=.',
.../node_modules/sd-notify install: gyp info spawn args '--no-parallel',
.../node_modules/sd-notify install: gyp info spawn args '--generator-output',
.../node_modules/sd-notify install: gyp info spawn args 'build',
.../node_modules/sd-notify install: gyp info spawn args '-Goutput_dir=.'
.../node_modules/sd-notify install: gyp info spawn args ]
.../node_modules/sd-notify install: gyp info spawn make
.../node_modules/sd-notify install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
.../node_modules/sd-notify install: make: Entering directory '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build'
.../node_modules/sd-notify install:   CXX(target) Release/obj.target/notify/notify.o
.../node_modules/sd-notify install: ../notify.cc:5:10: fatal error: systemd/sd-daemon.h: No such file or directory
.../node_modules/sd-notify install:     5 | #include <systemd/sd-daemon.h>
.../node_modules/sd-notify install:       |          ^~~~~~~~~~~~~~~~~~~~~
.../node_modules/sd-notify install: compilation terminated.
.../node_modules/sd-notify install: make: *** [notify.target.mk:104: Release/obj.target/notify/notify.o] Error 1
.../node_modules/sd-notify install: make: Leaving directory '/opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify/build'
.../node_modules/sd-notify install: gyp ERR! build error
.../node_modules/sd-notify install: gyp ERR! stack Error: `make` failed with exit code: 2
.../node_modules/sd-notify install: gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:216:23)
.../node_modules/sd-notify install: gyp ERR! System Linux 6.5.13-arm64
.../node_modules/sd-notify install: gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
.../node_modules/sd-notify install: gyp ERR! cwd /opt/zigbee2mqtt/node_modules/.pnpm/sd-notify@2.8.0/node_modules/sd-notify
.../node_modules/sd-notify install: gyp ERR! node -v v20.17.0
.../node_modules/sd-notify install: gyp ERR! node-gyp -v v10.2.0
.../node_modules/sd-notify install: gyp ERR! not ok
.../node_modules/sd-notify install: Failed
dependencies:
+ ajv 8.17.1
+ bind-decorator 1.0.11
+ debounce 2.2.0
+ express-static-gzip 2.2.0
+ fast-deep-equal 3.1.3
+ finalhandler 1.3.1
+ git-last-commit 1.0.1
+ humanize-duration 3.32.1
+ js-yaml 4.1.0
+ json-stable-stringify-without-jsonify 1.0.1
+ jszip 3.10.1
+ moment 2.30.1
+ mqtt 5.10.3
+ object-assign-deep 0.4.0
+ rimraf 6.0.1
+ semver 7.7.1
+ source-map-support 0.5.21
+ throttleit 2.1.0
+ winston 3.17.0
+ winston-syslog 2.7.1
+ winston-transport 4.9.0
+ ws 8.18.1
+ zigbee-herdsman 3.2.7
+ zigbee-herdsman-converters 23.2.0
+ zigbee2mqtt-frontend 0.9.4
optionalDependencies:
+ sd-notify 2.8.0
devDependencies:
+ @eslint/core 0.12.0
+ @eslint/js 9.21.0
+ @ianvs/prettier-plugin-sort-imports 4.4.1
+ @types/finalhandler 1.2.3
+ @types/humanize-duration 3.27.4
+ @types/js-yaml 4.0.9
+ @types/node 22.13.5
+ @types/object-assign-deep 0.4.3
+ @types/readable-stream 4.0.18
+ @types/sd-notify 2.8.2
+ @types/serve-static 1.15.7
+ @types/ws 8.5.14
+ @vitest/coverage-v8 3.0.7
+ eslint 9.21.0
+ eslint-config-prettier 10.0.1
+ prettier 3.5.2
+ tmp 0.2.3
+ typescript 5.7.3
+ typescript-eslint 8.25.0
+ vitest 3.0.7
Done in 13.7s using pnpm v9.15.6
> zigbee2mqtt@2.1.2 build /opt/zigbee2mqtt
> tsc && node index.js writehash
#######################################################
##### Configure deamon and start it
#######################################################
#                         END                         #
#######################################################

Merci, j’ai fait la modif.

Cependant, cela ne fonctionne pas.

#######################################################
#    INSTALL : Zigbee2mqtt                            #
#######################################################
#######################################################
##### apt-get update in progress
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
Hit:4 http://security.debian.org bullseye-security InRelease
Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:6 http://www.deb-multimedia.org bullseye InRelease
Hit:7 https://oph.mdrjr.net/meveric all InRelease
Hit:8 https://oph.mdrjr.net/meveric bullseye InRelease
Reading package lists...
#######################################################
##### Install or update Git
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:10.2.1-1).
gcc is already the newest version (4:10.2.1-1).
make is already the newest version (4.3-4.1).
git is already the newest version (1:2.30.2-1+deb11u4).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
#######################################################
##### Install or update NodeJs
NodeJs 20 already installed : Nothing to do !
pnpm install version 9.15.6
changed 1 package in 8s
1 package is looking for funding
run `npm fund` for details
#######################################################
#    INSTALLING : Mosquitto for Php                   #
#######################################################
Mosquitto for Php is already installed, nothing to do
##### Z2M BRANCH version to install : master
#######################################################
##### Install Socat
Socat is already installed, nothing to do
#######################################################
##### Install yaml php and restart apache
Yaml is already installed, nothing to do
#######################################################
#####    Stopping Zigbee2mqtt deamon                  #
#######################################################
##### Repare Zigbee2MQTT
npm warn using --force Recommended protections disabled.
## Supprime l'installation dans /opt/zigbee2mqtt
## Supprime l'installation dans /opt/zigbee2mqtt
#######################################################
##### Complete installation : Download Zigbee2mqtt git
Cloning into '/opt/zigbee2mqtt'...
#######################################################
##### Install/Update Zigbee2mqtt
 ERROR  Cannot proceed with the frozen installation. The current "overrides" configuration doesn't match the value found in the lockfile
Update your lockfile using "pnpm install --no-frozen-lockfile"
 ERROR  Failed to switch pnpm to v10.4.1. Looks like pnpm CLI is missing at "/root/.local/share/pnpm/.tools/pnpm/10.4.1/bin" or is incorrect
spawnSync /root/.local/share/pnpm/.tools/pnpm/10.4.1/bin/pnpm ENOENT
#######################################################
##### Configure deamon and start it
#######################################################
#                         END                         #
#######################################################

Alors dans ton cas tu peux tenter temporairement :

modifier dans /plugins/zigbee2mqtt/resources/install_nodejs.sh

sudo npm install -g pnpm
par
sudo npm install -g pnpm@10.4.1

modifier dans /plugins/zigbee2mqtt/resources/install_z2m.sh

sudo pnpm i --frozen-lockfile
par
sudo pnpm i --no-frozen-lockfile

akenad :slight_smile: