Démon qui ne reste pas démarré

Dans un terminal commande:

nodejs -v

Azz’

Merci
V 8.11.1

NodeJs mis à jour

Plus le bug à proiri!

Azz’

Pour info, les versions supportées sont les versions minimales associées à la V4

node v12.10.0
npm v6.10.3

Salut !
Il est certain que rendre un module obsolète au profit d’une version 4 qui n’est pas encore officielle - les annonces la place pour l’heure qu’en RC - est une formidable idée digne d’un professionnel de ce nom !
Quid de tous les utilisateurs en V3 qui ne souhaitent pas migrer tant que l’annonce officielle n’a pas été prononcée ?
Où est la doc indiquant que ces versions sont désormais minimales ?
Où dans le changelog il a été inscrit que la V3 n’était plus supportée ? ça aurait éviter de faire une mise à jour …
enfin quand je clique sur « installer » ça ne m’installe pas du tout ces versions ou dépendances ! …

Ce sont les versions minimales pour qu’un plugin utilisant nodejs puisse être validé en V4, ce n’est pas moi qui fait les règles: si ça ne te convient pas, tu n’as aucune obligation d’utiliser mon plugin gratuit et tu peux te tourner vers des solutions payantes.

Bonsoir,

Comment faire pour installer des versions lorsqu’on a:

pi@jeedom:~ $ nodejs -v
v10.15.2
pi@jeedom:~ $ npm -v
5.8.0

J’ai beau exécuter :
sudo npm install npm@latest -g
ca ne change pas ma version de npm.

Et de mémoire pour nodejs j’ai lancé :
sudp apt-get install nodejs

Je suis sur raspbian buster et Jeedom V4

Merci d’avance.

J’ai le même soucis. le deamon ne veux pas rester UP.
Config : Jeedom sur VM debian Jessie - nodejs 12.16.1

internal/modules/cjs/loader.js:985
throw err;
^
Error: Cannot find module 'spotify-web-api-node'
Require stack:
- /var/www/html/plugins/spotify/ressources/spotify.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
at Function.Module._load (internal/modules/cjs/loader.js:864:27)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/var/www/html/plugins/spotify/ressources/spotify.js:1:21)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/var/www/html/plugins/spotify/ressources/spotify.js' ]
}

Rechercher



[2020-02-22 00:39:02][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2020-02-22 00:39:02][DEBUG] : --- DAEMON START ---
[2020-02-22 00:39:02][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2020-02-22 00:39:02][DEBUG] : --- PROTOCOL = HTTP ---
[2020-02-22 00:39:02][DEBUG] : --- KEY = AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:39:02][DEBUG] : --- NET = http://192.168.0.13:80 ---
[2020-02-22 00:39:02][DEBUG] : --- URL = http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:39:02][DEBUG] : --- LOG LEVEL = 100 ---
[2020-02-22 00:39:02][DEBUG] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2020-02-22 00:39:02][DEBUG] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr" "true" "HTTP" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2020-02-22 00:39:02][DEBUG] : --- RESULT =  ---
[2020-02-22 00:39:02][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2020-02-22 00:39:02][DEBUG] : --- DAEMON START SUCCEED ---
[2020-02-22 00:40:20][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2020-02-22 00:40:20][DEBUG] : --- DAEMON START ---
[2020-02-22 00:40:20][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2020-02-22 00:40:20][DEBUG] : --- PROTOCOL = HTTP ---
[2020-02-22 00:40:20][DEBUG] : --- KEY = AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:40:20][DEBUG] : --- NET = http://192.168.0.13:80 ---
[2020-02-22 00:40:20][DEBUG] : --- URL = http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:40:20][DEBUG] : --- LOG LEVEL = 100 ---
[2020-02-22 00:40:20][DEBUG] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2020-02-22 00:40:20][DEBUG] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr" "true" "HTTP" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2020-02-22 00:40:20][DEBUG] : --- RESULT =  ---
[2020-02-22 00:40:20][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2020-02-22 00:40:20][DEBUG] : --- DAEMON START SUCCEED ---
[2020-02-22 00:45:18][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2020-02-22 00:45:18][DEBUG] : --- DAEMON START ---
[2020-02-22 00:45:18][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2020-02-22 00:45:18][DEBUG] : --- PROTOCOL = HTTP ---
[2020-02-22 00:45:18][DEBUG] : --- KEY = AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:45:18][DEBUG] : --- NET = http://192.168.0.13:80 ---
[2020-02-22 00:45:18][DEBUG] : --- URL = http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:45:18][DEBUG] : --- LOG LEVEL = 100 ---
[2020-02-22 00:45:18][DEBUG] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2020-02-22 00:45:18][DEBUG] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr" "true" "HTTP" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2020-02-22 00:45:18][DEBUG] : --- RESULT =  ---
[2020-02-22 00:45:18][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2020-02-22 00:45:18][DEBUG] : --- DAEMON START SUCCEED ---
[2020-02-22 00:50:18][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2020-02-22 00:50:18][DEBUG] : --- DAEMON START ---
[2020-02-22 00:50:18][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2020-02-22 00:50:18][DEBUG] : --- PROTOCOL = HTTP ---
[2020-02-22 00:50:18][DEBUG] : --- KEY = AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:50:18][DEBUG] : --- NET = http://192.168.0.13:80 ---
[2020-02-22 00:50:18][DEBUG] : --- URL = http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:50:18][DEBUG] : --- LOG LEVEL = 100 ---
[2020-02-22 00:50:18][DEBUG] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2020-02-22 00:50:18][DEBUG] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr" "true" "HTTP" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2020-02-22 00:50:18][DEBUG] : --- RESULT =  ---
[2020-02-22 00:50:18][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2020-02-22 00:50:18][DEBUG] : --- DAEMON START SUCCEED ---
[2020-02-22 00:55:07][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2020-02-22 00:55:07][DEBUG] : --- DAEMON START ---
[2020-02-22 00:55:07][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2020-02-22 00:55:07][DEBUG] : --- PROTOCOL = HTTP ---
[2020-02-22 00:55:07][DEBUG] : --- KEY = AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:55:07][DEBUG] : --- NET = http://192.168.0.13:80 ---
[2020-02-22 00:55:07][DEBUG] : --- URL = http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:55:07][DEBUG] : --- LOG LEVEL = 100 ---
[2020-02-22 00:55:07][DEBUG] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2020-02-22 00:55:07][DEBUG] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr" "true" "HTTP" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2020-02-22 00:55:07][DEBUG] : --- RESULT =  ---
[2020-02-22 00:55:07][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2020-02-22 00:55:07][DEBUG] : --- DAEMON START SUCCEED ---
[2020-02-22 00:55:59][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2020-02-22 00:55:59][DEBUG] : --- DAEMON START ---
[2020-02-22 00:55:59][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2020-02-22 00:55:59][DEBUG] : --- PROTOCOL = HTTP ---
[2020-02-22 00:55:59][DEBUG] : --- KEY = AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:55:59][DEBUG] : --- NET = http://192.168.0.13:80 ---
[2020-02-22 00:55:59][DEBUG] : --- URL = http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 00:55:59][DEBUG] : --- LOG LEVEL = 100 ---
[2020-02-22 00:55:59][DEBUG] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2020-02-22 00:55:59][DEBUG] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr" "true" "HTTP" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2020-02-22 00:55:59][DEBUG] : --- RESULT =  ---
[2020-02-22 00:55:59][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2020-02-22 00:55:59][DEBUG] : --- DAEMON START SUCCEED ---
[2020-02-22 01:00:27][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2020-02-22 01:00:27][DEBUG] : --- DAEMON START ---
[2020-02-22 01:00:27][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2020-02-22 01:00:27][DEBUG] : --- PROTOCOL = HTTP ---
[2020-02-22 01:00:27][DEBUG] : --- KEY = AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 01:00:27][DEBUG] : --- NET = http://192.168.0.13:80 ---
[2020-02-22 01:00:27][DEBUG] : --- URL = http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 01:00:27][DEBUG] : --- LOG LEVEL = 100 ---
[2020-02-22 01:00:27][DEBUG] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2020-02-22 01:00:27][DEBUG] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr" "true" "HTTP" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2020-02-22 01:00:27][DEBUG] : --- RESULT =  ---
[2020-02-22 01:00:27][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2020-02-22 01:00:27][DEBUG] : --- DAEMON START SUCCEED ---
[2020-02-22 01:05:17][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2020-02-22 01:05:17][DEBUG] : --- DAEMON START ---
[2020-02-22 01:05:17][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2020-02-22 01:05:17][DEBUG] : --- PROTOCOL = HTTP ---
[2020-02-22 01:05:17][DEBUG] : --- KEY = AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 01:05:17][DEBUG] : --- NET = http://192.168.0.13:80 ---
[2020-02-22 01:05:17][DEBUG] : --- URL = http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 01:05:17][DEBUG] : --- LOG LEVEL = 100 ---
[2020-02-22 01:05:17][DEBUG] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2020-02-22 01:05:17][DEBUG] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr" "true" "HTTP" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2020-02-22 01:05:17][DEBUG] : --- RESULT =  ---
[2020-02-22 01:05:17][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2020-02-22 01:05:17][DEBUG] : --- DAEMON START SUCCEED ---
[2020-02-22 01:10:24][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consecutivement
[2020-02-22 01:10:24][DEBUG] : --- DAEMON START ---
[2020-02-22 01:10:24][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2020-02-22 01:10:24][DEBUG] : --- PROTOCOL = HTTP ---
[2020-02-22 01:10:24][DEBUG] : --- KEY = AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 01:10:24][DEBUG] : --- NET = http://192.168.0.13:80 ---
[2020-02-22 01:10:24][DEBUG] : --- URL = http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr ---
[2020-02-22 01:10:24][DEBUG] : --- LOG LEVEL = 100 ---
[2020-02-22 01:10:24][DEBUG] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2020-02-22 01:10:24][DEBUG] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "http://192.168.0.13:80/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=AhQjbK0keIfbDfOYWTRccabuqZU9xtTr" "true" "HTTP" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2020-02-22 01:10:24][DEBUG] : --- RESULT =  ---
[2020-02-22 01:10:24][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2020-02-22 01:10:24][DEBUG] : --- DAEMON START SUCCEED ---

Toujours pareil avec la dernière version ?

Bonjour @sbarre35,

Je constate exactement les mêmes problèmes que ceux décris au-dessus.
Le démon démarre quelques secondes, puis passe au statut NOK.

Jeedom DIY Docker
nodejs : v12.16.2
npm : 6.14.4

[2020-04-15 10:50:50][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2020-04-15 10:50:50][DEBUG] : --- DAEMON START ---
[2020-04-15 10:50:50][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2020-04-15 10:50:50][DEBUG] : --- PROTOCOL = HTTP ---
[2020-04-15 10:50:50][DEBUG] : --- KEY = rFKy86xqVjp2dsv0P4vSQ2Hnq6SwiZjs ---
[2020-04-15 10:50:50][DEBUG] : --- NET = http://192.168.1.25:9080 ---
[2020-04-15 10:50:50][DEBUG] : --- URL = http://192.168.1.25:9080/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=rFKy86xqVjp2dsv0P4vSQ2Hnq6SwiZjs ---
[2020-04-15 10:50:50][DEBUG] : --- LOG LEVEL = 100 ---
[2020-04-15 10:50:50][DEBUG] : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2020-04-15 10:50:50][DEBUG] : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "http://192.168.1.25:9080/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=rFKy86xqVjp2dsv0P4vSQ2Hnq6SwiZjs" "true" "HTTP" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2020-04-15 10:50:50][DEBUG] : --- RESULT =  ---
[2020-04-15 10:50:50][DEBUG] : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"ok"}---
[2020-04-15 10:50:50][DEBUG] : --- DAEMON START SUCCEED ---

Est-ce qu’il s’agit de la même chose ?
Merci par avance.

Je me réponds à moi même. Dans les logs du Deamon-Spotify apparaissait qu’il me manquait spotify-web-api-node.
Après l’avoir ajouté cela fonctionne parfaitement !

npm install spotify-web-api-node --save

Si cela peut servir à d’autres.

c’est fait automatiquement lorsque tu déploies les dépendances sur la page du plugin !

il risque de te manquer d’autres dépendances … si tu ne le fais pas

Bonjour,

je pense après lecture que j’ai plus ou moins le meme pb… et là j’ai tout essayé, vérifié, et je tourne en rond :slight_smile:

et dans les log du daemon il me dit :

nice: ‹ nodejs ›: No such file or directory

il semble donc que je n’ai pas Nodejs ? ou bien un pb avec ?
par avance merci de votre aid.

j’ai fait le choix de ne pas mettre nodejs dans les dépendances du plugin => il te faut donc l’installer manuellement.

ah ok merci. je vais regarder comment faire ça . merci

Bonjour à tous,
J’ai le même problème, puourtant j’ai tout mis à jour…
j’ai une installation standard dans le répertoire /var/www/jeedom/
du coup plein de plugins ne marchent pas :frowning:
Merci de tout conseil


nodejs v12.17.0
npm 6.14.4

J’ai trouvé la solution ici Jeedom - Demarré NOK - #4 par cot_al

Meme problème ici

Jeedom
Version : 4.1.28
Source : default
Branch : V4-stable
System : RPI 3 B


root@raspberrypi:/home/fanzila# npm -v
8.3.0
root@raspberrypi:/home/fanzila# n --version
v8.0.2

root@raspberrypi:/home/fanzila# npm install spotify-web-api-node --save
up to date, audited 33 packages in 4s
8 packages are looking for funding
run npm fund for details
found 0 vulnerabilities


Log jeedom :
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module ‹ spotify-web-api-node ›
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/var/www/html/plugins/spotify/ressources/spotify.js:5:21)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)

Même réponse que précédement, les versions supportées sont les versions minimales associées à la V4

node v12.10.0
npm v6.10.3

Bonjour

Jeedom 4.2.16 Debian 10.12
Dependance indiqué OK
node v14.19.2
npm v6.14.17

Le deamon ne fonctionne plus il reste toujours en NOK. Je l’ai utilisé plusieurs fois avant avec succès mais sur nouvelle installation de VMM il ne veut plus. J’ai un DNS officiel Jeedom

J’ai essayé de réinstaller en local ou a distance, j’arrive bien à récuperer les Token et donc donner l’autorisation à Spotify de se connecter à mon Jeedom en local ou à distance
La requete d’ailleurs fonctionne c’est juste le deamon qui ne se lance pas et les logs en Debugs ne sont pas bavard.
Voici ci je test le lien URL exterrne

{"state":"ok","result":{"apikey":"fm8xxxxxxx","commands":"[{\"token\":\"AQxxxxx\",\"id\":\"2638\"}]","itemcallback":"https:\/\/dns.eu.jeedom.link\/plugins\/spotify\/core\/ajax\/spotify.ajax.php?api=#APIKEY#&type=spotify&action=item&id=#ID#&item_id=#ITEM_ID#&item_album=#ITEM_ALBUM#&item_title=#ITEM_TITLE#&item_artist=#ITEM_ARTIST#&item_image=#ITEM_IMAGE#&context_type=#CONTEXT_TYPE#&context_uri=#CONTEXT_URI#","devicecallback":"https:\/\/dns.eu.jeedom.link\/plugins\/spotify\/core\/ajax\/spotify.ajax.php?api=#APIKEY#&type=spotify&action=device&id=#ID#&device_id=#DEVICE_ID#&device_name=#DEVICE_NAME#&device_type=#DEVICE_TYPE#&device_volume=#DEVICE_VOLUME#&device_is_active=#DEVICE_IS_ACTIVE#","playlistcallback":"https:\/\/dns.eu.jeedom.link\/plugins\/spotify\/core\/ajax\/spotify.ajax.php?api=#APIKEY#&type=spotify&action=playlist&id=#ID#&playlist_id=#PLAYLIST_ID#&playlist_name=#PLAYLIST_NAME#","shufflecallback":"https:\/\/dns.eu.jeedom.link\/plugins\/spotify\/core\/ajax\/spotify.ajax.php?api=#APIKEY#&id=#ID#&state=#STATE#&action=shuffle","refreshcallback":"https:\/\/dns.eu.jeedom.link\/plugins\/spotify\/core\/ajax\/spotify.ajax.php?api=#APIKEY#&i=#I#&id=#ID#&action=refresh_token"}}

log du deamon :

[2022-05-17 17:03:23]DEBUG : --- DAEMON START ---
[2022-05-17 17:03:23]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:23]DEBUG : --- PROTOCOL = HTTPS ---
[2022-05-17 17:03:23]DEBUG : --- KEY = fm8xxxxxxxxxxxxxxxxxxxxxxxxxxxx ---
[2022-05-17 17:03:23]DEBUG : --- NET = https://dns.eu.jeedom.link ---
[2022-05-17 17:03:23]DEBUG : --- URL = https://dns.eu.jeedom.link/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=fm8xxxxxxxxxxxxxxxxxx ---
[2022-05-17 17:03:23]DEBUG : --- LOG LEVEL = 100 ---
[2022-05-17 17:03:23]DEBUG : --- LOG = /var/www/html/core/class/../../log/spotify_daemon ---
[2022-05-17 17:03:23]DEBUG : --- CMD = sudo nice -n 19 nodejs "/var/www/html/plugins/spotify/ressources/spotify.js" "https://dns.eu.jeedom.link/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=fm8xxxxxxxxxxxxxxxxxxxx" "100" "HTTPS" > "/var/www/html/core/class/../../log/spotify_daemon" 2>&1 & ---
[2022-05-17 17:03:23]DEBUG : --- RESULT =  ---
[2022-05-17 17:03:23]DEBUG : --- DAEMON info **{"log":"spotify_daemon","launchable":"ok","state":"nok"}---**
[2022-05-17 17:03:23]DEBUG : --- DAEMON START WAIT LOOP = 0---
[2022-05-17 17:03:24]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:24]DEBUG : --- DAEMON START WAIT LOOP = 1---
[2022-05-17 17:03:25]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:25]DEBUG : --- DAEMON START WAIT LOOP = 2---
[2022-05-17 17:03:26]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:26]DEBUG : --- DAEMON START WAIT LOOP = 3---
[2022-05-17 17:03:27]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:27]DEBUG : --- DAEMON START WAIT LOOP = 4---
[2022-05-17 17:03:28]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:28]DEBUG : --- DAEMON START WAIT LOOP = 5---
[2022-05-17 17:03:29]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:29]DEBUG : --- DAEMON START WAIT LOOP = 6---
[2022-05-17 17:03:31]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:31]DEBUG : --- DAEMON START WAIT LOOP = 7---
[2022-05-17 17:03:32]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:32]DEBUG : --- DAEMON START WAIT LOOP = 8---
[2022-05-17 17:03:33]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:33]DEBUG : --- DAEMON START WAIT LOOP = 9---
[2022-05-17 17:03:34]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:34]DEBUG : --- DAEMON START WAIT LOOP = 10---
[2022-05-17 17:03:35]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:35]DEBUG : --- DAEMON START WAIT LOOP = 11---
[2022-05-17 17:03:36]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:36]DEBUG : --- DAEMON START WAIT LOOP = 12---
[2022-05-17 17:03:37]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:37]DEBUG : --- DAEMON START WAIT LOOP = 13---
[2022-05-17 17:03:38]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:38]DEBUG : --- DAEMON START WAIT LOOP = 14---
[2022-05-17 17:03:40]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:40]DEBUG : --- DAEMON START WAIT LOOP = 15---
[2022-05-17 17:03:41]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:41]DEBUG : --- DAEMON START WAIT LOOP = 16---
[2022-05-17 17:03:42]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:42]DEBUG : --- DAEMON START WAIT LOOP = 17---
[2022-05-17 17:03:43]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:43]DEBUG : --- DAEMON START WAIT LOOP = 18---
[2022-05-17 17:03:44]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:44]DEBUG : --- DAEMON START WAIT LOOP = 19---
[2022-05-17 17:03:45]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:45]DEBUG : --- DAEMON START WAIT LOOP = 20---
[2022-05-17 17:03:47]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:47]DEBUG : --- DAEMON START WAIT LOOP = 21---
[2022-05-17 17:03:48]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:48]DEBUG : --- DAEMON START WAIT LOOP = 22---
[2022-05-17 17:03:49]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:49]DEBUG : --- DAEMON START WAIT LOOP = 23---
[2022-05-17 17:03:50]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:50]DEBUG : --- DAEMON START WAIT LOOP = 24---
[2022-05-17 17:03:51]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:51]DEBUG : --- DAEMON START WAIT LOOP = 25---
[2022-05-17 17:03:52]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:52]DEBUG : --- DAEMON START WAIT LOOP = 26---
[2022-05-17 17:03:53]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:53]DEBUG : --- DAEMON START WAIT LOOP = 27---
[2022-05-17 17:03:54]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:54]DEBUG : --- DAEMON START WAIT LOOP = 28---
[2022-05-17 17:03:55]DEBUG : --- DAEMON info {"log":"spotify_daemon","launchable":"ok","state":"nok"}---
[2022-05-17 17:03:55]DEBUG : --- DAEMON START WAIT LOOP = 29---
[2022-05-17 17:03:56]DEBUG : --- DAEMON START FAILURE ---
[2022-05-17 17:03:56]DEBUG : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=spotify function=remove callInstallFunction=1
[2022-05-17 17:22:31]INFO : Début d'activation du plugin
[2022-05-17 17:22:32]INFO : Info sur le démon : {"launchable_message":"","launchable":"nok","state":"nok","log":"nok","auto":0}
[2022-05-17 17:22:32]DEBUG : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=spotify function=install callInstallFunction=1

J’ai essaye en SSH de taper la commande : sudo nice -n 19 nodejs « /var/www/html/plugins/spotify/ressources/spotify.js » « https://dns.eu.jeedom.link/plugins/spotify/core/ajax/spotify.ajax.php?action=account&api=fm8xxxxxxxxxxxxxxxxxxxx »

Il me réponds : nice: « nodejs »: Aucun fichier ou dossier de ce type
→ pourtant jai la bonne version de nodejs ?

EDIT : apres avoir cherché sur internet j’ai tapé la commande suivante
sudo ln -s which node which nodejs
→ Solution dans mon cas :slight_smile:

et merci pour cet excellent plugin