Problème lancement démon Plugin Loxone

Bonjour,
Je viens d’acheter le plugin Loxone et ai essayé d’installer celui-ci.
Les dépendances s’installent correctement mais le démon ne se lance pas. Voici les logs de l’install des dépendances et du démon
Dépendances

Début de l'installation
--2021-10-05 00:37:19--  https://raw.githubusercontent.com/lunarok/jeedom_nodejs/master/nodejs.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1510 (1.5K) [text/plain]
Saving to: 'dependencies.sh'

     0K .                                                     100% 7.23M=0s

2021-10-05 00:37:19 (7.23 MB/s) - 'dependencies.sh' saved [1510/1510]

dependencies.sh: 3: [: /tmp/jeedom/loxone/dependancy: unexpected operator
Nodejs non installé
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Hit:4 https://packages.sury.org/php buster InRelease
Hit:5 https://deb.nodesource.com/node_14.x buster InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version (10.2019051400).
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
dependencies.sh: 29: dependencies.sh: [[: not found
KO, version obsolète à upgrader
Suppression du Nodejs existant et installation du paquet recommandé
Reading package lists...
Building dependency tree...
Reading state information...
Package 'npm' is not installed, so not removed
Package 'nodejs' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
dependencies.sh: 38: [: x86_64: unexpected operator
Utilisation du dépot officiel

## Installing the NodeSource Node.js 14.x repo...


## Populating apt-get cache...

+ apt-get update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 https://deb.nodesource.com/node_14.x buster InRelease
Hit:5 https://packages.sury.org/php buster InRelease
Reading package lists...

## Confirming "buster" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/buster/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null

## Creating apt sources list file for the NodeSource Node.js 14.x repo...

+ echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x buster main' >> /etc/apt/sources.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 https://deb.nodesource.com/node_14.x buster InRelease
Hit:5 https://packages.sury.org/php buster InRelease
Reading package lists...

## Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
     echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn


Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  nodejs
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 0 B/25.1 MB of archives.
After this operation, 122 MB of additional disk space will be used.
Selecting previously unselected package nodejs.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 110519 files and directories currently installed.)
Preparing to unpack .../nodejs_14.18.0-deb-1nodesource1_amd64.deb ...
Unpacking nodejs (14.18.0-deb-1nodesource1) ...
Setting up nodejs (14.18.0-deb-1nodesource1) ...
Processing triggers for man-db (2.8.5-2) ...
dependencies.sh: 1: dependencies.sh: nodejs: not found
Version actuelle : 
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated axios@0.18.1: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

> bufferutil@4.0.4 install /var/www/html/plugins/loxone/resources/node_modules/bufferutil
> node-gyp-build


> utf-8-validate@5.0.6 install /var/www/html/plugins/loxone/resources/node_modules/utf-8-validate
> node-gyp-build


> lxcommunicator@1.1.1 postinstall /var/www/html/plugins/loxone/resources/node_modules/lxcommunicator
> node ./browserify.js

Creating browserified module...
Creating debug module
Creating release module
Saving debug module
Saving release module
LxCommunicator~Browser.js and LxCommunicator~Browser.min.js has been created!
npm notice created a lockfile as package-lock.json. You should commit this file.
added 295 packages from 209 contributors and audited 295 packages in 107.942s

38 packages are looking for funding
  run `npm fund` for details

found 1 high severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
Fin de l'installation

Démon

nohup: failed to run command 'nodejs': No such file or directory
sh: 1: nodejs: not found
[2021-10-05 00:42:52][ERROR] : Impossible de lancer le démon loxoned. Vérifiez le log.
nohup: impossible d'exécuter la commande 'nodejs': Aucun fichier ou dossier de ce type
sh: 1: nodejs: not found
[2021-10-05 00:45:41][ERROR] : Impossible de lancer le démon loxoned. Vérifiez le log.

Quelqu’un a déjà rencontré ce problème?

D’avance, un grand merci pour votre aide.

Michaël

Bonjour

Essai cette commande en ssh sur ton compte utilisateur

sudo ln -s `which node` `which node`js

Puis relance les dépendances

1 « J'aime »

Super! Merci beaucoup. C’est nickel

1 « J'aime »

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