Je ne sais pas si cela n’arrive qu’a moi, mais lors de la mise a jour de zwavejs-ui qui viens d’être pousser en 8.5.1 il n’est plus possible de lancer l’UI zwavejs-uI à cause d’un dossier manquant
Du coup impossible de lancer la page web, on obtient une erreur signifiant qu’il ne trouve pas le dossier dist…css…
En recopiant le dossier de mqtt dans js-ui cela refonctionne.
Je précise aussi que j’ai du relancer un rétablissement des droits pour le dossier zwave-js-ui qui été avec un « cadenas » avant de faire la copier du dossier
Oui oui bien sur, j’ai eu le message d’erreur sur le centre de notif pour signalé que ma version été trop ancienne et j’ai lancé l’installation des dépendances qui visiblement c’est bien déroulé, et le démon c’est relancé sans soucis également au bout de quelque minutes
Edit :
Par contre je viens de vérifier sur le git de zwavejs-ui et je ne vois pas non plus ce dossier dist…
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.5.1'
0016|Wanted Version: 8.5.1
0017|+ rm -R zwave-js-ui
0018|+ git clone --branch v8.5.1 --depth 1 https://github.com/zwave-js/zwave-js-ui
0019|Cloning into 'zwave-js-ui'...
0020|Note: checking out 'ad42de0e6c5085a5ffccc7d8739aed9ed31b55b6'.
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 3s 182ms
0046|➤ YN0000: ┌ Fetch step
0047|➤ YN0066: │ typescript@patch:typescript@npm%3A4.8.4#~builtin::version=4.8.4&hash=7ad353: Cannot apply hunk #7
0048|➤ YN0000: └ Completed in 6m 37s
0049|➤ YN0000: ┌ Link step
0050|➤ YN0007: │ core-js@npm:2.6.12 must be built because it never has been before or the last one failed
0051|➤ YN0007: │ docsify@npm:4.13.0 must be built because it never has been before or the last one failed
0052|➤ YN0007: │ core-js@npm:3.26.0 must be built because it never has been before or the last one failed
0053|➤ YN0007: │ vue-demi@npm:0.13.11 [0f984] must be built because it never has been before or the last one failed
0054|➤ YN0007: │ @serialport/bindings-cpp@npm:10.7.0 must be built because it never has been before or the last one failed
0055|➤ YN0000: └ Completed in 3m 40s
0056|➤ YN0000: Done with warnings in 10m 22s
0057|+ sudo yarn run build
0058|- building for production...
0059|node:events:491
0060|throw er; // Unhandled 'error' event
0061|^
0062|Error: Worker terminated due to reaching memory limit: JS heap out of memory
0063|at new NodeError (node:internal/errors:387:5)
0064|at Worker.[kOnExit] (node:internal/worker:285:26)
0065|at Worker..onexit (node:internal/worker:202:20)
0066|Emitted 'error' event on Worker instance at:
0067|at Worker.[kOnExit] (node:internal/worker:285:12)
0068|at Worker..onexit (node:internal/worker:202:20) {
0069|code: 'ERR_WORKER_OUT_OF_MEMORY'
0070|}
0071|ERROR: "build:ui" exited with 1.
0072|+ 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
0073|+ '[' -e /dev/ttyAMA0 ']'
0074|+ sudo sed -i 's/console=ttyAMA0,115200//; s/kgdboc=ttyAMA0,115200//' /boot/cmdline.txt
0075|+ sudo sed -i 's|[^:]*:[^:]*:respawn:/sbin/getty[^:]*ttyAMA0[^:]*||' /etc/inittab
0076|sed: can't read /etc/inittab: No such file or directory
0077|+ '[' -e /dev/ttymxc0 ']'
0078|+ '[' -e /dev/ttyAMA0 ']'
0079|+ sudo systemctl mask serial-getty@ttyAMA0.service
0080|+ sudo systemctl stop serial-getty@ttyAMA0.service
0081|++ grep Revision /proc/cpuinfo
0082|++ cut -d: -f2
0083|++ tr -d ' '
0084|+ RPI_BOARD_REVISION=a020d3
0085|+ [[ a020d3 == a\8 ]]
0086|+ [[ a020d3 == a\8 ]]
0087|+ [[ a020d3 == a\d ]]
0088|+ systemctl disable hciuart
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******************
Alors visiblement si …
0062|Error: Worker terminated due to reaching memory limit: JS heap out of memory
Sauf que je n’ai pas pensé a vérifier étant donné qu’il a visiblement mis a jour la version sur l’interface et que j’ai un OK dans les dépendances …