Cannot reach any nodes

I get the following when I try to connect to my cluster:

Cannot reach any nodes for set Sandbox-shard-0. Please check network connectivity and the status of the set.

In Atlas my nodes all have the warning icon next to them but I can’t find any information about what is actually wrong

Have you followed the exact instructions? because for me it’s all working fine and I’ve finished this section successfully as well, with no bugs or errors.

Let me know if I can help you with anything, I’m on Mac by the way.

Cheers,
Yassnie

@Joseph_92287 Are you trying to connect with Compass or MongoDB shell?

  1. If so double check your connection values in Compass if using compass

  2. If the latter, can you post the connection string value you used.

  3. Provide any screen shots and or error messages that might provide further details of your issue (for 1 or 2).

HTH,
Mike

I am facing this same issue right now…

This is my output:
prasanjitsmbp2:~ prasanjitkhuntia$ mongo “mongodb://sandbox-shard-00-00-izccx.mongodb.net:27017,sandbox-shard-00-01-izccx.mongodb.net:27017,sandbox-shard-00-02-izccx.mongodb.net:27017/test?replicaSet=Sandbox-shard-0” --ssl --authenticationDatabase admin --username m001-student --password m001-mongodb-basics
MongoDB shell version v3.4.4
connecting to: mongodb://sandbox-shard-00-00-izccx.mongodb.net:27017,sandbox-shard-00-01-izccx.mongodb.net:27017,sandbox-shard-00-02-izccx.mongodb.net:27017/test?replicaSet=Sandbox-shard-0
2019-01-21T23:46:55.239-0600 I NETWORK [thread1] Starting new replica set monitor for Sandbox-shard-0/sandbox-shard-00-00-izccx.mongodb.net:27017,sandbox-shard-00-01-izccx.mongodb.net:27017,sandbox-shard-00-02-izccx.mongodb.net:27017
2019-01-21T23:46:55.562-0600 E NETWORK [ReplicaSetMonitor-TaskExecutor-0] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:55.562-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:55.910-0600 E NETWORK [ReplicaSetMonitor-TaskExecutor-0] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:55.911-0600 W NETWORK [ReplicaSetMonitor-TaskExecutor-0] No primary detected for set Sandbox-shard-0
2019-01-21T23:46:55.911-0600 I NETWORK [ReplicaSetMonitor-TaskExecutor-0] All nodes for set Sandbox-shard-0 are down. This has happened for 1 checks in a row.
2019-01-21T23:46:56.494-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:56.587-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:56.676-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:56.676-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:46:56.676-0600 I NETWORK [thread1] All nodes for set Sandbox-shard-0 are down. This has happened for 2 checks in a row.
2019-01-21T23:46:57.266-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:57.356-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:57.448-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:57.448-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:46:57.448-0600 I NETWORK [thread1] All nodes for set Sandbox-shard-0 are down. This has happened for 3 checks in a row.
2019-01-21T23:46:58.041-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:58.127-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:58.216-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:58.216-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:46:58.216-0600 I NETWORK [thread1] All nodes for set Sandbox-shard-0 are down. This has happened for 4 checks in a row.
2019-01-21T23:46:58.817-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:58.912-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:59.000-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:59.000-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:46:59.000-0600 I NETWORK [thread1] All nodes for set Sandbox-shard-0 are down. This has happened for 5 checks in a row.
2019-01-21T23:46:59.596-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:59.686-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:59.774-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:46:59.775-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:46:59.775-0600 I NETWORK [thread1] All nodes for set Sandbox-shard-0 are down. This has happened for 6 checks in a row.
2019-01-21T23:47:00.365-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:00.453-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:00.545-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:00.545-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:47:00.546-0600 I NETWORK [thread1] All nodes for set Sandbox-shard-0 are down. This has happened for 7 checks in a row.
2019-01-21T23:47:01.132-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:01.224-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:01.314-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:01.315-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:47:01.315-0600 I NETWORK [thread1] All nodes for set Sandbox-shard-0 are down. This has happened for 8 checks in a row.
2019-01-21T23:47:01.894-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:01.989-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:02.080-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:02.080-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:47:02.080-0600 I NETWORK [thread1] All nodes for set Sandbox-shard-0 are down. This has happened for 9 checks in a row.
2019-01-21T23:47:02.668-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:02.763-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:02.856-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:02.856-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:47:02.856-0600 I NETWORK [thread1] All nodes for set Sandbox-shard-0 are down. This has happened for 10 checks in a row.
2019-01-21T23:47:03.446-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:03.583-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:03.674-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:03.674-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:47:03.674-0600 I NETWORK [thread1] All nodes for set Sandbox-shard-0 are down. This has happened for 11 checks in a row.
2019-01-21T23:47:04.261-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:04.388-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:04.486-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:04.486-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:47:05.076-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:05.212-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:05.305-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:05.305-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:47:06.021-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:06.330-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:06.445-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:06.445-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:47:07.244-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:07.591-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:07.807-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:07.808-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:47:08.567-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:08.740-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:08.961-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:08.962-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:47:09.554-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:09.648-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:09.742-0600 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-01-21T23:47:09.742-0600 W NETWORK [thread1] No primary detected for set Sandbox-shard-0
2019-01-21T23:47:09.745-0600 E QUERY [thread1] Error: connect failed to replica set Sandbox-shard-0/sandbox-shard-00-00-izccx.mongodb.net:27017,sandbox-shard-00-01-izccx.mongodb.net:27017,sandbox-shard-00-02-izccx.mongodb.net:27017 :
connect@src/mongo/shell/mongo.js:237:13
@(connect):1:6
exception: connect failed

Looking at the error messages, it seems like all the nodes are down.
I am connecting via the Shell (3.4.4)
What should be the resolution? I am stuck and unable to complete the labs.

Working for me

vagrant@m103:/dataset$ mongo mongodb://sandbox-shard-00-00-izccx.mongodb.net:27017,sandbox-shard-00-01-izccx.mongodb.net:27017,sandbox-shard-00-02-izccx.mongodb.net:27017/test?replicaSet=Sandbox-shard-0 --ssl --authenticationDatabase admin --username m001-student --password m001-mongodb-basics
MongoDB shell version v3.6.9
connecting to: mongodb://sandbox-shard-00-00-izccx.mongodb.net:27017,sandbox-shard-00-01-izccx.mongodb.net:27017,sandbox-shard-00-02-izccx.mongodb.net:27017/test?replicaSet=Sandbox-shard-0
2019-01-22T07:50:51.572+0000 I NETWORK [thread1] Starting new replica set monitor for Sandbox-shard-0/sandbox-shard-00-00-izccx.mongodb.net:27017,sandbox-shard-00-01-izccx.mongodb.net:27017,sandbox-shard-00-02-izccx.mongodb.net:27017
2019-01-22T07:50:52.879+0000 I NETWORK [thread1] Successfully connected to sandbox-shard-00-00-izccx.mongodb.net:27017 (1 connections now open to sandbox-shard-00-00-izccx.mongodb.net:27017 with a 5 second timeout)
2019-01-22T07:50:53.037+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor-0] Successfully connected to sandbox-shard-00-01-izccx.mongodb.net:27017 (1 connections now open to sandbox-shard-00-01-izccx.mongodb.net:27017 with a 5 second timeout)
2019-01-22T07:50:54.450+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor-0] Successfully connected to sandbox-shard-00-02-izccx.mongodb.net:27017 (1 connections now open to sandbox-shard-00-02-izccx.mongodb.net:27017 with a 5 second timeout)
Implicit session: session { “id” : UUID(“74f2b17f-3eb0-4a9f-b472-8caf4878beb3”) }
MongoDB server version: 4.0.5
WARNING: shell and server versions do not match
Error while trying to show server startup warnings: user is not allowed to do action [getLog] on [admin.]
MongoDB Enterprise Sandbox-shard-0:PRIMARY> db
test
MongoDB Enterprise Sandbox-shard-0:PRIMARY>
MongoDB Enterprise Sandbox-shard-0:PRIMARY> use admin
switched to db admin
MongoDB Enterprise Sandbox-shard-0:PRIMARY> show dbs
admin 0.000GB
local 1.614GB
MongoDB Enterprise Sandbox-shard-0:PRIMARY>