adlnet / xapi-launch

40 stars 15 forks source link

Issue with port 3000? #18

Closed jamesdahingo closed 6 years ago

jamesdahingo commented 6 years ago

Hi All,

I'm trying to set this up to a server with Learning Locker installed (centoOS). LL is already listening to port 3000 so I was thinking this error below is related to it? If yes, if there a way to edit the app.js to listen to a different port i.e 5000? Any input will help :)

$ node app.js Using default connection string Email is not set up in the config file. User accounts need to be verified manually by the admin. (node:1816) DeprecationWarning: open() is deprecated in mongoose >= 4.11.0, use openUri() instead, or set the useMongoClient option if using connect() or createConnection(). See http://mongoosejs.com/docs/connections.html#use-mongo-client events.js:160 throw er; // Unhandled 'error' event ^

Error: listen EADDRINUSE :::3000

jamesdahingo commented 6 years ago

you may ignore the mongoose error above, I already fixed that

vbhayden commented 6 years ago

Do you have anything else running on that port? Alternatively, have you tried running it on a different port?

jamesdahingo commented 6 years ago

I have Learning Locker LRS running on that port that I can't change

vbhayden commented 6 years ago

Sounds like that is your problem. :-)

By default, the launch server is set up to use port 3000. You can change that at the bottom of app.js. You can set it to something like 3001 and increment the other ports appropriately. Be sure to change your config.json to reflect the new port you're using.

vbhayden commented 6 years ago

I am going to close this issue as it was not related to the launch project, but feel free to continue asking questions on configuring your project's port here.

jamesdahingo commented 6 years ago

I really appreciate your response, vbhayden! I haven't tried it again but will go back working on it later today. Thank you so much! :)

jamesdahingo commented 6 years ago

Hi all,

This is a continuation but not really related to my initial concern. So I managed to make the app.js run and was able to test launch. My question is, this might be silly, how do you exactly make this talk to the LRS and my LMS? Is there an additional service needed to run or a plugin of some sort?

FlorianTolk commented 6 years ago

Hello jamesdahingo,

xapi-launch is a server, you need to send some form of a request to the server in order to communicate. I would suggest you take a look here as this is the wrapper we built for xAPI specifically.