Unable to connect Sandbox cluster from compass

I am trying to connect the Snadbox cluster with Compass but I am getting Authentication failed.

The password I entered is (m001-mongodb-basics).

13

14

Any Helps!!

Thanks,
Atul

Is your sandbox setup complete?
Are you able to connect from shell?
When i tried it says unable to reach any node
What does status show in atlas
Replicaset name is missing in your compass
2019-08-13T08:27:20.305+0530 W NETWORK [js] Unable to reach primary for set sandbox-shard-0
2019-08-13T08:27:20.308+0530 I NETWORK [js] Cannot reach any nodes for set sandbox-shard-0. Please check network connectivity and the status of the set. This has happened for 21 checks in a row.
2019-08-13T08:27:20.311+0530 E QUERY [js] Error: connect failed to replica set sandbox-shard-0/sandbox-shard-00-00-dg4qo.mongodb.net:27017,sandbox-shard-00-01-dg4qo.mongodb.net:27017,sandbox-shard-00-02-dg4qo.mongodb.net:27017 :

Hi @Ramachandra_37567,

I am sorry there was something else because of which I was getting the error.
I have created 2 projects in my Atlas and I was taking the connection string from my other project and in username and password I was entering from the M001 project, for the authentication.
I am able to connect now.

Thanks,
Atul

Hostname: cluster0-shard-00-00-jxeqq.mongodb.net
Port: 27017
Password: m001-mongodb-basics
Replica Set Name: Cluster0-shard-0
Read Preference: Primary Preferred

Please make sure you inserted all the field. Port Number field is not inserted as its in light grey colour. Please insert as mention above.

Please feel free to contact if you need any.

Regards,
Vikash

Thanks @VIKASH_74762 It’s working fine now it was my fault. I was copying the connection string from different project.
Thanks again for the help. :slight_smile:

1 Like