Picture of Branislav Smitek
Start node server failed
by Branislav Smitek - Thursday, 12 October 2017, 12:18 PM
 

I've made ubuntu upgrade and now I can't start node server.

I get following errors:

sudo node server
[sudo] password for brane:
(node:2298) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
info: [12 Oct 2017 14:12:08 +02:00] configuration loaded from /home/brane/adapt_authoring/conf/config.json
info: [12 Oct 2017 14:12:08 +02:00] Supporting the following authentication types:
info: [12 Oct 2017 14:12:08 +02:00] - local
info: [12 Oct 2017 14:12:09 +02:00] Adapt authoring tool v0.3.0
info: [12 Oct 2017 14:12:09 +02:00] Adapt Framework v2.2.2
info: [12 Oct 2017 14:12:09 +02:00] Connection established: adapt-tenant-master
error: [12 Oct 2017 14:12:09 +02:00] MongoError: connect ECONNREFUSED 127.0.0.1:27017
error: [12 Oct 2017 14:12:09 +02:00] Database Connection failed, please check your database
events.js:160
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::5000
at Object.exports._errnoException (util.js:1020:11)
at exports._exceptionWithHostPort (util.js:1043:20)
at Server._listen2 (net.js:1262:14)
at listen (net.js:1298:10)
at Server.listen (net.js:1394:5)
at /home/brane/adapt_authoring/lib/application.js:486:38
at /home/brane/adapt_authoring/lib/application.js:355:12
at /home/brane/adapt_authoring/lib/database.js:462:14
at /home/brane/adapt_authoring/lib/database.js:386:14
at /home/brane/adapt_authoring/node_modules/async/lib/async.js:131:25
at /home/brane/adapt_authoring/lib/contentmanager.js:1602:9
at /home/brane/adapt_authoring/node_modules/async/lib/async.js:131:25
at /home/brane/adapt_authoring/plugins/content/bower/index.js:124:14
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:447:3)

Picture of Tom Taylor
Re: Start node server failed
by Tom Taylor - Thursday, 12 October 2017, 1:06 PM
 

Hi Branislav,

There are a couple of things going wrong in there:

The app can't connect to your database, can you make sure that it is in fact running, and accessible at localhost:27017

The app can't use port 5000 for incoming connections. Make sure you don't have any other instances of the app running, or that anything else using port 5000.

Picture of Branislav Smitek
Re: Start node server failed
by Branislav Smitek - Friday, 13 October 2017, 5:41 AM
 

Is it possible that upgrade which failed during installation delete mongodb and their databases? I can't find data folder (help says that data folder is MongoDb folder). May failed upgrade delete all my courses created by Adapt Authoring tool? I read that maybe gnome could be reason that Ubuntu doesn't boot at all? I'm not Ubuntu expert and now I have realy problem to start Adapt on my virtual amchine which is running on oVirt environment (Adapt worked on ubuntu version 14.04 .).

Where can I get more information to solve my problem?