Interface Zwave JS UI non accessible - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string'

Bonjour,
Suite à une mauvaise manipulation j’ai du réinstaller mon Jeedom. :saluting_face:
Je suis passé de Linux 10 à 11 et je suis passé de « OpenZwave » à « Zwave-JS ».
J’ai aussi réussi à faire fonctionner tous mes modules Zwave, par contre impossible d’accéder à l’interface :

Error: Not Found
    at /var/www/html/plugins/zwavejs/resources/zwave-js-ui/server/app.js:1238:17
    at Layer.handle [as handle_request] (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:328:13)
    at /var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:346:12)
    at next (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:280:10)
    at session (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express-session/index.js:487:7)
    at Layer.handle [as handle_request] (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:328:13)
    at /var/www/html/plugins/zwavejs/resources/zwave-js-ui/node_modules/express/lib/router/index.js:286:9

Dans les dépendances j’ai cette erreur que je n’arrive pas à résoudre :

[5/5] Building fresh packages...
success Saved lockfile.
Done in 84.27s.
+ sudo yarn run build
yarn run v1.22.22
$ npm-run-all build:*
$ tsc
api/lib/logger.ts(96,49): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string'.
api/lib/logger.ts(97,47): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string'.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build:server" exited with 2.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

J’ai déjà redémarré avant de faire l’installation des dépendances, changer la commande pour utiliser moins de RAM, passer à la dernière version de « Zwave-JS » en modifiant le fichier .ini… bref je n’ai plus d’idée…

Please help… :slight_smile:
Merci

Bonsoir.

Comment êtes vous passé en Debian 11 ?

Mise à jour de l’os ou installation depuis 0 ?

Votre profil indique que vous avez un pi2 ! L’installation des dépendances de ce plugin est déjà problématique avec un Pi3 et 1 go de mémoire RAM, alors avec un pi2…

Bonjour,

J’ai eu la même erreur de dépendances cet après-midi sur mon Jeedom en Debian 11 (installé correctement :wink:) et 4 Go de RAM.
Une autre personne également sur Debian 12 :

Bonjour,
J’ai la même chose depuis … Cela fait 2 ou 3 mois que je suis sur Z-wave JS au moment du basculement, j’avais accès à l’interface et depuis hier, j’ai essayé d’y accéder maisimpossible mais je n’y suis plus allé depuis que mon installation fonctionne correctement sur JS.

+ 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.20.0'
Wanted Version: 9.20.0
+ rm -R zwave-js-ui
+ git clone --branch v9.20.0 --depth 1 https://github.com/zwave-js/zwave-js-ui
Cloning into 'zwave-js-ui'...
Note: switching to 'bf3bdc3f13d903cf100b0ba9c3333101ffd29418'.

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

+ echo 'Pre install finished'
Pre install finished
+ echo 3
+ php /var/www/html/core/class/../php/jeecli.php plugin install mqtt2
+ echo 4
+ sudo killall apt apt-get unattended-upgr
apt: no process found
apt-get: no process found
+ sudo rm /var/lib/apt/lists/lock
+ sudo rm /var/cache/apt/archives/lock
+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
+ sudo sudo dpkg --configure -a --force-confdef
+ sudo apt update

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
Hit:3 https://deb.nodesource.com/node_20.x nodistro InRelease
Get:4 https://pkgs.tailscale.com/stable/raspbian bullseye InRelease
Fetched 21.6 kB in 2s (12.0 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
135 packages can be upgraded. Run 'apt list --upgradable' to see them.
+ echo 5
+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 https://deb.nodesource.com/node_20.x nodistro InRelease
Get:4 https://pkgs.tailscale.com/stable/raspbian bullseye InRelease
Fetched 6581 B in 3s (2351 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
apt-utils is already the newest version (2.2.4).
build-essential is already the newest version (12.9).
git is already the newest version (1:2.30.2-1+deb11u3).
lsb-release is already the newest version (11.1.0+rpi1).
0 upgraded, 0 newly installed, 0 to remove and 135 not upgraded.
[Check Version NodeJS actuelle : v20.17.0 : [  OK  ]
[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
Clean npm cache
npm warn using --force Recommended protections disabled.
+ echo 6
+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 https://deb.nodesource.com/node_20.x nodistro InRelease
Get:4 https://pkgs.tailscale.com/stable/raspbian bullseye InRelease
Fetched 6581 B in 2s (3658 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
apt-utils is already the newest version (2.2.4).
build-essential is already the newest version (12.9).
git is already the newest version (1:2.30.2-1+deb11u3).
lsb-release is already the newest version (11.1.0+rpi1).
0 upgraded, 0 newly installed, 0 to remove and 135 not upgraded.
[Check Version NodeJS actuelle : v20.17.0 : [  OK  ]
[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
Clean npm cache
npm warn using --force Recommended protections disabled.
+ echo 7
+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:3 https://deb.nodesource.com/node_20.x nodistro InRelease
Get:4 https://pkgs.tailscale.com/stable/raspbian bullseye InRelease
Fetched 6581 B in 2s (4143 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
apt-utils is already the newest version (2.2.4).
build-essential is already the newest version (12.9).
git is already the newest version (1:2.30.2-1+deb11u3).
lsb-release is already the newest version (11.1.0+rpi1).
0 upgraded, 0 newly installed, 0 to remove and 135 not upgraded.
[Check Version NodeJS actuelle : v20.17.0 : [  OK  ]
[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
Clean npm cache
npm warn using --force Recommended protections disabled.
+ echo 8
+ sudo chmod +x /var/www/html/core/class/../../resources/install_composer.sh
+ sudo /var/www/html/core/class/../../resources/install_composer.sh
Begin installation of composer
--2024-11-12 00:40:08--  https://getcomposer.org/installer
Resolving getcomposer.org (getcomposer.org)... 2001:41d0:302:1100::8:104f, 54.36.53.46
Connecting to getcomposer.org (getcomposer.org)|2001:41d0:302:1100::8:104f|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 58444 (57K) [application/octet-stream]
Saving to: 'composer-setup.php'

     0K .......... .......... .......... .......... .......... 87% 3.30M 0s
    50K .......                                               100% 16.2M=0.02s

2024-11-12 00:40:08 (3.66 MB/s) - 'composer-setup.php' saved [58444/58444]

All settings correct for using Composer
Downloading...

Composer (version 2.8.2) successfully installed to: /var/www/html/core/ajax/composer.phar
Use it: php composer.phar

End installation of composer
+ echo 9
+ sudo NODE_OPTIONS=--dns-result-order=ipv4first npm install --force -g yarn
npm warn using --force Recommended protections disabled.

changed 1 package in 8s
+ echo 10
+ 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.22
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...
[2/5] Resolving packages...
warning csurf@1.11.0: Please use another csrf package
warning native-url > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.
warning @types/extract-zip@2.0.3: This is a stub types definition. extract-zip provides its own type definitions, so you do not need this installed.
warning docsify-cli > docsify-server-renderer@4.13.1: docsify-server-renderer 4.x and below is no longer supported while we investigate the future of SSR and SSG for Docsify
warning eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
warning eslint > @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
warning eslint > @humanwhocodes/config-array > @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
warning eslint > file-entry-cache > flat-cache > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning eslint > file-entry-cache > flat-cache > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning eslint > file-entry-cache > flat-cache > rimraf > glob > 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.
warning mocha > glob@8.1.0: Glob versions prior to v9 are no longer supported
warning mocha > glob > 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.
warning release-it > shelljs > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning vite-plugin-pwa > workbox-build > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning vite-plugin-pwa > workbox-build > @rollup/plugin-replace > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning " > @zwave-js/log-transport-json@3.0.0" has unmet peer dependency "@zwave-js/core@>=10.0.0".
warning " > @zwave-js/log-transport-json@3.0.0" has unmet peer dependency "@zwave-js/shared@>=10.0.0".
warning " > @zwave-js/log-transport-json@3.0.0" has unmet peer dependency "winston-transport@^4.5.0".
warning " > vis-data@7.1.9" has unmet peer dependency "uuid@^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0".
warning " > vis-data@7.1.9" has unmet peer dependency "vis-util@^5.0.1".
warning " > vis-network@9.1.9" has unmet peer dependency "@egjs/hammerjs@^2.0.0".
warning " > vis-network@9.1.9" has unmet peer dependency "component-emitter@^1.3.0".
warning " > vis-network@9.1.9" has unmet peer dependency "keycharm@^0.2.0 || ^0.3.0 || ^0.4.0".
warning " > vis-network@9.1.9" has unmet peer dependency "uuid@^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0".
warning " > vis-network@9.1.9" has unmet peer dependency "vis-util@^5.0.1".
warning " > @babel/register@7.25.9" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > vite-plugin-pwa@0.20.5" has unmet peer dependency "workbox-build@^7.1.0".
warning " > vite-plugin-pwa@0.20.5" has unmet peer dependency "workbox-window@^7.1.0".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 223.70s.
+ sudo NODE_OPTIONS=--max_old_space_size=2048 yarn run build
yarn run v1.22.22
$ npm-run-all 'build:*'
$ tsc
api/lib/logger.ts(94,49): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string'.
api/lib/logger.ts(95,47): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string'.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build:server" exited with 2.
error Command failed with exit code 1.
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 node_modules nodemon.json package-lock.json package.json package.sh pkg public server server_config.js snippets src store test tsconfig.eslint.json tsconfig.json vite.config.mjs wallaby.js yarn.lock
+ '[' -e /dev/ttyAMA0 ']'
+ sudo sed -i 's/console=ttyAMA0,115200//; s/kgdboc=ttyAMA0,115200//' /boot/cmdline.txt
+ sudo sed -i 's|[^:]*:[^:]*:respawn:/sbin/getty[^:]*ttyAMA0[^:]*||' /etc/inittab
sed: can't read /etc/inittab: No such file or directory
+ '[' -e /dev/ttymxc0 ']'
+ '[' -e /dev/ttyAMA0 ']'
+ sudo systemctl mask serial-getty@ttyAMA0.service
+ sudo systemctl stop serial-getty@ttyAMA0.service
++ grep Revision /proc/cpuinfo
++ cut -d: -f2
++ tr -d ' '
+ RPI_BOARD_REVISION=a02082
+ [[ a02082 ==    \8 ]]
+ systemctl disable hciuart
++ grep dtoverlay=pi3-miniuart-bt /boot/config.txt
+ [[ ! -n dtoverlay=pi3-miniuart-bt ]]
+ echo 'Everything is successfully installed!'
Everything is successfully installed!
+ echo 11
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end zwavejs
+ echo 12
+ rm /tmp/jeedom_install_in_progress_zwavejs
+ echo '*******************End of package installation******************'
*******************End of package installation******************

J’ai rebooté la machine, réinstallé les dépendances
de MQTT Manadger et de Z-wave JS, rebooté la machine mais toujours rien de plus…

Merci

J’utilise un RPI4 en version 4Go de RAM.
Installation depuis 0.
Je ne suis pas passé en Debian 12 car officiellement non supporté par Jeedom. :pensive:

En tout cas je constate ne pas être le seul a être embêté avec l’interface Zwave-JS…

J’ai cru voir sur internet que celà pourrait être lié à l’utilisation du mode « strict » sur le compilo typescript.

La solution proposée est la suivante, je cherche encore dans quel fichier l’ajouter :

You can do that by compiling with the --noImplicitUseStrict compiler option—add "noImplicitUseStrict": true to "compilerOptions" in tsconfig.json.

Bon j’ai fini par réussir à le faire fonctionner, mais c’est clairement de la bidouille. Voici comment j’ai fait :
Lancement de l’installation des dépendances.
Pendant le ‹ sudo yarn install ›, modification du fichier ‹ /var/www/html/plugins/zwavejs/resources/zwave-js-ui/api/lib/logger.ts › pour commenter les lignes 94 et 95 (c’est pour les logs, on s’en fout un peu)

                    if (!noColor) {

// info.timestamp = colorizer.colorize(‹ time ›, info.timestamp)
// info.label = colorizer.colorize(‹ module ›, info.label || ‹ - ›)
}

Le reste de l’installation se passe correctement.

Bon courage à tous !

Bonjour, meme probleme de mon cote depuis plusieurs jours (sur rpi3b et rpi4) et meme en installant la dernière version de zwavejsui en 9.27.2 (via la modif du fichier html/plugins/zwavejs/core/config/zwavejs.config.ini): meme probleme. En plus les dépendances ont le status OK alors qu’il y a une erreur !
Merci pour l’idée de commenter les lignes qui bugs mais cette solution ne me plait pas sur le long terme !

Pour garder les logs, vous pouvez aussi faire ça dans /var/www/html/plugins/zwavejs/resources/zwave-js-ui/api/lib/logger.ts :

info.timestamp = colorizer.colorize('time', (info.timestamp as string))
info.label = colorizer.colorize('module', (info.label as string) || '-')

Pour cette modif c’est plutôt dans le fichier html/plugins/zwavejs/resources/zwave-js-ui/tsconfig.json

On aura ça alors (attention aux virgules):

{
  "extends": "@tsconfig/node18/tsconfig.json",
  "compilerOptions": {
    // Necessary to support yarn portals with the node-modules linker, used by yarn link (berry)
    "preserveSymlinks": true,
    "resolveJsonModule": true,
    "outDir": "server",
    "noImplicitUseStrict": true,

    // TODO: Turn this on and fix all the errors
    "strict": false
  },
  "include": [
    "api/**/*.ts",
  ],
}

Edit: Ne fonctionne pas, parametre plus supporté

Bonjour,

J’avais tenté la même chose.
De toute façon ça n’explique pas pourquoi on pouvait avant compiler la 9.20 et que maintenant on ne peut plus.
Les fichiers tsconfig et logger n’ont pas été modifiés sur les lignes concernées depuis un bail non plus.

Pour le moment j’ai fait comme toi, du coup ca fonctionne.

Pour itérer plus facilement et modifier le fichier pour les prochaines maj:
Dans plugins/zwavejs/resources/post_install.sh
ajouter à la ligne 10 (juste avant le sudo yarn install):

oldString1="info.timestamp = colorizer.colorize('time', info.timestamp)"
newString1="info.timestamp = colorizer.colorize('time', (info.timestamp as string))"
oldString2="info.label = colorizer.colorize('module', info.label || '-')"
newString2="info.label = colorizer.colorize('module', (info.label as string) || '-')"
chmod +w api/lib/logger.ts
sed -i "s/$oldString1/$newString1/g" api/lib/logger.ts
sed -i "s/$oldString2/$newString2/g" api/lib/logger.ts

Merci à vous pour les pistes!
Mais ça reste un problème du côté de la zwave-js-ui…

2 « J'aime »

Bonjour,

Bien vu le contournement.

akenad :slight_smile:

Bonjour,

On n’est pas seuls à avoir le problème : Version 9.27, unable to build from source · Issue #4007 · zwave-js/zwave-js-ui · GitHub

ÉDIT : Version 9.27, unable to build from source · Issue #4007 · zwave-js/zwave-js-ui · GitHub

ÉDIT : on vient de me répondre que note problème n’a rien à voir.
Par contre on m’a également dit que yarn est déprécié et qu’il faut passer par npm (même avant la 9.20).

2 « J'aime »

Salut et merci de tes investigations.

Du coup, il faut prévenir Jeedom maintenant ?

Bonjour,

Merci pour les investigations et le retour d’information.

J’ai poussé une modification dans ce sens en beta à l’instant mais :warning: je n’ai pas pu tester en totalité, juste l’installation des dépendances qui semble aboutir:

0083|+ cd zwave-js-ui
0084|+ sudo npm install
xxxxxxxxxxx
0110|+ sudo npm run build
xxxxxxxxxxx
0208|✓ built in 12.32s
4 « J'aime »

Salut,

Je te confirme que maintenant ça passe au moins avec la 9.20 :confetti_ball: :confetti_ball: :confetti_ball: :grinning: :clap: :clap:
VM Proxmox sous Debian 11.
Un grand merci.

A confirmer avec d’autres personnes.

0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_zwavejs
0003|+ echo 1
0004|+ echo 2
0005|+ sudo chmod +x /var/www/html/core/class/../../plugins/zwavejs/resources/pre_install.sh
0006|+ sudo /var/www/html/core/class/../../plugins/zwavejs/resources/pre_install.sh
0007|+ echo 'Pre installation de l'\''installation/mise à jour des dépendances zwavejs'
0008|Pre installation de l'installation/mise à jour des dépendances zwavejs
0009|+++ dirname /var/www/html/core/class/../../plugins/zwavejs/resources/pre_install.sh
0010|++ cd /var/www/html/core/class/../../plugins/zwavejs/resources
0011|++ pwd
0012|+ BASEDIR=/var/www/html/plugins/zwavejs/resources
0013|+ cd /var/www/html/plugins/zwavejs/resources
0014|+ source ../core/config/zwavejs.config.ini
0015|+ echo 'Wanted Version: 9.20.0'
0016|Wanted Version: 9.20.0
0017|+ rm -R zwave-js-ui
0018|+ git clone --branch v9.20.0 --depth 1 https://github.com/zwave-js/zwave-js-ui
0019|Cloning into 'zwave-js-ui'...
0020|Note: switching to 'bf3bdc3f13d903cf100b0ba9c3333101ffd29418'.
0021|You are in 'detached HEAD' state. You can look around, make experimental
0022|changes and commit them, and you can discard any commits you make in this
0023|state without impacting any branches by switching back to a branch.
0024|If you want to create a new branch to retain commits you create, you may
0025|do so (now or later) by using -c with the switch command. Example:
0026|git switch -c <new-branch-name>
0027|Or undo this operation with:
0028|git switch -
0029|Turn off this advice by setting config variable advice.detachedHead to false
0030|+ echo 'Pre install finished'
0031|Pre install finished
0032|+ echo 3
0033|+ php /var/www/html/core/class/../php/jeecli.php plugin install mqtt2
0034|+ echo 4
0035|+ sudo killall apt apt-get unattended-upgr
0036|apt: no process found
0037|apt-get: no process found
0038|+ sudo rm /var/lib/apt/lists/lock
0039|+ sudo rm /var/cache/apt/archives/lock
0040|+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
0041|+ sudo sudo dpkg --configure -a --force-confdef
0042|+ sudo apt update
0043|WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0044|Hit:1 http://deb.debian.org/debian bullseye InRelease
0045|Get:2 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
0046|Get:3 http://security.debian.org/debian-security bullseye-security InRelease [27.2 kB]
0047|Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
0048|Get:5 http://security.debian.org/debian-security bullseye-security/main Sources [213 kB]
0049|Get:6 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [308 kB]
0050|Get:7 http://security.debian.org/debian-security bullseye-security/main Translation-en [198 kB]
0051|Fetched 790 kB in 1s (882 kB/s)
0052|Reading package lists...
0053|Building dependency tree...
0054|Reading state information...
0055|9 packages can be upgraded. Run 'apt list --upgradable' to see them.
0056|+ echo 5
0057|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0058|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0059|Hit:1 http://deb.debian.org/debian bullseye InRelease
0060|Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
0061|Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
0062|Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
0063|Reading package lists...
0064|Reading package lists...
0065|Building dependency tree...
0066|Reading state information...
0067|apt-utils is already the newest version (2.2.4).
0068|build-essential is already the newest version (12.9).
0069|lsb-release is already the newest version (11.1.0).
0070|git is already the newest version (1:2.30.2-1+deb11u3).
0071|0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
0072|[Check Version NodeJS actuelle : v20.18.0 : [  OK  ]
0073|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
0074|Clean npm cache
0075|npm warn using --force Recommended protections disabled.
0076|+ echo 6
0077|+ sudo chmod +x /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
0078|+ sudo /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
0079|+ echo 'Post installation de l'\''installation/mise à jour des dépendances zwavejs'
0080|Post installation de l'installation/mise à jour des dépendances zwavejs
0081|+++ dirname /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
0082|++ cd /var/www/html/core/class/../../plugins/zwavejs/resources
0083|++ pwd
0084|+ BASEDIR=/var/www/html/plugins/zwavejs/resources
0085|+ cd /var/www/html/plugins/zwavejs/resources
0086|+ cd zwave-js-ui
0087|+ sudo npm install
0088|npm warn deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
0089|npm warn deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
0090|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.
0091|npm warn deprecated docsify-server-renderer@4.13.1: docsify-server-renderer 4.x and below is no longer supported while we investigate the future of SSR and SSG for Docsify
0092|npm warn deprecated csurf@1.11.0: Please use another csrf package
0093|npm warn deprecated @types/extract-zip@2.0.1: This is a stub types definition. extract-zip provides its own type definitions, so you do not need this installed.
0094|npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
0095|npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
0096|npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
0097|npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
0098|npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
0099|npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
0100|npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
0101|npm warn deprecated vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.
0102|added 1681 packages, and audited 1682 packages in 2m
0103|335 packages are looking for funding
0104|run `npm fund` for details
0105|25 vulnerabilities (11 low, 10 moderate, 4 high)
0106|To address issues that do not require attention, run:
0107|npm audit fix
0108|To address all issues possible (including breaking changes), run:
0109|npm audit fix --force
0110|Some issues need review, and may require choosing
0111|a different dependency.
0112|Run `npm audit` for details.
0113|+ sudo npm run build
0114|> zwave-js-ui@9.20.0 build
0115|> npm-run-all 'build:*'
0116|> zwave-js-ui@9.20.0 build:server
0117|> tsc
0118|> zwave-js-ui@9.20.0 build:ui
0119|> vite build
0120|vite v5.3.1 building for production...
0121|transforming...
0122|✓ 547 modules transformed.
0123|rendering chunks...
0124|computing gzip size...
0125|dist/registerSW.js                                    0.14 kB
0126|dist/manifest.webmanifest                             0.50 kB
0127|dist/index.html                                       1.69 kB │ gzip:   0.74 kB
0128|dist/assets/MaterialIcons-Regular-DOtZ65Va.woff2    125.12 kB
0129|dist/assets/MaterialIcons-Regular-BjXOXp5c.eot      143.45 kB
0130|dist/assets/MaterialIcons-Regular-FsbMSDLx.woff     160.58 kB
0131|dist/assets/MaterialIcons-Regular-DEUTIz1o.ttf      347.59 kB
0132|dist/assets/DialogHealthCheck-Droliepd.css            0.04 kB │ gzip:   0.06 kB
0133|dist/assets/DialogGatewayValue-A-SkCATO.css           0.06 kB │ gzip:   0.08 kB
0134|dist/assets/NodeDetails-CBP3OPmg.css                  0.06 kB │ gzip:   0.08 kB
0135|dist/assets/FrameDetails-CIQ12EOu.css                 0.07 kB │ gzip:   0.09 kB
0136|dist/assets/QrReader-HjYxZaii.css                     0.09 kB │ gzip:   0.10 kB
0137|dist/assets/NodePanel-CZwLOHLG.css                    0.09 kB │ gzip:   0.10 kB
0138|dist/assets/RichValue-B_0TC6eQ.css                    0.13 kB │ gzip:   0.12 kB
0139|dist/assets/CCTreeView-WxmqzfXk.css                   0.13 kB │ gzip:   0.12 kB
0140|dist/assets/Settings-DbLZdPoT.css                     0.15 kB │ gzip:   0.14 kB
0141|dist/assets/Mesh-DSRRNttk.css                         0.27 kB │ gzip:   0.21 kB
0142|dist/assets/ValueId-C5xZLsvS.css                      0.31 kB │ gzip:   0.18 kB
0143|dist/assets/ExpandedNode--E63FB__.css                 0.39 kB │ gzip:   0.26 kB
0144|dist/assets/DialogAdvanced-B3IdLJdP.css               0.45 kB │ gzip:   0.23 kB
0145|dist/assets/index-D5uuzJlz.css                        0.51 kB │ gzip:   0.18 kB
0146|dist/assets/Zniffer-BYjnQyPs.css                      0.53 kB │ gzip:   0.24 kB
0147|dist/assets/Store-DS7bGYpj.css                        0.79 kB │ gzip:   0.33 kB
0148|dist/assets/Multipane-CEm3CnxI.css                    1.57 kB │ gzip:   0.46 kB
0149|dist/assets/BgRssiChart-DbNj0r-M.css                  1.65 kB │ gzip:   0.71 kB
0150|dist/assets/Login-1yco1U5P.css                        5.43 kB │ gzip:   1.52 kB
0151|dist/assets/ZwaveGraph-Dfn_CqSH.css                 220.21 kB │ gzip:  31.03 kB
0152|dist/assets/index-r8JReBOx.css                      645.00 kB │ gzip:  86.98 kB
0153|dist/assets/MultipaneResizer-BWRp-8Tf.js              0.23 kB │ gzip:   0.20 kB
0154|dist/assets/InvertedCheckbox-BKe96SLH.js              0.42 kB │ gzip:   0.30 kB
0155|dist/assets/ControllerChart-7GxoToPo.js               0.63 kB │ gzip:   0.39 kB
0156|dist/assets/ColumnFilterBoolean-Dlw5IVbg.js           0.67 kB │ gzip:   0.42 kB
0157|dist/assets/ReinterviewBadge-P-jUEJlg.js              0.78 kB │ gzip:   0.52 kB
0158|dist/assets/BlinkIcon-DP_t2iuE.js                     0.85 kB │ gzip:   0.42 kB
0159|dist/assets/ColumnFilterDate-DkQZJt-f.js              1.16 kB │ gzip:   0.56 kB
0160|dist/assets/MissingKeysAlert-Bgdg8v4b.js              1.17 kB │ gzip:   0.56 kB
0161|dist/assets/ColumnFilterString-BIwSCVLZ.js            1.22 kB │ gzip:   0.62 kB
0162|dist/assets/DialogAdvanced-Bhs_8BWn.js                1.30 kB │ gzip:   0.68 kB
0163|dist/assets/CCTreeView-ChRxhkA3.js                    1.43 kB │ gzip:   0.77 kB
0164|dist/assets/StatisticsArrows-BI8z0kpo.js              1.44 kB │ gzip:   0.77 kB
0165|dist/assets/ErrorPage-CQyeMUEl.js                     1.55 kB │ gzip:   0.79 kB
0166|dist/assets/Multipane-DFLS9oP2.js                     1.63 kB │ gzip:   0.82 kB
0167|dist/assets/ColumnFilterNumber-eClVU_w_.js            1.74 kB │ gzip:   0.74 kB
0168|dist/assets/file-input-B4SR49dD.js                    1.83 kB │ gzip:   0.86 kB
0169|dist/assets/RichValue-BRQppQoo.js                     2.04 kB │ gzip:   0.87 kB
0170|dist/assets/StatisticsCard-DqAruet3.js                2.55 kB │ gzip:   1.00 kB
0171|dist/assets/FrameDetails-F6k0BPq5.js                  2.68 kB │ gzip:   1.06 kB
0172|dist/assets/DialogSceneValue-2Y04CTd_.js              3.18 kB │ gzip:   1.23 kB
0173|dist/assets/Mesh-haZu0lAF.js                          3.18 kB │ gzip:   1.36 kB
0174|dist/assets/ColumnFilter-DoUVVYSw.js                  3.26 kB │ gzip:   1.30 kB
0175|dist/assets/UserCodeTable-Dz40xPSc.js                 4.12 kB │ gzip:   1.64 kB
0176|dist/assets/Login-DT9nslnM.js                         4.13 kB │ gzip:   1.64 kB
0177|dist/assets/ListInput-DK0gk4Ui.js                     4.38 kB │ gzip:   1.41 kB
0178|dist/assets/AssociationGroups-DGsCpLMi.js             4.46 kB │ gzip:   1.65 kB
0179|dist/assets/OTAUpdates-BDNMxnyc.js                    5.09 kB │ gzip:   2.09 kB
0180|dist/assets/Scenes-HsjDySf8.js                        5.81 kB │ gzip:   1.98 kB
0181|dist/assets/DialogLinkReliability-3FOnnyOC.js         5.89 kB │ gzip:   1.91 kB
0182|dist/assets/DialogAssociation-CvDSlRuw.js             5.94 kB │ gzip:   2.10 kB
0183|dist/assets/prismeditor.esm-DJCfCG3y.js               7.58 kB │ gzip:   2.69 kB
0184|dist/assets/NodeScheduler-qahfvCd7.js                 7.86 kB │ gzip:   2.60 kB
0185|dist/assets/HomeAssistant-CmWDVy9b.js                 8.23 kB │ gzip:   2.43 kB
0186|dist/assets/DialogGatewayValue-TQV4M_Uw.js            8.38 kB │ gzip:   2.56 kB
0187|dist/assets/ControlPanel-CIT7JoKr.js                  9.53 kB │ gzip:   3.53 kB
0188|dist/assets/SmartView-VDBxTG-G.js                     9.89 kB │ gzip:   3.30 kB
0189|dist/assets/ValueId-Dzj-_hV-.js                      10.45 kB │ gzip:   2.92 kB
0190|dist/assets/Store-CE_bHZL9.js                        10.95 kB │ gzip:   3.41 kB
0191|dist/assets/NodeDetails-Dwklj2UX.js                  12.18 kB │ gzip:   3.39 kB
0192|dist/assets/DialogHealthCheck-DX70lQ06.js            12.38 kB │ gzip:   3.59 kB
0193|dist/assets/SmartStart-DcNO40LA.js                   13.83 kB │ gzip:   3.91 kB
0194|dist/assets/ExpandedNode-Dip24ge3.js                 15.15 kB │ gzip:   5.18 kB
0195|dist/assets/Debug-0FVl0EX8.js                        16.04 kB │ gzip:   4.18 kB
0196|dist/assets/NodePanel-zK1ErbaX.js                    16.11 kB │ gzip:   4.39 kB
0197|dist/assets/Zniffer-DaFxRe8b.js                      16.23 kB │ gzip:   5.28 kB
0198|dist/assets/index-CGscpZTT.js                        20.82 kB │ gzip:   6.13 kB
0199|dist/assets/QrReader-C-Xpoqpd.js                     20.89 kB │ gzip:   7.29 kB
0200|dist/assets/qr-scanner-worker.min-D85Z9gVD.js        43.95 kB │ gzip:  10.46 kB
0201|dist/assets/BgRssiChart-CjfwkkIu.js                  54.97 kB │ gzip:  24.29 kB
0202|dist/assets/vuedraggable.umd-BN2_1K0c.js             71.01 kB │ gzip:  24.88 kB
0203|dist/assets/Settings-_GIJ6yNR.js                     85.81 kB │ gzip:  19.99 kB
0204|dist/assets/index-Blr6EMNg.js                        91.82 kB │ gzip:  46.05 kB
0205|dist/assets/ZwaveGraph-B7ZU-Qa8.js                  560.41 kB │ gzip: 166.47 kB
0206|dist/assets/index-arJYOLrt.js                     1,237.32 kB │ gzip: 338.96 kB
0207|(!) Some chunks are larger than 500 kB after minification. Consider:
0208|- Using dynamic import() to code-split the application
0209|- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
0210|- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
0211|✓ built in 44.43s
0212|PWA v0.20.0
0213|Building src/sw.js service worker ("es" format)...
0214|vite v5.3.1 building for production...
0215|transforming...
0216|✓ 65 modules transformed.
0217|rendering chunks...
0218|computing gzip size...
0219|dist/sw.mjs  16.17 kB │ gzip: 5.42 kB
0220|✓ built in 2.73s
0221|PWA v0.20.0
0222|mode      injectManifest
0223|format:   es
0224|precache  82 entries (3262.43 KiB)
0225|files generated
0226|dist/sw.js
0227|+ chown -R www-data:www-data CHANGELOG.md LICENSE README.md SECURITY.md api certs dist docker docs esbuild-register.js esbuild.js genereteDocs.ts index.html kubernetes kustomization.yaml node_modules nodemon.json package-lock.json package.json package.sh pkg public server server_config.js snippets src store test tsconfig.eslint.json tsconfig.json vite.config.mjs wallaby.js
0228|+ '[' -e /dev/ttyAMA0 ']'
0229|+ '[' -e /dev/ttymxc0 ']'
0230|+ '[' -e /dev/ttyAMA0 ']'
0231|++ tr -d ' '
0232|++ cut -d: -f2
0233|++ grep Revision /proc/cpuinfo
0234|+ RPI_BOARD_REVISION=
0235|+ [[ '' == \a\0\2\0\8\2 ]]
0236|+ [[ '' == \a\2\2\0\8\2 ]]
0237|+ [[ '' == \a\0\2\0\d\3 ]]
0238|+ echo 'Everything is successfully installed!'
0239|Everything is successfully installed!
0240|+ echo 7
0241|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end zwavejs
0242|+ echo 8
0243|+ rm /tmp/jeedom_install_in_progress_zwavejs
0244|+ echo '*******************End of package installation******************'
0245|*******************End of package installation******************
1 « J'aime »

J’ai forcé l’installation de la version beta mais pas de changement. On dirait que je n’ai pas la modif.

Bonjour,

RockPi4B+, Armbian 11.11, Node 20.18, clé USB Aeotec Zstick Gen5 6.51
zwavejs beta 2024-11-11 + modif yarn > npm
test On/Off sur une prise aeotec OK

akenad :slight_smile:

1 « J'aime »

La modification apparaitra en installant la beta demain.
La il faut faire la modification à la main.
(dans plugins/zwavejs/resources/post_install.sh)
et relancer l’installation des dépendances.

akenad :slight_smile: