No primary detected for set Cluster0-ravidbtestatlas-shard-0

Hello,
I am getting error while connectiong to my created cluster on atlas. Please try to help me.

error-mongo

Thanks

Hi ravi_44687,

There are few things that you can look for:

  • Check by pinging your cluster url from terminal to check if you can access it. Like:

      ping cluster0-ravidbtestatlas-shard-00-00-jqnco.mongodb.net
    

Interesting, but I am able to connect to the cluster using the below command.

   mongo "mongodb://cluster0-ravidbtestatlas-shard-00-00-jqnco.mongodb.net:27017,cluster0-ravidbtestatlas-shard-00-01-jqnco.mongodb.net:27017,cluster0-ravidbtestatlas-shard-00-02-jqnco.mongodb.net:27017" --ssl --username m001-student --password m001-mongodb-basics --authenticationDatabase admin

Please check for ssl issues on your system. Here is the JIRA ticket JIRA ticket that you can check.

Let me know if it does not work.

Kanika

Thanks for your support. It was mongodb version issue. Now i upgrade my mongodb and it work fine and i also completed my labs before due date. :stuck_out_tongue: Thanks . :slight_smile:

1 Like