Smart : installation de dépendances absentes sur le dépôt Jeedom

Bonjour,

J’essaye d’installer le plugin MailListener sur une Jeedom Smart 3.3.50 Debian GNU/Linux 9.4 (stretch)
J’ai bien compris qu’il y a un problème avec l’installation du nodejs

J’ai donc suivi le modop de @Antoinekl1 et par @Sli3H3llFiR3 sur l’ancien forum :
https://forum.jeedom.com/viewtopic.php?f=140&t=11354&sid=241d95d71c5a57a4c048f6a9700d063c&start=500

1- commenter la ligne « rm dependencies.sh » dans le nodejs.sh avec plugin JeeXplorer
2 - lancer l’installation des dépendances, ca permet de récupérer le dependencies.sh
3- commenter la ligne commençant par "wget https:.… dependencies.sh " dans le nodesj.sh avec plugin JeeXplorer
image
4 - dans le dependencies.sh vous remplacez le -y par --force-yes pour la partie nodejs avec plugin JeeXplorer
image
5 - lancer l’installation des dépendances

mais ça n’a pas fonctionné
Voici les log en debug:

Début de l'installation
dependencies.sh: 3: [: maillistener: unexpected operator
Nodejs non installé
Hit:1 http://www.deb-multimedia.org stretch InRelease
Get:2 http://security.debian.org stretch/updates InRelease [94.3 kB]
Ign:4 http://ftp.debian.org/debian stretch InRelease
Get:5 http://ftp.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:6 http://ftp.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:7 http://ftp.debian.org/debian stretch-proposed-updates InRelease [106 kB]
Hit:8 http://ftp.debian.org/debian stretch Release
Hit:9 https://deb.nodesource.com/node_12.x stretch InRelease
Get:3 https://repo.jeedom.com/odroid stable InRelease [1640 B]
Hit:10 https://oph.mdrjr.net/meveric all InRelease
Hit:11 https://oph.mdrjr.net/meveric stretch InRelease
Get:12 http://security.debian.org stretch/updates/main Sources [213 kB]
Get:13 http://security.debian.org stretch/updates/main arm64 Packages [509 kB]
Err:3 https://repo.jeedom.com/odroid stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
Fetched 1106 kB in 3s (343 kB/s)
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.jeedom.com/odroid stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version (9.20161125).
0 upgraded, 0 newly installed, 0 to remove and 201 not upgraded.
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 201 not upgraded.
dependencies.sh: 37: [: aarch64: unexpected operator
Utilisation du dépot officiel
## Installing the NodeSource Node.js 12.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://www.deb-multimedia.org stretch InRelease
Ign:4 http://ftp.debian.org/debian stretch InRelease
Hit:5 http://ftp.debian.org/debian stretch-updates InRelease
Hit:6 http://ftp.debian.org/debian stretch-backports InRelease
Hit:7 http://ftp.debian.org/debian stretch-proposed-updates InRelease
Hit:8 http://ftp.debian.org/debian stretch Release
Hit:9 https://deb.nodesource.com/node_12.x stretch InRelease
Get:3 https://repo.jeedom.com/odroid stable InRelease [1640 B]
Hit:10 https://oph.mdrjr.net/meveric all InRelease
Hit:11 https://oph.mdrjr.net/meveric stretch InRelease
Err:3 https://repo.jeedom.com/odroid stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
Fetched 1640 B in 3s (523 B/s)
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.jeedom.com/odroid stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
W: Some index files failed to download. They have been ignored, or old ones used instead.
## Confirming "stretch" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_12.x/dists/stretch/Release'
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
## Creating apt sources list file for the NodeSource Node.js 12.x repo...
+ echo 'deb https://deb.nodesource.com/node_12.x stretch main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_12.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
## Running `apt-get update` for you...
+ apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://www.deb-multimedia.org stretch InRelease
Ign:4 http://ftp.debian.org/debian stretch InRelease
Hit:5 http://ftp.debian.org/debian stretch-updates InRelease
Hit:6 http://ftp.debian.org/debian stretch-backports InRelease
Hit:7 http://ftp.debian.org/debian stretch-proposed-updates InRelease
Hit:8 http://ftp.debian.org/debian stretch Release
Hit:9 https://deb.nodesource.com/node_12.x stretch InRelease
Get:3 https://repo.jeedom.com/odroid stable InRelease [1640 B]
Hit:10 https://oph.mdrjr.net/meveric all InRelease
Hit:11 https://oph.mdrjr.net/meveric stretch InRelease
Err:3 https://repo.jeedom.com/odroid stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
Fetched 1640 B in 3s (522 B/s)
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.jeedom.com/odroid stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
W: Failed to fetch http://repo.jeedom.com/odroid/dists/stable/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9EB92D05446446C
W: Some index files failed to download. They have been ignored, or old ones used instead.
## Run `sudo apt-get install -y nodejs` to install Node.js 12.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 | sudo apt-key add -
echo "deb 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
0 upgraded, 1 newly installed, 0 to remove and 201 not upgraded.
Need to get 12.0 MB of archives.
After this operation, 60.4 MB of additional disk space will be used.
Err:1 https://repo.jeedom.com/odroid stable/main arm64 nodejs arm64 8.9.4-1nodesource1
404  Not Found
E: Failed to fetch https://repo.jeedom.com/odroid/pool/main/n/nodejs/nodejs_8.9.4-1nodesource1_arm64.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
dependencies.sh: 1: dependencies.sh: nodejs: not found
Version actuelle :
dependencies.sh: 59: dependencies.sh: npm: not found
chown: cannot access 'node_modules': No such file or directory
Installation spécifique plugin
sed: can't read node_modules/mail-listener3/node_modules/mailparser/lib/mailparser.js: No such file or directory
Fin de l'installation

J’ai donc effectué la suite du modop (l’erreur me semble être la même)

Err:1 https://repo.jeedom.com/odroid stable/main arm64 nodejs arm64 8.9.4-1nodesource1
404  Not Found
E: Failed to fetch https://repo.jeedom.com/odroid/pool/main/n/nodejs/nodejs_8.9.4-1nodesource1_arm64.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Je suis donc passé en ssh en root pour faire un

cd /lib/apt/lists

Mais le dossier n’existe pas, je ne peux donc pas faire la suite

grep -r nodejs_8.9.4-1nodesource1_arm64.deb 

la sortie sera du style 
./lib/apt/lists/repo.jeedom.com_odroid_dists_stable_main_binary-arm64_._Packages:Filename: pool/main/n/nodejs/nodejs_5-1_arm64.deb

rm ./lib/apt/lists/repo.jeedom.com_odroid_dists_stable_main_binary-arm64_._Packages

Je ne sais pas trop comment faire pour corriger la situation.

Merci d’avance pour votre aide ,

Rien a voir avec un plugin ou un autre. C’est le dépôt qui jeedom qui fout la grouille, ça aurait pu tomber sur n’importe quel plugin avec du nodejs

Bonjour @lunarok

Je sais que le problème n’est pas dans le plugin, mais certaines personnes on réussi à trouver une solution de contournement, d’ou mon message pour essayer de me débloquer.

Merci @Fabrice pour avoir requalifié mon message

Merci d’avance,

je crois que @nebz a contourné le pb pour l’installation

Le mieux est de faire un ticket sur le core, ils le résolvent assez vite, ils connaissent le problème, mon contournement ne prend en compte qu’un seul cas de figure…

Bonjour @nebz

Merci pour la réponse, je fais donc un ticket, merci beaucoup.

Bonjour,

Ça a été résolu par l’équipe support Jeedom.
Les dépendances peuvent être installé maintenant et le plugin fonctionne.

Merci

1 « J'aime »

Bonjour,

Bon cette nuit a 1h du matin j’ai tout mes cron qui ont commencer a bugger

Puis ce matin impossible de me connecter a la box , boucle sur l’écran de connexion…
Apres un redémarrage elle n’est plus accessible , j’ai le message

SQLSTATE[HY000] [2002] No such file or directory

J’ai toujours accès en ssh mais plus en web

Ma box est assez récente, , j’ai fait un recovery et suis reparti de zero ( sans sauvegarde) il y a un mois. donc elle est assez fraîche.

Est ce que vous pensez que les modifications pour installer le nodejs ont pu tout casser?

Merci

Tu dois regarder dans le log cron_execution

Non vraiment fort peu probable

Bonjour,

J’ai fait un recovery et réinstallé un back up d’il y a 48h… car je n’arrivai pas a récupérer la box
Je pensais ne plus avoir de problème avec nodejs mais le problème est revenu… impossible de réinstaller les dépendances, même problème qu’avant. je ne sais pas comment le support a fait pour corriger les erreurs d’installations. Je leur ai fait un mail pour savoir.:cry:

Si je n’ai pas de réponse je refait un ticket pour que le support installe les dépendance sur mon jeedom

Merci

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