adapt_authoring icon indicating copy to clipboard operation
adapt_authoring copied to clipboard

Server selection timed out mongo DB configuring master Tenant

Open davidcas9 opened this issue 4 years ago • 2 comments

I get this message when selecting the existing configuration upon running node install in the top level directory:

Now setting configuration items.
Now configuring the master tenant. 

error [24 Jan 21 14:33:51 -05:00] Server selection timed out after 30000 ms
error [24 Jan 21 14:33:51 -05:00] failed to set app.db

My config.json is:

{
  "outputPlugin": "adapt",
  "dbType": "mongoose",
  "auth": "local",
  "root": "/Users/me/adapt_authoring",
  "sessionSecret": "some_secret",
  "serverPort": 5000,
  "serverName": "localhost",
  "dataRoot": "data",
  "authoringToolRepository": "https://github.com/adaptlearning/adapt_authoring.git",
  "frameworkRepository": "https://github.com/adaptlearning/adapt_framework.git",
  "frameworkRevision": "tags/v5.10.0",
  "dbName": "adapt-tenant-master",
  "useConnectionUri": false,
  "dbHost": "localhost",
  "dbPort": 27017,
  "dbUser": "",
  "dbPass": "",
  "dbAuthSource": "",
  "useSmtp": false
}

davidcas9 avatar Jan 24 '21 19:01 davidcas9

I think this is an issue with mongo? https://github.com/Automattic/mongoose/issues/8381

davidcas9 avatar Jan 24 '21 19:01 davidcas9

I had the same issue. My localhost was resolving to ::1 (ipv6) and mongo was only listening on 127.0.0.1. Changing localhost to 127.0.0.1 resolved my issue.

nmbgeek avatar Feb 06 '24 00:02 nmbgeek

Change config file dbhost field to 127.0.0.1

oliverfoster avatar Apr 25 '24 22:04 oliverfoster