MongoDB Topology Destroyed Error
You might want to update MongoDB driver's options:
{
keepAlive: 1,
connectTimeoutMS: 30000,
reconnectTries: 30,
reconnectInterval: 2000
}
Possibly related to sails-mongo configuration options.
devMongodbServer: { // connection name
port: 27017,
database: 'dev-mongodb-server',
poolSize: 5,
socketOptions: {
noDelay: true,
connectTimeoutMS: 0,
socketTimeoutMS: 0
}
}
Error: Error finding 4WrM_HqMMgCGF4_Xoz0vVqeSM9q8Nf9m: Topology was destroyed
at ~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/index.js:85:19
at handleCallback (~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/node_modules/mongodb/lib/utils.js:120:56)
at ~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/node_modules/mongodb/lib/collection.js:1416:28
at handleCallback (~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/node_modules/mongodb/lib/utils.js:120:56)
at ~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/node_modules/mongodb/lib/cursor.js:681:20
at nextFunction (~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/node_modules/mongodb-core/lib/cursor.js:540:16)
at Cursor.next [as _next] (~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/node_modules/mongodb-core/lib/cursor.js:692:3)
at nextObject (~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/node_modules/mongodb/lib/cursor.js:679:8)
at Cursor.next (~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/node_modules/mongodb/lib/cursor.js:269:12)
at findOne (~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/node_modules/mongodb/lib/collection.js:1415:10)
at Collection.findOne (~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/node_modules/mongodb/lib/collection.js:1401:44)
at Store.MongoDBStore.get (~/janus-project/janus-dashboard/src/node_modules/connect-mongodb-session/index.js:83:7)
at session (~/core.io-express-server/node_modules/express-session/index.js:460:11)
at Layer.handle [as handle_request] (~/core.io-express-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (~/core.io-express-server/node_modules/express/lib/router/index.js:312:13)
at ~/core.io-express-server/node_modules/express/lib/router/index.js:280:7
at Function.process_params (~/core.io-express-server/node_modules/express/lib/router/index.js:330:12)
at next (~/core.io-express-server/node_modules/express/lib/router/index.js:271:10)
at urlencodedParser (~/core.io-express-server/node_modules/body-parser/lib/types/urlencoded.js:91:7)
at Layer.handle [as handle_request] (~/core.io-express-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (~/core.io-express-server/node_modules/express/lib/router/index.js:312:13)
at ~/core.io-express-server/node_modules/express/lib/router/index.js:280:7
at Function.process_params (~/core.io-express-server/node_modules/express/lib/router/index.js:330:12)
at next (~/core.io-express-server/node_modules/express/lib/router/index.js:271:10)
at jsonParser (~/core.io-express-server/node_modules/body-parser/lib/types/json.js:103:7)
at Layer.handle [as handle_request] (~/core.io-express-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (~/core.io-express-server/node_modules/express/lib/router/index.js:312:13)
at ~/core.io-express-server/node_modules/express/lib/router/index.js:280:7
at Function.process_params (~/core.io-express-server/node_modules/express/lib/router/index.js:330:12)
at next (~/core.io-express-server/node_modules/express/lib/router/index.js:271:10)
at SendStream.error (~/core.io-express-server/node_modules/serve-static/index.js:121:7)
at emitOne (events.js:96:13)
at SendStream.emit (events.js:188:7)
at SendStream.error (~/core.io-express-server/node_modules/send/index.js:275:17)
at SendStream.onStatError (~/core.io-express-server/node_modules/send/index.js:392:12)
at next (~/core.io-express-server/node_modules/send/index.js:683:16)
at onstat (~/core.io-express-server/node_modules/send/index.js:672:14)
at FSReqWrap.oncomplete (fs.js:123:15)