Error connecting to Mongodb Atlas replicaset

Steven Hills shared this problem 7 years ago
Solved

Hi,


MongoBooster seems to be unable to connect to a Mongodb Atlas hosted replicaset (Version 3.4.2). The configuration is set from the URI which works fine in the mongoshell and a java client. The following error occurs:


  1. {
  2. "message" : "no valid replicaset members found",
  3. "name" : "MongoError",
  4. "stack" : "MongoError: no valid replicaset members found" +
  5. "at Timeout._onTimeout (<PATH>\\app-3.5.1\\resources\\app.asar\\node_modules\\mongodb-core\\lib\\topologies\\replset.js:653:33)" +
  6. "at tryOnTimeout (timers.js:232:11)" +
  7. "at Timer.listOnTimeout (timers.js:202:5)"
  8. }

Best Answer
photo

Thank you for your demo instance.

The issue is due to the outdated nodejs MongoDB driver. We upgrade the MongoDB driver to the latest 2.2.24. It works well.


Please download the test version and please give it a try.

https://s3.amazonaws.com/mongobooster/download/3.5/mongobooster-3.5.2.exe

Replies (6)

photo
1

Thank you for your feedback.


If possible, could you please give me an accessible MongoDB URI to allow me to recall the issue quickly?

photo
1

I've just setup a demo instance on Mongodb Atlas for you to test. Here is the connection URL:

mongodb://demo:TcYGc5Caj4PRLISz@cluster0-shard-00-00-pdyq0.mongodb.net:27017,cluster0-shard-00-01-pdyq0.mongodb.net:27017,cluster0-shard-00-02-pdyq0.mongodb.net:27017/demo?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin

Please let me know when you are done so I can remove it

photo
1

Thank you for your demo instance.

The issue is due to the outdated nodejs MongoDB driver. We upgrade the MongoDB driver to the latest 2.2.24. It works well.


Please download the test version and please give it a try.

https://s3.amazonaws.com/mongobooster/download/3.5/mongobooster-3.5.2.exe

photo
1

I've just tried the test version and it works perfectly now.

Many thanks for the quick turn around

photo
1

Any idea when the next release will be? For OSX?

photo
1

The version 3.5.2 released. Please download it from the download page.

https://www.mongobooster.com/downloads

Leave a Comment
 
Attach a file