Zwave + Z-Wave JS KO

2 messages ont été scindés en un nouveau sujet : Fibaro FGR-222 sont ils compatibles avec la puce z-wave 700

3 messages ont été fusionnés à un sujet existant : Fibaro FGR-222 sont ils compatibles avec la puce z-wave 700

J’essai de demarrer Zwave-JS sur mon raspberry qui tourne avec l’image jeedom-debian-buster-rpi-4.3.15
Et j’ai plein d’erreur, les dependances ne s’installent pas. Une idée de ce qu’il faut faire ?

Salut

Le texte du log collé entre balise en utilisant </> serait plus lisible.

page santé de jeeeom?

Antoine

Je pense que j’ai pas assez de mémoire.

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: 8.6.1'
0016|Wanted Version: 8.6.1
0017|+ rm -R zwave-js-ui
0018|+ git clone --branch v8.6.1 --depth 1 https://github.com/zwave-js/zwave-js-ui
0019|Cloning into 'zwave-js-ui'...
0020|Note: checking out '7833cd89b26adac186c958d20eb99348962e11ef'.
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 performing another checkout.
0024|If you want to create a new branch to retain commits you create, you may
0025|do so (now or later) by using -b with the checkout command again. Example:
0026|git checkout -b 
0027|+ echo 'Pre install finished'
0028|Pre install finished
0029|+ echo 3
0030|+ sudo chmod +x /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
0031|+ sudo /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
0032|+ echo 'Post installation de l'\''installation/mise à jour des dépendances zwavejs'
0033|Post installation de l'installation/mise à jour des dépendances zwavejs
0034|+++ dirname /var/www/html/core/class/../../plugins/zwavejs/resources/post_install.sh
0035|++ cd /var/www/html/core/class/../../plugins/zwavejs/resources
0036|++ pwd
0037|+ BASEDIR=/var/www/html/plugins/zwavejs/resources
0038|+ cd /var/www/html/plugins/zwavejs/resources
0039|+ cd zwave-js-ui
0040|+ sudo yarn install
0041|➤ YN0000: ┌ Resolution step
0042|➤ YN0002: │ ts-node-dev@npm:2.0.0 [b9e30] doesn't provide @types/node (p8a743), requested by ts-node
0043|➤ YN0060: │ zwave-js-ui@workspace:. provides eslint (p560d0) with version 8.26.0, which doesn't satisfy what eslint-loader requests
0044|➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements  for details, where  is the six-letter p-prefixed code
0045|➤ YN0000: └ Completed in 2s 679ms
0046|➤ YN0000: ┌ Fetch step
0047|➤ YN0000: └ Completed in 10s 360ms
0048|➤ YN0000: ┌ Link step
0049|➤ YN0007: │ core-js@npm:2.6.12 must be built because it never has been before or the last one failed
0050|➤ YN0007: │ docsify@npm:4.13.0 must be built because it never has been before or the last one failed
0051|➤ YN0007: │ core-js@npm:3.26.0 must be built because it never has been before or the last one failed
0052|➤ YN0007: │ vue-demi@npm:0.13.11 [0f984] must be built because it never has been before or the last one failed
0053|➤ YN0007: │ @serialport/bindings-cpp@npm:10.7.0 must be built because it never has been before or the last one failed
0054|➤ YN0000: └ Completed in 4m 12s
0055|➤ YN0000: Done with warnings in 4m 27s
0056|+ sudo yarn run build
0057|- building for production...
0058|node:events:491
0059|throw er; // Unhandled 'error' event
0060|^
0061|Error: Worker terminated due to reaching memory limit: JS heap out of memory
0062|at new NodeError (node:internal/errors:387:5)
0063|at Worker.[kOnExit] (node:internal/worker:285:26)
0064|at Worker..onexit (node:internal/worker:202:20)
0065|Emitted 'error' event on Worker instance at:
0066|at Worker.[kOnExit] (node:internal/worker:285:12)
0067|at Worker..onexit (node:internal/worker:202:20) {
0068|code: 'ERR_WORKER_OUT_OF_MEMORY'
0069|}
0070|ERROR: "build:ui" exited with 1.
0071|+ chown -R www-data:www-data CHANGELOG.md LICENSE README.md SECURITY.md app.ts bin build config docker docs hass kubernetes kustomization.yaml lib node_modules nodemon.json package.json package.sh pkg server snippets src static store test tsconfig.eslint.json tsconfig.json views wallaby.js yarn.lock
0072|+ '[' -e /dev/ttyAMA0 ']'
0073|+ sudo sed -i 's/console=ttyAMA0,115200//; s/kgdboc=ttyAMA0,115200//' /boot/cmdline.txt
0074|+ sudo sed -i 's|[^:]*:[^:]*:respawn:/sbin/getty[^:]*ttyAMA0[^:]*||' /etc/inittab
0075|sed: can't read /etc/inittab: No such file or directory
0076|+ '[' -e /dev/ttymxc0 ']'
0077|+ '[' -e /dev/ttyAMA0 ']'
0078|+ sudo systemctl mask serial-getty@ttyAMA0.service
0079|+ sudo systemctl stop serial-getty@ttyAMA0.service
0080|++ grep Revision /proc/cpuinfo
0081|++ cut -d: -f2
0082|++ tr -d ' '
0083|+ RPI_BOARD_REVISION=a020d3
0084|+ [[ a020d3 == a\8 ]]
0085|+ [[ a020d3 == a\8 ]]
0086|+ [[ a020d3 == a\d ]]
0087|+ systemctl disable hciuart
0088|Removed /etc/systemd/system/multi-user.target.wants/hciuart.service.
0089|++ grep dtoverlay=pi3-miniuart-bt /boot/config.txt
0090|+ [[ ! -n '' ]]
0091|+ echo 'Raspberry Pi 3 Detected. If you use a Razberry board you must Disable Bluetooth'
0092|Raspberry Pi 3 Detected. If you use a Razberry board you must Disable Bluetooth
0093|+ echo 'Please add '\''dtoverlay=pi3-miniuart-bt'\'' to the end of the file /boot/config.txt'
0094|Please add 'dtoverlay=pi3-miniuart-bt' to the end of the file /boot/config.txt
0095|+ echo 'And reboot your Raspberry Pi'
0096|And reboot your Raspberry Pi
0097|+ echo 'Everything is successfully installed!'
0098|Everything is successfully installed!
0099|+ echo 4
0100|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end zwavejs
0101|+ rm /tmp/jeedom_install_in_progress_zwavejs
0102|+ echo '*******************End of package installation******************'
0103|*******************End of package installation******************

Je vais me monter une VM pour voir si je peux migrer mon openzwave vers zwave JS.

Bonjour,

Problème classique sur pi.

Solution ici : Dépendances : JS heap out of memory - Raspberry Pi 3 - #16 par ktn

Peut-re que les dev vont admettre qu’il y a un problème à corriger.

Mais depuis le temps que ce problème est connu et que rien n’est fait, j’en doute…

OK merci :slight_smile: cela a fonctionné au bout de 3 tentatives et aprés avoir desactivé cron et scenarios. Je poursuis ma migration avec espoir.

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.