Mise a jour plugin z wave js

Bonne année a tous.
Bonjour,
Je me permet de vous poser une question car j’ai fait une bêtise j’ai fait la mise a jour de zwave js je sais je n’aurais pas du!!!
Mais se qui est fait est fait du coup mon plugins reste en nok.
si vous avez des idées je suis preneur je vous joint mon log en débug de zwave js.
Bonne soirée a tous

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_zwavejs
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../plugins/zwavejs/resources/pre_install.sh
+ sudo /var/www/html/core/class/../../plugins/zwavejs/resources/pre_install.sh
+ echo 'Pre installation de l'\''installation/mise à jour des dépendances zwavejs'
Pre installation de l'installation/mise à jour des dépendances zwavejs
+++ dirname /var/www/html/core/class/../../plugins/zwavejs/resources/pre_install.sh
++ cd /var/www/html/core/class/../../plugins/zwavejs/resources
++ pwd
+ BASEDIR=/var/www/html/plugins/zwavejs/resources
+ cd /var/www/html/plugins/zwavejs/resources
+ source ../core/config/zwavejs.config.ini
+ echo 'Wanted Version: 9.6.2'
Wanted Version: 9.6.2
+ rm -R zwave-js-ui
+ git clone --branch v9.6.2 --depth 1 https://github.com/zwave-js/zwave-js-ui
Cloning into 'zwave-js-ui'...
Note: checking out '6e369a1bc8fac7ea92a3c069e808a46b42c68a8d'.
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 performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b 
+ echo 'Pre install finished'
Pre install finished
+ echo 3
+ sudo chmod +x /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
+ sudo /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
+ echo 'Post installation de l'\''installation/mise à jour des dépendances zwavejs'
Post installation de l'installation/mise à jour des dépendances zwavejs
+++ dirname /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
++ cd /var/www/html/core/class/../../plugins/zwavejs/resources
++ pwd
+ BASEDIR=/var/www/html/plugins/zwavejs/resources
+ cd /var/www/html/plugins/zwavejs/resources
+ cd zwave-js-ui
+ sudo yarn install
yarn install v1.22.19
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] Validating package.json...
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
+ sudo yarn run build
yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
+ chown -R www-data:www-data CHANGELOG.md LICENSE README.md SECURITY.md api certs docker docs esbuild-register.js esbuild.js genereteDocs.ts index.html kubernetes kustomization.yaml nodemon.json package-lock.json package.json package.sh pkg public server_config.js snippets src store test tsconfig.eslint.json tsconfig.json vite.config.js wallaby.js
+ '[' -e /dev/ttyAMA0 ']'
+ '[' -e /dev/ttymxc0 ']'
+ '[' -e /dev/ttyAMA0 ']'
++ grep Revision /proc/cpuinfo
++ cut -d: -f2
++ tr -d ' '
+ RPI_BOARD_REVISION=
+ [[ '' == a\8 ]]
+ [[ '' == a\8 ]]
+ [[ '' == a\d ]]
+ echo 'Everything is successfully installed!'
Everything is successfully installed!
+ echo 4
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end zwavejs
+ rm /tmp/jeedom_install_in_progress_zwavejs
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Bonjour,

Votre version de Node n’est pas à jour, votre Jeedom ne doit pas être en version 4.3.21 ?
Si ce n’est pas le cas, mettez à jour Jeedom et l’installation du plugin ZwaveJS devrait fonctionner.

1 « J'aime »

Merci je vais tester ca bonne journée

Bonjour à tous et bonne année.
Il semblerait que mon problème soit le même qu’ @erick2 .
Mon Node ne veut pas se mettre à jour alors que mon Jeedom l’est:

Jeedom: 4.3.21
ZwaveJsUI: 9.6.2

LOG Zwavejs

[2024-01-08 18:55:56]ERROR : Impossible de démarrer le démon ZwaveJS, consultez les logs
[2024-01-08 19:00:08]ERROR : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2024-01-08 19:00:19]ERROR

LOG Zwavejs_packages

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_zwavejs
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../plugins/zwavejs/resources/pre_install.sh
+ sudo /var/www/html/core/class/../../plugins/zwavejs/resources/pre_install.sh
+ echo 'Pre installation de l'\''installation/mise à jour des dépendances zwavejs'
Pre installation de l'installation/mise à jour des dépendances zwavejs
+++ dirname /var/www/html/core/class/../../plugins/zwavejs/resources/pre_install.sh
++ cd /var/www/html/core/class/../../plugins/zwavejs/resources
++ pwd
+ BASEDIR=/var/www/html/plugins/zwavejs/resources
+ cd /var/www/html/plugins/zwavejs/resources
+ source ../core/config/zwavejs.config.ini
+ echo 'Wanted Version: 9.6.2'
Wanted Version: 9.6.2
+ rm -R zwave-js-ui
+ git clone --branch v9.6.2 --depth 1 https://github.com/zwave-js/zwave-js-ui
Cloning into 'zwave-js-ui'...
Note: checking out '6e369a1bc8fac7ea92a3c069e808a46b42c68a8d'.
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 performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b 
+ echo 'Pre install finished'
Pre install finished
+ echo 3
+ sudo chmod +x /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
+ sudo /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
+ echo 'Post installation de l'\''installation/mise à jour des dépendances zwavejs'
Post installation de l'installation/mise à jour des dépendances zwavejs
+++ dirname /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
++ cd /var/www/html/core/class/../../plugins/zwavejs/resources
++ pwd
+ BASEDIR=/var/www/html/plugins/zwavejs/resources
+ cd /var/www/html/plugins/zwavejs/resources
+ cd zwave-js-ui
+ sudo yarn install
yarn install v1.22.19
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] Validating package.json...
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
+ sudo yarn run build
yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
+ chown -R www-data:www-data CHANGELOG.md LICENSE README.md SECURITY.md api certs docker docs esbuild-register.js esbuild.js genereteDocs.ts index.html kubernetes kustomization.yaml nodemon.json package-lock.json package.json package.sh pkg public server_config.js snippets src store test tsconfig.eslint.json tsconfig.json vite.config.js wallaby.js
+ '[' -e /dev/ttyAMA0 ']'
+ '[' -e /dev/ttymxc0 ']'
+ '[' -e /dev/ttyAMA0 ']'
++ grep Revision /proc/cpuinfo
++ cut -d: -f2
++ tr -d ' '
+ RPI_BOARD_REVISION=
+ [[ '' == a\8 ]]
+ [[ '' == a\8 ]]
+ [[ '' == a\d ]]
+ echo 'Everything is successfully installed!'
Everything is successfully installed!
+ echo 4
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end zwavejs
+ rm /tmp/jeedom_install_in_progress_zwavejs
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Zwavejsd

yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
error zwave-js-ui@9.6.2: The engine "node" is incompatible with this module. Expected version ">= 18.12". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
$ node --preserve-symlinks server/bin/www.js
node:internal/modules/cjs/loader:1137
throw err;
^
Error: Cannot find module '/var/www/html/plugins/zwavejs/resources/zwave-js-ui/server/bin/www.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.19.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
$ node --preserve-symlinks server/bin/www.js
node:internal/modules/cjs/loader:1137
throw err;
^
Error: Cannot find module '/var/www/html/plugins/zwavejs/resources/zwave-js-ui/server/bin/www.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.19.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
$ node --preserve-symlinks server/bin/www.js
node:internal/modules/cjs/loader:1137
throw err;
^
Error: Cannot find module '/var/www/html/plugins/zwavejs/resources/zwave-js-ui/server/bin/www.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.19.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
$ node --preserve-symlinks server/bin/www.js
node:internal/modules/cjs/loader:1137
throw err;
^
Error: Cannot find module '/var/www/html/plugins/zwavejs/resources/zwave-js-ui/server/bin/www.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.19.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
$ node --preserve-symlinks server/bin/www.js
node:internal/modules/cjs/loader:1137
throw err;
^
Error: Cannot find module '/var/www/html/plugins/zwavejs/resources/zwave-js-ui/server/bin/www.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.19.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Merci d’avance pour votre aide

Bonjour,
Ayant eu le même problème il y a quelques jours (… Expected version « >= 18.12 ». Got « 16.20.2 » …), le problème a été résolu en mettant à jour les dépendances de ZwaveJs dans la configuration du plugin.
En espérant que çà puisse aider.
Bonne année 2024 à tous.

Bonjour

Il y a plusieurs sujets qui traitent de la mise à jour de nodejs…

Je l’ai fait 3x… Idem :wink:

Bonjour,

Bizarre car il y a eu une mise à jour de Jeedom qui doit en effet faire que la mise à jour de nodejs se lance avec les dépendances.

En ssh faire : sudo /var/www/html/resources/install_nodejs.sh

Ensuite toujours en ssh faire node -v et coller le résultat.

1 « J'aime »

Bonjour,

A partir de Jeedom 4.3.21, mettre à jour NodeJS en faisant :
Réglages > Système > Configuration > OS/DB > Vérification générale > Vérifier

Plus de détails ici : [RTEX] Box Jeedom Atlas - plugin MQTT Manager (mqtt2) Mode Broker local - avec plugins abonnés Z-Wave JS (zwavejs) et JeeZigbee (z2m)

akenad :slight_smile:

Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://deb.debian.org/debian buster-backports InRelease
Hit:4 http://security.debian.org buster/updates InRelease
Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
Hit:6 http://armbian.hosthatch.com/apt buster InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
apt-utils is already the newest version (1.8.2.3).
build-essential is already the newest version (12.6).
lsb-release is already the newest version (10.2019051400).
git is already the newest version (1:2.20.1-2+deb10u8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[Check Version NodeJS actuelle : v18.19.0 : [  OK  ]
[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
v18.19.0

→ LANCEMENT DE LA MAJ du PLUGIN
→ A CE STADE Version ZwaveJS UI == 8.26.0
Démon OK -->Tout semble fonctionner comme il faut…
→ LANCEMENT de la Relance des dépendances pour mettre à jour la librairie vers 9.6.2
Démon OK -->Tout semble fonctionner comme il faut…

Très étrange…
j’avais déjà fait 2 ou 3 tentatives avec la commande sudo /var/www/html/resources/install_nodejs.sh, sans résultat.

Encore plus étrange, normalement la MAJ JEEDOM devait corriger le problème :scream:

:pray:t2: Merci beaucoup en tout cas :pray:t2:

Bonsoir.
Un ami qui gère mon réseau a remis en route zwave tout cours et ca fonctionne de nouveau.
c’est vraiment compliquer le réseau zwave il me tarde de ne plus avoir de capteur de se type.
bonne soirée a tous.

Bonjour,

Je crois que tu n’as pas lu les posts de ce fil qui indiquent :

  • la façon de corriger ton problème
  • que le problème n’est pas du fait de zwave-js
  • qu’il est possible que tant que tu ne corriges pas le problème que tu ais des problèmes avec d’autres plugins.