Give it a look at [plugin-session-sharing]:
Migrating to a new DB host - Can't connect, undefined
We are attempting to move our MongoDB install to a different server. I set that up and used
mongorestoreto restore a
mongodumpfrom the previous server. After that I changed the config.json to point to the new host, and I tried to connect.
node app.jsI get:
27/4 16:31  - info: NodeBB v1.4.0 Copyright (C) 2013-2017 NodeBB Inc. 27/4 16:31  - info: This program comes with ABSOLUTELY NO WARRANTY. 27/4 16:31  - info: This is free software, and you are welcome to redistribute it under certain conditions. 27/4 16:31  - info: 27/4 16:31  - info: Time: Thu Apr 27 2017 16:31:42 GMT-0400 (EDT) 27/4 16:31  - info: Initializing NodeBB v1.4.0 27/4 16:31  - error: NodeBB could not connect to your Mongo database. Mongo returned the following error: undefined 27/4 16:31  - error: err=socketHandler, trace=, bin=undefined, sizeOfMessage=1347703880, bytesRead=undefined, stubBuffer=undefined
What am I missing here?