Démon qui ne reste pas démarré

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