no primary found in replicaset or invalid replica set name

Hon Brenda shared this problem 4 years ago
Cannot Reproduce

Connecting Mongodb replica set using NoSQLBooster got below error

mongodb://pcf_9829cc463b4f050dc50f1544423e5ac7:59407d453ab5b8b78656ce105d18e06c@10.231.72.172:28000,10.231.72.173:28000,10.231.72.171:28000/default?authSource=admin&replicaSet=pcf_repl


{

"message" : "no primary found in replicaset or invalid replica set name",

"name" : "MongoError"

}

Replies (1)

photo
1

Can you connect successfully using MongoDB shell?

photo
1

Yes

photo
1

Can you try again using the following mongo URI?

mongodb://pcf_9829cc463b4f050dc50f1544423e5ac7:59407d453ab5b8b78656ce105d18e06c@10.231.72.172:28000/default?authSource=admin

And, can you give me the execution result of the following statement?

rs.conf()

Please also provide the following information


  • NoSQLBooster Version
  • Operating System (Windows/Mac/Ubuntu):
  • MongoDB Server Version
  • How to Reproduce (If possible, please give me the steps)

photo
Leave a Comment
 
Attach a file