Picture of si yifan
Question:Server selection timed out after 30000 ms
by si yifan - Sunday, 1 March 2020, 9:31 AM
 

I encountered an unsolvable problem when installing adapt: I always get an error when I go to the 'node install' step under the macOS system. The following shows the detailed error information. Are there any professionals who can answer this question?

details:

(base) appledeMacBook-Pro-2:adapt_authoring-master apple$ node install

 

Found an existing config.json file. Do you want to use the values in this file during install?

> Use existing config values? y/N (N) 

 

This script will install the application. 

Would you like to continue?

> Continue? Y/n (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) 

> 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.1.0) 

> Master database name (adapt-tenant-master) 

> Will you be using a full database connection URI? (all connection options in the URI) y/N (N) 

> 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) y/N (N) 

Now we need to configure the master tenant. 

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

 

error [01 Mar 20 17:17:10 +08:00] Server selection timed out after 30000 ms

error [01 Mar 20 17:17:10 +08:00] failed to set app.db

 


mongo details:

mongo details

 

Picture of Mike Stevens
Re: Question:Server selection timed out after 30000 ms
by Mike Stevens - Monday, 2 March 2020, 2:23 PM
 

On the Mac system instead of node server try sudo node server. See if that works and make sure to enter your computer password. 

I had to use sudo to get it to work on my mac at home. 

Picture of Mike Stevens
Re: Question:Server selection timed out after 30000 ms
by Mike Stevens - Monday, 2 March 2020, 3:35 PM
 

Sorry I meant "sudo node install" not "sudo node server"

Picture of Matt Leathes
Re: Question:Server selection timed out after 30000 ms
by Matt Leathes - Monday, 2 March 2020, 6:36 PM
 

protip: if you forget to prefix a command with sudo you can do this:

sudo !!

(re-run last command with sudo privileges)

Proper User Policy apparently means Simon Says.

Picture of James Parker
Re: Question:Server selection timed out after 30000 ms
by James Parker - Thursday, 5 March 2020, 1:04 PM
 

Hello,

I am having a similar issue but I probably overuse sudo rather than under use it so I'm not sure that is my problem. I think it's a database issue in my case, but it's so long since I've set anything like this up I might be a little out of touch.

Cheers!