Not able to connect to sandbox cluster

i am able to connect to class 1 cluster but not able to connect to sandbox cluster, ggetting the below error, any suggestions

C:\WINDOWS\system32>mongo “mongodb://phani-m001-shard-00-00-xidai.mongodb.net:27017,phani-m001-shard-00-01-xidai.mongodb.net:27017,phani-m001-shard-00-02-xidai.mongodb.net:27017/test?replicaSet=phani-m001-shard-0” --ssl --authenticationDatabase admin --username m001-student --password m001-mongodb-basics
MongoDB shell version: 3.2.9
connecting to: mongodb://phani-m001-shard-00-00-xidai.mongodb.net:27017,phani-m001-shard-00-01-xidai.mongodb.net:27017,phani-m001-shard-00-02-xidai.mongodb.net:27017/test?replicaSet=phani-m001-shard-0
2019-06-10T11:49:48.249+0530 I NETWORK [thread1] Starting new replica set monitor for phani-m001-shard-0/phani-m001-shard-00-00-xidai.mongodb.net:27017,phani-m001-shard-00-01-xidai.mongodb.net:27017,phani-m001-shard-00-02-xidai.mongodb.net:27017
2019-06-10T11:49:48.259+0530 I NETWORK [ReplicaSetMonitorWatcher] starting
2019-06-10T11:49:53.501+0530 W NETWORK [thread1] No primary detected for set phani-m001-shard-0
2019-06-10T11:49:53.501+0530 I NETWORK [thread1] All nodes for set phani-m001-shard-0 are down. This has happened for 1 checks in a row. Polling will stop after 29 more failed checks
2019-06-10T11:49:55.037+0530 W NETWORK [thread1] No primary detected for set phani-m001-shard-0
2019-06-10T11:49:55.037+0530 I NETWORK [thread1] All nodes for set phani-m001-shard-0 are down. This has happened for 2 checks in a row. Polling will stop after 28 more failed checks
2019-06-10T11:49:56.470+0530 W NETWORK [thread1] No primary detected for set phani-m001-shard-0
2019-06-10T11:49:56.471+0530 I NETWORK [thread1] All nodes for set phani-m001-shard-0 are down. This has happened for 3 checks in a row. Polling will stop after 27 more failed checks
2019-06-10T11:49:58.109+0530 W NETWORK [thread1] No primary detected for set phani-m001-shard-0
2019-06-10T11:49:58.110+0530 I NETWORK [thread1] All nodes for set phani-m001-shard-0 are down. This has happened for 4 checks in a row. Polling will stop after 26 more failed checks
2019-06-10T11:49:58.929+0530 W NETWORK [ReplicaSetMonitorWatcher] No primary detected for set phani-m001-shard-0
2019-06-10T11:49:58.929+0530 I NETWORK [ReplicaSetMonitorWatcher] All nodes for set phani-m001-shard-0 are down. This has happened for 5 checks in a row. Polling will stop after 25 more failed checks
2019-06-10T11:50:00.663+0530 W NETWORK [thread1] No primary detected for set phani-m001-shard-0
2019-06-10T11:50:00.663+0530 I NETWORK [thread1] All nodes for set phani-m001-shard-0 are down. This has happened for 6 checks in a row. Polling will stop after 24 more failed checks
2019-06-10T11:50:02.205+0530 W NETWORK [thread1] No primary detected for set phani-m001-shard-0
2019-06-10T11:50:02.206+0530 I NETWORK [thread1] All nodes for set phani-m001-shard-0 are down. This has happened for 7 checks in a row. Polling will stop after 23 more failed checks
2019-06-10T11:50:03.741+0530 W NETWORK [thread1] No primary detected for set phani-m001-shard-0
2019-06-10T11:50:03.742+0530 I NETWORK [thread1] All nodes for set phani-m001-shard-0 are down. This has happened for 8 checks in a row. Polling will stop after 22 more failed checks
2019-06-10T11:50:03.749+0530 E QUERY [thread1] Error: connect failed to replica set phani-m001-shard-0/phani-m001-shard-00-00-xidai.mongodb.net:27017,phani-m001-shard-00-01-xidai.mongodb.net:27017,phani-m001-shard-00-02-xidai.mongodb.net:27017 :
connect@src/mongo/shell/mongo.js:223:14
@(connect):1:6

exception: connect failed

i checked all the ping status of 3 replica sets all are working fine.

Hi @Phani_31611,

Please follow these steps:

  1. Login into your Atlas account.
  2. Click the Connect button. and then choose the Connect with the Mongo Shell.
  3. Choose the I have Mongo Shell installed option and select the mongo shell version 3.6 or later.
  4. Then copy the connection string and connect through the mongo shell.

I hope it helps!!

Please let me know, if you still face any issues.

Thanks,
Sonali

Hi,

I’m facing the same issue. I went through many posts and tried everything but nothing works. I am able to connect to class 1 cluster from my shell (my shell version id 3.2.22). Also, I am able to connect to my sandbox cluster from compass.
I get the same error:

connecting to: mongodb://sandbox-shard-00-00-g7q51.mongodb.net:27017,sandbox-shard-00-01-g7q51.mongodb.net:27017,sandbox-shard-00-02-g7q51.mongodb.net:27017/test?replicaSet=Sandbox-shard-0
2019-12-24T08:12:52.636-0500 I NETWORK  [thread1] Starting new replica set monitor for Sandbox-shard-0/sandbox-shard-00-00-g7q51.mongodb.net:27017,sandbox-shard-00-01-g7q51.mongodb.net:27017,sandbox-shard-00-02-g7q51.mongodb.net:27017
2019-12-24T08:12:52.636-0500 I NETWORK  [ReplicaSetMonitorWatcher] starting
2019-12-24T08:12:53.061-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:12:53.961-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:12:54.852-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:12:55.750-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:12:56.635-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:12:57.529-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:12:58.412-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:12:59.312-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:13:00.225-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:13:01.121-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:13:02.041-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:13:02.812-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:13:03.727-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:13:04.620-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:13:05.528-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:13:06.417-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:13:07.317-0500 W NETWORK  [thread1] No primary detected for set Sandbox-shard-0
2019-12-24T08:13:07.318-0500 E QUERY    [thread1] Error: connect failed to replica set Sandbox-shard-0/sandbox-shard-00-00-g7q51.mongodb.net:27017,sandbox-shard-00-01-g7q51.mongodb.net:27017,sandbox-shard-00-02-g7q51.mongodb.net:27017 :
connect@src/mongo/shell/mongo.js:223:14
@(connect):1:6

exception: connect failed

Are you still facing the issue?
I can connect to your cluster
What connect string you have used?
May be it was a temporary n/w issue

It’s fixed now. I had to upgrade my mongo shell version to the latest one. Maybe the older versions have issues.

Closing the thread as the issue has been resolved.