Bon je me fais mon sujet cette fois-ci.
Suite à des pb sur un jeedom sur rasp3.
J’ai:
fait une clean install de debian 11
fait une clean install de jeedom
restoration de mon backup
RAS jusque là
MAIS sur zwave des pb:
j’ai reinstallé les dependances poste restoration.
le plugin fonctionne les commandes aussi
par contre quand je veux acceder a zwavejs ui
j’ai ça (j’ai réinstallé les dépendances 2x)
Error: Not Found
at /var/www/html/plugins/zwavejs/resources/zwave-js-ui/server/app.js:1167: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:479: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
+ 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.5.1'
Wanted Version: 9.5.1
+ rm -R zwave-js-ui
+ git clone --branch v9.5.1 --depth 1 https://github.com/zwave-js/zwave-js-ui
Cloning into 'zwave-js-ui'...
Note: switching to 'e4c1eb598a53f90153058272d4306df784e76ecb'.
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
Updating files: 74% (195/263)
Updating files: 75% (198/263)
Updating files: 76% (200/263)
Updating files: 77% (203/263)
Updating files: 78% (206/263)
Updating files: 79% (208/263)
Updating files: 80% (211/263)
Updating files: 81% (214/263)
Updating files: 82% (216/263)
Updating files: 83% (219/263)
Updating files: 84% (221/263)
Updating files: 85% (224/263)
Updating files: 86% (227/263)
Updating files: 87% (229/263)
Updating files: 88% (232/263)
Updating files: 89% (235/263)
Updating files: 90% (237/263)
Updating files: 91% (240/263)
Updating files: 92% (242/263)
Updating files: 93% (245/263)
Updating files: 94% (248/263)
Updating files: 95% (250/263)
Updating files: 96% (253/263)
Updating files: 97% (256/263)
Updating files: 98% (258/263)
Updating files: 99% (261/263)
Updating files: 100% (263/263)
Updating files: 100% (263/263), done.
+ 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.21
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 @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.
warning vite-plugin-pwa > workbox-build > rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
warning vite-plugin-pwa > workbox-build > @surma/rollup-plugin-off-main-thread > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
[3/5] Fetching packages...
[4/5] Linking dependencies...
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.22.15" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > esbuild-register@3.5.0" has unmet peer dependency "esbuild@>=0.12 <1".
warning " > vite-plugin-pwa@0.16.7" has unmet peer dependency "workbox-build@^7.0.0".
warning " > vite-plugin-pwa@0.16.7" has unmet peer dependency "workbox-window@^7.0.0".
[5/5] Building fresh packages...
Done in 1080.57s.
+ sudo yarn run build
yarn run v1.22.21
$ npm-run-all 'build:*'
$ tsc
$ vite build
vite v4.5.1 building for production...
transforming...
Killed
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build:ui" exited with 137.
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 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.js 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
++ tr -d ' '
++ cut -d: -f2
+ RPI_BOARD_REVISION=a02082
+ [[ a02082 == a\8 ]]
+ systemctl disable hciuart
++ grep dtoverlay=pi3-miniuart-bt /boot/config.txt
+ [[ ! -n '' ]]
+ echo 'Raspberry Pi 3 Detected. If you use a Razberry board you must Disable Bluetooth'
Raspberry Pi 3 Detected. If you use a Razberry board you must Disable Bluetooth
+ echo 'Please add '\''dtoverlay=pi3-miniuart-bt'\'' to the end of the file /boot/config.txt'
Please add 'dtoverlay=pi3-miniuart-bt' to the end of the file /boot/config.txt
+ echo 'And reboot your Raspberry Pi'
And reboot your Raspberry Pi
+ 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******************
Une piste : RAM insuffisante, swap absent ou plein. Essaye de suivre l’utilisation de la mémoire vive et de la mémoire virtuelle (swap). Au besoin, tente d’augmenter la taille du swap
Pour ma part, je suis sur Raspberry Pi 3B+ sur 3 installs également, et malgré une augmentation du swap à 1024Mo, j’ai eu le meme comportement lors de ma migration vers plugin-zwavejs puis lors des maj qui ont suivi.
En suivant ce conseil, je n’ai plus le problème mais cela nécessite de remettre à jour le script à chaque mise à jour du plugin avant de relancer l’installation des dépendances :
Pour faire simple, cette ligne permet de limiter la quantité de mémoire utilisée lors de l’installation des dépendances.
Et juste pour mémoire, si tu as de nouveaux des problèmes à l’avenir, certains parlent aussi de faire un reboot avant la maj du plugin. Pour j’imagine, avoir une mémoire moins saturée.
alors autant le swap je n’avais pas fait gaffe sur ce jeedom (clean install de moins de 24h sans mes tuning habituel)
autant le reboot je l’avais fait pour cette raison