Picture of Anne Vlaanderen
Authoring Tool installation help needed!
by Anne Vlaanderen - Monday, 15 October 2018, 9:36 AM
 

Hi everyone, 

I really want to install the authoring tool of Adapt to make an e-learning for a school project. I have tried to install it all weekend, but I seem to get stuck on the last steps. I have installed the following prerequisites: 

git version 2.19.0

node version:v8.12.0

NPM version:6.4.1

Mongod version: db version v4.0.3

git version: 7ea530946fa7880364d88c8d8b6026bbc9ffa48c

I am stuck at the fourth step of the installation procedure (node install). When I run the command I get the following output: 

Last login: Mon Oct 15 11:27:21 on ttys000

ip-145-116-154-55:~ annevlaanderen$ cd /Users/annevlaanderen/Desktop/adapt_authoring-master/adapt_authoring 

ip-145-116-154-55:adapt_authoring annevlaanderen$ node install

 

This script will install the application. 

Would you like to continue?

> Continue? Y/n (Y) Y

 

We need to configure the tool before install. 

Tip: just press ENTER to accept the default value in brackets.

> Server port (5000) 

> Server name (localhost) 

> Database host (localhost) 

> Master database name (adapt-tenant-master) 

> Database server port (27017) 

> Database server user annevlaanderen

> Database server password 

> Database server authentication database (admin) 

> Data directory path (data) 

> Session secret (value used when saving session cookie data) (your-session-secret) 

> Git repository URL to be used for the authoring tool source code (https://github.com/adaptlearning/adapt_authoring.git) 

> Git repository URL to be used for the framework source code (https://github.com/adaptlearning/adapt_framework.git) 

> Specific git revision to be used for the framework. Accepts any valid revision type (e.g. branch/tag/commit) (tags/v2.2.5) 

> Are you using ffmpeg? y/N (N) N

> Will you be using an SMTP server? (used for sending emails) y/N (N) N

Now we need to configure the master tenant. 

Tip: just press ENTER to accept the default value in brackets.

 

\ Starting server

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

 

Can someone please help me and tell me what I am doing wrong? I have absolutely no knowledge of programming..

Many thanks in advance! 

 

Anne

Picture of Craig Dooley
Re: Authoring Tool installation help needed!
by Craig Dooley - Tuesday, 16 October 2018, 7:13 AM
 

Anne - I get the same parser warning (see below) on # node server but it does not stop the server from running.  If you ignore the warning and head to step 5 does the server run?

===

(node:15299) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
info: [16 Oct 2018 07:08:45 +00:00] Connection established: adapt-tenant-master
(node:15299) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.

Picture of Anne Vlaanderen
Re: Authoring Tool installation help needed!
by Anne Vlaanderen - Tuesday, 16 October 2018, 8:58 AM
 

Hi Craig, 

No, it doesn't run. When I ignore the parser warning and just run node server I get the following: 

 

\ Starting server

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

ip-145-116-153-37:adapt_authoring annevlaanderen$ sudo node server

info: [16 Oct 2018 10:54:17 +02:00] configuration loaded from /Users/annevlaanderen/Desktop/adapt_authoring-master/adapt_authoring/conf/config.json

info: [16 Oct 2018 10:54:17 +02:00] Supporting the following authentication types:

info: [16 Oct 2018 10:54:17 +02:00] - local

error: [16 Oct 2018 10:54:17 +02:00] Check for updates failed, Error: Cannot determine framework version

Error: /Users/annevlaanderen/Desktop/adapt_authoring-master/adapt_authoring/temp/adapt_framework/package.json: ENOENT: no such file or directory, open '/Users/annevlaanderen/Desktop/adapt_authoring-master/adapt_authoring/temp/adapt_framework/package.json'

(node:4788) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.

error: [16 Oct 2018 10:54:17 +02:00] MongoError: Authentication failed.

info: [16 Oct 2018 10:54:17 +02:00] error creating server [Authentication failed.]

 

It does not find the temp/adapt_framework/package.json files. Which is true, since I do not have an temp and adapt_framework folder in the adapt_authoring folder? Did I do something wrong? How can I fix this. Also, it gives a MongoError: Authentication failed, I have no idea how to solve this either?

 

Best, 

Anne

Picture of Omar Cerecedo
Re: Authoring Tool installation help needed!
by Omar Cerecedo - Tuesday, 23 October 2018, 6:58 PM
 

Are you in a restricted network?

Picture of Tom Taylor
Re: Authoring Tool installation help needed!
by Tom Taylor - Wednesday, 24 October 2018, 4:00 PM
 

Hi Anne,

Did you set up your Mongo database to use authentication? Everything looks to have gone ok until the point that the install script tries to add data to the DB.

Picture of Kenny Della Valle
Re: Authoring Tool installation help needed!
by Kenny Della Valle - Friday, 26 October 2018, 3:03 AM
 

Hello, I think I am running into the same problem. One thing i noticed is that in the MongoDB log file, the user that is trying to authenticate is whatever I entered in the install script, plus "@admin". So if my MongoDB username is "MongoDB", and i enter that in the install step, then my MongoDB log file shows "Supported SASL mechanisms requested for unknown user 'MongoDB@admin'", and the next line includes " Could not find user MongoDB@admin". Is that the expected username? I do show that there is a DB in my mongo called "admin". I tried manually adding users with same username and password, but no luck. I am also running Mongo as a windows service, and am even running that as an admin user with the same username and password just in case. I attached an output from the console and my mongodb log file. Thanks for any help or insight you could offer!