Picture of Chad Flinn
Authoring tool. Try to run server and keep getting errors
by Chad Flinn - Saturday, 15 September 2018, 10:07 PM
 

Hi I keep getting this error when I try to run the server.  Any ideas?  TIA

Starting server

(node:10492) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUr| Starting server

(node:10492) DeprecationWarning: collection.ensureIndex is deprecated. Use creat/ Starting server

events.js:183

      throw er; // Unhandled 'error' event

      ^

 

Error: listen EADDRINUSE :::5000

    at Server.setupListenHandle [as _listen2] (net.js:1360:14)

    at listenInCluster (net.js:1401:12)

    at Server.listen (net.js:1485:7)

    at /Users/chadflinn/Documents/adapt_authoring-master/lib/application.js:387:36

    at /Users/chadflinn/Documents/adapt_authoring-master/lib/application.js:346:12

    at /Users/chadflinn/Documents/adapt_authoring-master/lib/database.js:465:14

    at /Users/chadflinn/Documents/adapt_authoring-master/lib/database.js:388:16

    at /Users/chadflinn/Documents/adapt_authoring-master/node_modules/async/dist/async.js:473:16

    at replenish (/Users/chadflinn/Documents/adapt_authoring-master/node_modules/async/dist/async.js:1006:25)

    at iterateeCallback (/Users/chadflinn/Documents/adapt_authoring-master/node_modules/async/dist/async.js:995:17)

    at /Users/chadflinn/Documents/adapt_authoring-master/node_modules/async/dist/async.js:969:16

    at /Users/chadflinn/Documents/adapt_authoring-master/lib/contentmanager.js:1489:9

    at /Users/chadflinn/Documents/adapt_authoring-master/node_modules/async/dist/async.js:473:16

    at replenish (/Users/chadflinn/Documents/adapt_authoring-master/node_modules/async/dist/async.js:1006:25)

    at iterateeCallback (/Users/chadflinn/Documents/adapt_authoring-master/node_modules/async/dist/async.js:995:17)

    at /Users/chadflinn/Documents/adapt_authoring-master/node_modules/async/dist/async.js:969:16

    at /Users/chadflinn/Documents/adapt_authoring-master/plugins/content/bower/index.js:121:14

    at /Users/chadflinn/Documents/adapt_authoring-master/node_modules/graceful-fs/graceful-fs.js:78:16

    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)

Picture of Daniel Seixas
Re: Authoring tool. Try to run server and keep getting errors
by Daniel Seixas - Monday, 17 September 2018, 9:02 AM
 

Seems that you have a server already started in port 5000.

Try

    pm2 list (if your using pm2 to manage your node servers)

or 

netstat -nlp|grep 5000

if not

Picture of Chad Flinn
Re: Authoring tool. Try to run server and keep getting errors
by Chad Flinn - Monday, 17 September 2018, 8:21 PM
 

Thank you Daniel!  That was the problem.  I had another application using that port.  Once I killed it , I  had no problem at all running the server.  Wow what a headache but I certainly learned a ton!  Thanks again.

Picture of Daniel Seixas
Re: Authoring tool. Try to run server and keep getting errors
by Daniel Seixas - Tuesday, 18 September 2018, 8:45 AM
 

My pleasure

Picture of Chad Flinn
Re: Authoring tool. Try to run server and keep getting errors
by Chad Flinn - Monday, 17 September 2018, 8:22 PM
 

Problem solved.  I had another app using my localhost port.  Once I killed it worked great.