When a Strategy user is trying to establish a connection between Collaboration Server and remote MongoDB that uses IPv6, the user receives an error message. The Collaboration Server returns the following error specifically:
Unhandled rejection Error: Unable to connect to MongoDB server: failed to connect to server [xxx:27217] on first connect [MongoError: getaddrinfo ENOTFOUND xxx:27217]
1. Setup a MongoDB with IPv6 by Default.
2. Establish the connection between Collaboration Server and MongoDB.
3. Once attempting to establish the connection, not the error message.
In order to avoid the error produced by the Collaboration Server, follow these next steps:
Try to remove admin elevation from the MongoDB’s url path in config.json file. To do this:
1. Access the config.json file for Collaboration Server.
2. Edit the value for "dburl" by removing “?authSource=admin” from the path.
3. Save the changes that you have made.
Have other questions? Feel free to start a discussion on Community or reach out to your Support liaison.