Hallo, ich versuche mein erstes node.js mit folgender Anleitung zu installieren.. https://github.com/OmerTu/GoogleHomeKodi
Ich hänge bei Punkt B.2.9.
Wenn ich versuche in Plesk in der Node.js App das Skript "start" auszuführen (entspricht "node server.js"), erhalte ich leider folgende Fehlermeldung, ganz unabhängig davon mit welchem Port ist es versuche (8099 in diesem Fall).. gibt es da irgend einen Trick? Habe mit keiner Suche dieser Welt etwas nützliches dazu finden können.. an dieser Stelle musste ich kapitulieren und ins Bett^^
Fehler:
Code
> googlehomekodi@0.0.1 start /var/www/vhosts/hosting.xxx.netcup.net/kodi
> node server.js
Loaded 1 Kodi hosts.
Loaded config from kodi-hosts.config.js, {
"authToken": "MyAuthTokenSharedWith_IFTTT_Applet",
"listenerPort": "8099",
"youtubeKey": "AIzaSyBYKxhPJHYUnzYcdOAv14Gmq-43_W9_79w"
}
events.js:183
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::8099
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at Server.setupListenHandle [as _listen2] (net.js:1367:14)
at listenInCluster (net.js:1408:12)
at Server.listen (net.js:1492:7)
at Function.listen (/var/www/vhosts/hosting.xxx.netcup.net/kodi/node_modules/express/lib/application.js:618:24)
at Object.<anonymous> (/var/www/vhosts/hosting.xxx.netcup.net/kodi/server.js:265:22)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! googlehomekodi@0.0.1 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the googlehomekodi@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /var/www/vhosts/hosting.xxx.netcup.net/.npm/_logs/2018-06-13T20_38_49_333Z-debug.log
Ausführen
Alles anzeigen
kodi-hosts.config.js:
Code
exports.kodiConfig = [{
id: 'kodi', // For now leave the first set to kodi.
// YOUR_EXTERNAL_PROTOCOL (http or https)
kodiProtocol: 'http',
// YOUR_EXTERNAL_IP_ADDRESS
kodiIp: '[lange:ipv6:adresse:525ds:sf09]',
// YOUR_KODI_PORT
kodiPort: '8080',
// YOUR_KODI_USER_NAME
kodiUser: 'user',
// YOUR_KODI_PASSWORD
kodiPassword: 'password'
}
// You can use this to specify additonal kodi installation, that you'd like to control.
// ,{id: 'bedroom', // For example the bedroom, will allow you to create IFTTT sentences like: `okay google bedroom play ..`
// YOUR_EXTERNAL_PROTOCOL (http or https)
// kodiProtocol: 'http',
// // YOUR_EXTERNAL_IP_ADDRESS
// kodiIp: '192.168.1.18',
// // YOUR_KODI_PORT
// kodiPort: '8080',
// // YOUR_KODI_USER_NAME
// kodiUser: 'kodi',
// // YOUR_KODI_PASSWORD
// kodiPassword: 'myKodiPassword'}
];
exports.globalConfig = {
// YOUR_CONNECTION_PASSWORD
authToken: 'MyAuthTokenSharedWith_IFTTT_Applet',
// YOUR_LOCAL_LISTENING_PORT
listenerPort: '8099',
// YOUR_YOUTUBE_API_KEY
youtubeKey: 'AIzaSyBYKxhPJHYUnzYcdOAv14Gmq-43_W9_79w'
};
Alles anzeigen