Démon JeeZigbee NOK suite migration Debian 11

Bonjour,

J’ai récemment migré ma box Jeedom Smart vers Debian 11 et après plusieurs difficultés je pensais avoir enfin une box fonctionnelle (en particulier grâce à l’aide de @akenad).
Détail de ce qui a été fait ici : Migration Jeedom Smart vers Debian 11 - Problèmes DNS Jeedom + dépendances

Or depuis 1 ou 2 jours JeeZigbee ne fonctionne plus : le Démon ne veut plus démarrer.
Je me suis rendu compte que Zigbee2MQTT qui était resté en version 1.42 est passé en version 2.1.1.

J’ai vu sur plusieurs posts que Zigbee2MQTT était incompatible avec Debian 10 mais là j’ai l’impression que c’est l’inverse.

Une idée de ce qui cloche ?

Je joins mes logs ci-dessous.

0489|[2025-03-01 19:55:04] ERROR  : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
0490|[2025-03-01 20:00:05] ERROR  : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement

Log Z2M packages

0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_z2m
0003|+ echo 1
0004|+ echo 2
0005|+ sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh
0006|+ sudo /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh
0007|Launch pre-install of z2m dependancy
0008|+ echo 3
0009|+ php /var/www/html/core/class/../php/jeecli.php plugin install mqtt2
0010|+ echo 4
0011|+ sudo killall apt apt-get unattended-upgr
0012|apt: no process found
0013|apt-get: no process found
0014|unattended-upgr: no process found
0015|+ sudo rm /var/lib/apt/lists/lock
0016|+ sudo rm /var/cache/apt/archives/lock
0017|+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
0018|+ sudo sudo dpkg --configure -a --force-confdef
0019|+ sudo apt update
0020|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0021|Hit:1 http://deb.debian.org/debian bullseye InRelease
0022|Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
0023|Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
0024|Hit:4 http://security.debian.org bullseye-security InRelease
0025|Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
0026|Hit:6 http://www.deb-multimedia.org bullseye InRelease
0027|Hit:7 https://oph.mdrjr.net/meveric all InRelease
0028|Hit:8 https://oph.mdrjr.net/meveric bullseye InRelease
0029|Reading package lists...
0030|Building dependency tree...
0031|Reading state information...
0032|3 packages can be upgraded. Run 'apt list --upgradable' to see them.
0033|+ echo 5
0034|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0035|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0036|Vérification si la source deb-multimedia existe (bug lors du apt-get update si c'est le cas)
0037|deb-multimedia existe !
0038|Désactivation de la source deb-multimedia !
0039|Hit:1 http://deb.debian.org/debian bullseye InRelease
0040|Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
0041|Hit:3 http://deb.debian.org/debian bullseye-backports InRelease
0042|Hit:4 http://security.debian.org bullseye-security InRelease
0043|Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
0044|Hit:6 https://oph.mdrjr.net/meveric all InRelease
0045|Hit:7 https://oph.mdrjr.net/meveric bullseye InRelease
0046|Reading package lists...
0047|Reading package lists...
0048|Building dependency tree...
0049|Reading state information...
0050|apt-utils is already the newest version (2.2.4).
0051|build-essential is already the newest version (12.9).
0052|lsb-release is already the newest version (11.1.0).
0053|git is already the newest version (1:2.30.2-1+deb11u4).
0054|0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
0055|[Check Version NodeJS actuelle : v20.18.3 : [  OK  ]
0056|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
0057|Réactivation de la source deb-multimedia qu'on avait désactivé !
0058|Clean npm cache
0059|npm warn using --force Recommended protections disabled.
0060|+ echo 6
0061|+ sudo apt install -o Dpkg::Options::=--force-confdef -y php-yaml
0062|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0063|Reading package lists...
0064|Building dependency tree...
0065|Reading state information...
0066|php-yaml is already the newest version (2.2.1+2.1.0+2.0.4+1.3.2-2).
0067|0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
0068|+ echo 7
0069|+ sudo systemctl restart apache2
0070|+ echo 8
0071|+ sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0072|+ sudo /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0073|+ echo Launch post-install of z2m dependancy
0074|Launch post-install of z2m dependancy
0075|+ realpath /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0076|+ dirname /var/www/html/plugins/z2m/resources/post-install.sh
0077|+ BASEDIR=/var/www/html/plugins/z2m/resources
0078|+ [ -d /var/www/html/plugins/z2m/resources/zigbee2mqtt ]
0079|+ rm -rf /var/www/html/plugins/z2m/resources/zigbee2mqtt
0080|+ mkdir /var/www/html/plugins/z2m/resources/zigbee2mqtt
0081|+ git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /var/www/html/plugins/z2m/resources/zigbee2mqtt
0082|Cloning into '/var/www/html/plugins/z2m/resources/zigbee2mqtt'...
0083|+ cd /var/www/html/plugins/z2m/resources/zigbee2mqtt
0084|+ [ -f /var/www/html/plugins/z2m/resources/../data/wanted_z2m_version ]
0085|+ [ -n  ]
0086|+ npm install -g pnpm
0087|changed 1 package in 7s
0088|1 package is looking for funding
0089|run `npm fund` for details
0090|+ pnpm i --frozen-lockfile
0091| ERROR  Failed to switch pnpm to v9.15.4. Looks like pnpm CLI is missing at "/root/.local/share/pnpm/.tools/pnpm/9.15.4/bin" or is incorrect
0092|spawnSync /root/.local/share/pnpm/.tools/pnpm/9.15.4/bin/pnpm ENOENT
0093|+ pnpm run build
0094| ERROR  Failed to switch pnpm to v9.15.4. Looks like pnpm CLI is missing at "/root/.local/share/pnpm/.tools/pnpm/9.15.4/bin" or is incorrect
0095|spawnSync /root/.local/share/pnpm/.tools/pnpm/9.15.4/bin/pnpm ENOENT
0096|+ chown www-data:www-data -R /var/www/html/plugins/z2m/resources/zigbee2mqtt
0097|+ echo 9
0098|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end z2m
0099|+ echo 10
0100|+ rm /tmp/jeedom_install_in_progress_z2m
0101|+ echo '*******************End of package installation******************'
0102|*******************End of package installation******************

Log z2Md (cet extrait se répète des dizaines de fois) :

4647|> zigbee2mqtt@2.1.1 start
4648|> node index.js
4649|node:internal/modules/cjs/loader:1228
4650|throw err;
4651|^
4652|Error: Cannot find module 'semver'
4653|Require stack:
4654|- /var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js
4655|at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
4656|at Module._load (node:internal/modules/cjs/loader:1051:27)
4657|at Module.require (node:internal/modules/cjs/loader:1311:19)
4658|at require (node:internal/modules/helpers:179:18)
4659|at Object.<anonymous> (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:1:16)
4660|at Module._compile (node:internal/modules/cjs/loader:1469:14)
4661|at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
4662|at Module.load (node:internal/modules/cjs/loader:1288:32)
4663|at Module._load (node:internal/modules/cjs/loader:1104:12)
4664|at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
4665|code: 'MODULE_NOT_FOUND',
4666|requireStack: [ '/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js' ]
4667|}
4668|Node.js v20.18.3
0090|+ pnpm i --frozen-lockfile
0091| ERROR  Failed to switch pnpm to v9.15.4. Looks like pnpm CLI is missing at "/root/.local/share/pnpm/.tools/pnpm/9.15.4/bin" or is incorrect
0092|spawnSync /root/.local/share/pnpm/.tools/pnpm/9.15.4/bin/pnpm ENOENT

Bonjour,

Voir : Problème démon jeezigbee - #25 par akenad

akenad :slight_smile:

Je suis revenu à la v1.42 comme indiqué et effectivement ça remarche.

0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_z2m
0003|+ echo 1
0004|+ echo 2
0005|+ sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh
0006|+ sudo /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh
0007|Launch pre-install of z2m dependancy
0008|+ echo 3
0009|+ php /var/www/html/core/class/../php/jeecli.php plugin install mqtt2
0010|+ echo 4
0011|+ sudo killall apt apt-get unattended-upgr
0012|apt: no process found
0013|apt-get: no process found
0014|unattended-upgr: no process found
0015|+ sudo rm /var/lib/apt/lists/lock
0016|+ sudo rm /var/cache/apt/archives/lock
0017|+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
0018|+ sudo sudo dpkg --configure -a --force-confdef
0019|+ sudo apt update
0020|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0021|Hit:1 http://deb.debian.org/debian bullseye InRelease
0022|Hit:2 http://security.debian.org bullseye-security InRelease
0023|Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
0024|Get:4 http://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
0025|Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
0026|Hit:6 https://oph.mdrjr.net/meveric all InRelease
0027|Hit:7 http://www.deb-multimedia.org bullseye InRelease
0028|Hit:8 https://oph.mdrjr.net/meveric bullseye InRelease
0029|Fetched 93.0 kB in 4s (22.1 kB/s)
0030|Reading package lists...
0031|Building dependency tree...
0032|Reading state information...
0033|3 packages can be upgraded. Run 'apt list --upgradable' to see them.
0034|+ echo 5
0035|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0036|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0037|Vérification si la source deb-multimedia existe (bug lors du apt-get update si c'est le cas)
0038|deb-multimedia existe !
0039|Désactivation de la source deb-multimedia !
0040|Hit:1 http://security.debian.org bullseye-security InRelease
0041|Hit:2 http://deb.debian.org/debian bullseye InRelease
0042|Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
0043|Hit:4 http://deb.debian.org/debian bullseye-backports InRelease
0044|Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
0045|Hit:6 https://oph.mdrjr.net/meveric all InRelease
0046|Hit:7 https://oph.mdrjr.net/meveric bullseye InRelease
0047|Reading package lists...
0048|Reading package lists...
0049|Building dependency tree...
0050|Reading state information...
0051|apt-utils is already the newest version (2.2.4).
0052|build-essential is already the newest version (12.9).
0053|lsb-release is already the newest version (11.1.0).
0054|git is already the newest version (1:2.30.2-1+deb11u4).
0055|0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
0056|[Check Version NodeJS actuelle : v20.18.3 : [  OK  ]
0057|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
0058|Réactivation de la source deb-multimedia qu'on avait désactivé !
0059|Clean npm cache
0060|npm warn using --force Recommended protections disabled.
0061|+ echo 6
0062|+ sudo apt install -o Dpkg::Options::=--force-confdef -y php-yaml
0063|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0064|Reading package lists...
0065|Building dependency tree...
0066|Reading state information...
0067|php-yaml is already the newest version (2.2.1+2.1.0+2.0.4+1.3.2-2).
0068|0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
0069|+ echo 7
0070|+ sudo systemctl restart apache2
0071|+ echo 8
0072|+ sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0073|+ sudo /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0074|+ echo Launch post-install of z2m dependancy
0075|Launch post-install of z2m dependancy
0076|+ realpath /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
0077|+ dirname /var/www/html/plugins/z2m/resources/post-install.sh
0078|+ BASEDIR=/var/www/html/plugins/z2m/resources
0079|+ [ -d /var/www/html/plugins/z2m/resources/zigbee2mqtt ]
0080|+ rm -rf /var/www/html/plugins/z2m/resources/zigbee2mqtt
0081|+ mkdir /var/www/html/plugins/z2m/resources/zigbee2mqtt
0082|+ git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /var/www/html/plugins/z2m/resources/zigbee2mqtt
0083|Cloning into '/var/www/html/plugins/z2m/resources/zigbee2mqtt'...
0084|+ cd /var/www/html/plugins/z2m/resources/zigbee2mqtt
0085|+ [ -f /var/www/html/plugins/z2m/resources/../data/wanted_z2m_version ]
0086|+ cat /var/www/html/plugins/z2m/resources/../data/wanted_z2m_version
0087|+ wanted_z2m_version=1.42.0
0088|+ [ -n 1.42.0 ]
0089|+ echo Need version : 1.42.0
0090|Need version : 1.42.0
0091|+ git fetch --all --tags
0092|Fetching origin
0093|From https://github.com/Koenkk/zigbee2mqtt
0094|* [new tag]           0.1.0      -> 0.1.0
0095|* [new tag]           0.1.1      -> 0.1.1
0096|* [new tag]           0.1.2      -> 0.1.2
0097|* [new tag]           0.1.3      -> 0.1.3
0098|* [new tag]           0.1.4      -> 0.1.4
0099|* [new tag]           0.1.5      -> 0.1.5
0100|* [new tag]           0.1.6      -> 0.1.6
0101|* [new tag]           0.1.7      -> 0.1.7
0102|* [new tag]           0.1.8      -> 0.1.8
0103|* [new tag]           0.2.0      -> 0.2.0
0104|* [new tag]           1.0.0      -> 1.0.0
0105|* [new tag]           1.0.1      -> 1.0.1
0106|* [new tag]           1.1.0      -> 1.1.0
0107|* [new tag]           1.1.1      -> 1.1.1
0108|* [new tag]           1.10.0     -> 1.10.0
0109|* [new tag]           1.11.0     -> 1.11.0
0110|* [new tag]           1.12.0     -> 1.12.0
0111|* [new tag]           1.12.1     -> 1.12.1
0112|* [new tag]           1.12.2     -> 1.12.2
0113|* [new tag]           1.13.0     -> 1.13.0
0114|* [new tag]           1.13.1     -> 1.13.1
0115|* [new tag]           1.14.0     -> 1.14.0
0116|* [new tag]           1.14.1     -> 1.14.1
0117|* [new tag]           1.14.2     -> 1.14.2
0118|* [new tag]           1.14.3     -> 1.14.3
0119|* [new tag]           1.14.4     -> 1.14.4
0120|* [new tag]           1.15.0     -> 1.15.0
0121|* [new tag]           1.16.0     -> 1.16.0
0122|* [new tag]           1.16.1     -> 1.16.1
0123|* [new tag]           1.16.2     -> 1.16.2
0124|* [new tag]           1.17.0     -> 1.17.0
0125|* [new tag]           1.17.1     -> 1.17.1
0126|* [new tag]           1.18.0     -> 1.18.0
0127|* [new tag]           1.18.1     -> 1.18.1
0128|* [new tag]           1.18.2     -> 1.18.2
0129|* [new tag]           1.18.3     -> 1.18.3
0130|* [new tag]           1.19.0     -> 1.19.0
0131|* [new tag]           1.19.1     -> 1.19.1
0132|* [new tag]           1.2.0      -> 1.2.0
0133|* [new tag]           1.2.1      -> 1.2.1
0134|* [new tag]           1.20.0     -> 1.20.0
0135|* [new tag]           1.21.0     -> 1.21.0
0136|* [new tag]           1.21.1     -> 1.21.1
0137|* [new tag]           1.21.2     -> 1.21.2
0138|* [new tag]           1.22.0     -> 1.22.0
0139|* [new tag]           1.22.1     -> 1.22.1
0140|* [new tag]           1.22.2     -> 1.22.2
0141|* [new tag]           1.23.0     -> 1.23.0
0142|* [new tag]           1.24.0     -> 1.24.0
0143|* [new tag]           1.25.0     -> 1.25.0
0144|* [new tag]           1.25.1     -> 1.25.1
0145|* [new tag]           1.25.2     -> 1.25.2
0146|* [new tag]           1.26.0     -> 1.26.0
0147|* [new tag]           1.27.0     -> 1.27.0
0148|* [new tag]           1.27.1     -> 1.27.1
0149|* [new tag]           1.27.2     -> 1.27.2
0150|* [new tag]           1.28.0     -> 1.28.0
0151|* [new tag]           1.28.1     -> 1.28.1
0152|* [new tag]           1.28.2     -> 1.28.2
0153|* [new tag]           1.28.3     -> 1.28.3
0154|* [new tag]           1.28.4     -> 1.28.4
0155|* [new tag]           1.29.0     -> 1.29.0
0156|* [new tag]           1.29.1     -> 1.29.1
0157|* [new tag]           1.29.2     -> 1.29.2
0158|* [new tag]           1.3.0      -> 1.3.0
0159|* [new tag]           1.3.1      -> 1.3.1
0160|* [new tag]           1.30.0     -> 1.30.0
0161|* [new tag]           1.30.1     -> 1.30.1
0162|* [new tag]           1.30.2     -> 1.30.2
0163|* [new tag]           1.30.3     -> 1.30.3
0164|* [new tag]           1.30.4     -> 1.30.4
0165|* [new tag]           1.31.0     -> 1.31.0
0166|* [new tag]           1.31.1     -> 1.31.1
0167|* [new tag]           1.31.2     -> 1.31.2
0168|* [new tag]           1.32.0     -> 1.32.0
0169|* [new tag]           1.32.1     -> 1.32.1
0170|* [new tag]           1.32.2     -> 1.32.2
0171|* [new tag]           1.33.0     -> 1.33.0
0172|* [new tag]           1.33.1     -> 1.33.1
0173|* [new tag]           1.33.2     -> 1.33.2
0174|* [new tag]           1.34.0     -> 1.34.0
0175|* [new tag]           1.35.0     -> 1.35.0
0176|* [new tag]           1.35.1     -> 1.35.1
0177|* [new tag]           1.35.2     -> 1.35.2
0178|* [new tag]           1.35.3     -> 1.35.3
0179|* [new tag]           1.36.0     -> 1.36.0
0180|* [new tag]           1.36.1     -> 1.36.1
0181|* [new tag]           1.37.0     -> 1.37.0
0182|* [new tag]           1.37.1     -> 1.37.1
0183|* [new tag]           1.38.0     -> 1.38.0
0184|* [new tag]           1.39.0     -> 1.39.0
0185|* [new tag]           1.39.1     -> 1.39.1
0186|* [new tag]           1.4.0      -> 1.4.0
0187|* [new tag]           1.40.0     -> 1.40.0
0188|* [new tag]           1.40.1     -> 1.40.1
0189|* [new tag]           1.40.2     -> 1.40.2
0190|* [new tag]           1.41.0     -> 1.41.0
0191|* [new tag]           1.42.0     -> 1.42.0
0192|* [new tag]           1.5.0      -> 1.5.0
0193|* [new tag]           1.5.1      -> 1.5.1
0194|* [new tag]           1.6.0      -> 1.6.0
0195|* [new tag]           1.7.0      -> 1.7.0
0196|* [new tag]           1.7.1      -> 1.7.1
0197|* [new tag]           1.8.0      -> 1.8.0
0198|* [new tag]           1.9.0      -> 1.9.0
0199|* [new tag]           2.0.0      -> 2.0.0
0200|* [new tag]           2.1.0      -> 2.1.0
0201|* [new tag]           2.1.1      -> 2.1.1
0202|+ git checkout tags/1.42.0
0203|Note: switching to 'tags/1.42.0'.
0204|You are in 'detached HEAD' state. You can look around, make experimental
0205|changes and commit them, and you can discard any commits you make in this
0206|state without impacting any branches by switching back to a branch.
0207|If you want to create a new branch to retain commits you create, you may
0208|do so (now or later) by using -c with the switch command. Example:
0209|git switch -c <new-branch-name>
0210|Or undo this operation with:
0211|git switch -
0212|Turn off this advice by setting config variable advice.detachedHead to false
0213|HEAD is now at 861cba63 chore(dev): release 1.42.0 (#24569)
0214|+ [ -n 1.42.0 ]
0215|+ echo 1.42.0
0216|+ head -c 1
0217|+ [ 1 -lt 2 ]
0218|+ npm ci
0219|npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
0220|npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
0221|added 646 packages, and audited 647 packages in 1m
0222|90 packages are looking for funding
0223|run `npm fund` for details
0224|found 0 vulnerabilities
0225|+ npm run build
0226|> zigbee2mqtt@1.42.0 build
0227|> tsc && node index.js writehash
0228|+ chown www-data:www-data -R /var/www/html/plugins/z2m/resources/zigbee2mqtt
0229|+ echo 9
0230|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end z2m
0231|+ echo 10
0232|+ rm /tmp/jeedom_install_in_progress_z2m
0233|+ echo '*******************End of package installation******************'
0234|*******************End of package installation******************

Cela veut-il dire que la v2.x est à éviter comme la peste ?
Ou dois-je revenir en v2.1.1 est espérer que ça fonctionne cette fois ?

Non, seulement qu’il y a du travail à faire côté utilisateur et développeur pour avoir une solution qui fonctionne bien pour tous.

Antoine

Côté utilisateur ?
Je veux bien aider pour contribuer, mais rien qu’en ouvrant le descriptif de la v2.0, je tombe sur des dizaines de points de correction. Ca fait un peu peur !
Des idées pour cibler ?