Picture of Marc Laskowski
Error during installation process
by Marc Laskowski - Friday, 6 November 2020, 9:56 AM
 

Hello, 

I posted my issue before, but there were no responses. I am tryining to install adapt authoring on my Ubunutu server 20.04.01 LTE. All Prerequisites are installed. Node is on the current LTS version v14.15.0.

During the setup, I only click enter to use the default values:

node install

This script will install the application.
Would you like to continue?
? Continue? Yes

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
? Data directory path data
? 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/v5.7.1
? Master database name adapt-tenant-master
? Will you be using a full database connection URI? (all connection options in the URI) No
? Database host localhost
? Database server port 27017
? Database server user (only specify if using database authentication)
? Database server password (only specify if using database authentication)
? Database server authentication database (only specify if using database authentication)
? Will you be using an SMTP server? (used for sending emails) No
Now we need to configure the master tenant.
Tip: just press ENTER to accept the default value in brackets.

error [06 Nov 20 09:39:18 +00:00] connect ECONNREFUSED 127.0.0.1:27017
error [06 Nov 20 09:39:18 +00:00] failed to set app.db

 

Please help - I realy need to get Adapt going. 

Thank you very much. 

Regards,
Marc

Picture of Oliver Foster
Re: Error during installation process
by Oliver Foster - Friday, 6 November 2020, 10:47 AM
 

Port 27017 should have a running mongodb server at it receiving requests.

Picture of Marc Laskowski
Re: Error during installation process
by Marc Laskowski - Friday, 6 November 2020, 1:50 PM
 

Okay, now I get an different error - not sure why it says permission denied, when I do it via sudo:

 

sudo node install

This script will install the application.
Would you like to continue?
? Continue? Yes

We need to configure the tool before install.
Tip: just press ENTER to accept the default value in brackets.
? Server port 5000
? Server name Adapt01
? Data directory path data
? 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/v5.7.1
? Master database name adapt-tenant-master
? Will you be using a full database connection URI? (all connection options in the URI) No
? Database host localhost
? Database server port 27017
? Database server user (only specify if using database authentication)
? Database server password (only specify if using database authentication)
? Database server authentication database (only specify if using database authentication)
? Will you be using an SMTP server? (used for sending emails) No
Now we need to configure the master tenant.
Tip: just press ENTER to accept the default value in brackets.

? Set a unique name for your tenant master
? Set the display name for your tenant Master

Cloned https://github.com/adaptlearning/adapt_framework.git successfully.
/temp/5fa553e8705a4d094388ff8e/adapt_framework switched to revision tags/v5.7.1
error [06 Nov 20 13:47:36 +00:00] Error downloading the framework ⚠ EACCES: permission denied, open '/home/laskm/adapt_authoring/temp/5fa553e8705a4d094388ff8e/adapt_framework/node_modules/jpegtran-bin/vendor/jpegtran'
⚠ jpegtran pre-build test failed
ℹ compiling from source
✖ Error: EACCES: permission denied, mkdir '/home/laskm/adapt_authoring/temp/5fa553e8705a4d094388ff8e/adapt_framework/node_modules/jpegtran-bin/7a91ade0-249f-4065-a036-0fdac142e117'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jpegtran-bin@5.0.2 postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jpegtran-bin@5.0.2 postinstall 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! /root/.npm/_logs/2020-11-06T13_47_36_350Z-debug.log

ERROR: ⚠ EACCES: permission denied, open '/home/laskm/adapt_authoring/temp/5fa553e8705a4d094388ff8e/adapt_framework/node_modules/jpegtran-bin/vendor/jpegtran'
⚠ jpegtran pre-build test failed
ℹ compiling from source
✖ Error: EACCES: permission denied, mkdir '/home/laskm/adapt_authoring/temp/5fa553e8705a4d094388ff8e/adapt_framework/node_modules/jpegtran-bin/7a91ade0-249f-4065-a036-0fdac142e117'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jpegtran-bin@5.0.2 postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jpegtran-bin@5.0.2 postinstall 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! /root/.npm/_logs/2020-11-06T13_47_36_350Z-debug.log


Failed to create master tenant. Please check the console output.

Picture of Matt Leathes
Re: Error during installation process
by Matt Leathes - Friday, 6 November 2020, 2:47 PM
 

A few linux users seem to be having problems getting the jpegtran-bin module, I'm not quite sure what's going on there

Picture of Marc Laskowski
Re: Error during installation process
by Marc Laskowski - Sunday, 8 November 2020, 3:37 PM
 

Which means I need to install it manually? 

Picture of Marc Laskowski
Re: Error during installation process
by Marc Laskowski - Monday, 9 November 2020, 2:27 PM
 

I ran 'npm install jpegtran-bin' and get a success message:

> jpegtran-bin@5.0.2 postinstall /home/laskm/adapt_authoring/node_modules/jpegtran-bin
> node lib/install.js

✔ jpegtran pre-build test passed successfully
+ jpegtran-bin@5.0.2
added 131 packages from 29 contributors and audited 975 packages in 7.406s

But the error during the installation process is still the same. 

When I ran 'npm update', I receive the following output: 

npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
+ async@3.2.0
+ inquirer@7.3.3
+ less@3.12.2
+ cookie-parser@1.4.5
+ connect-mongodb-session@2.4.1
+ express-session@1.17.1
+ mocha@6.2.3
+ grunt@1.3.0
+ mime@2.4.6
+ formidable@1.2.2
+ moment@2.29.1
+ morgan@1.10.0
+ underscore@1.11.0
+ nodemailer@6.4.15
+ needle@2.5.2
+ winston@3.3.3
+ unzipper@0.10.11
+ mongodb@3.6.3
+ mongoose@5.10.13
added 42 packages from 43 contributors, removed 16 packages, updated 50 packages and audited 1002 packages in 9.228s

28 packages are looking for funding
run `npm fund` for details

found 2 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details