adapt_authoring
adapt_authoring copied to clipboard
Server selection timed out mongo DB configuring master Tenant
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
}
I think this is an issue with mongo? https://github.com/Automattic/mongoose/issues/8381
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.
Change config file dbhost field to 127.0.0.1