Lab: Connect to your Atlas Cluster

I’m trying to connect but I keep getting this error!!! I used mongodb compass and I was able to connect. Not sure why this fucking terminal won’t let me connect!

ongodb+srv://cluster0.dvzjc.mongodb.net:27017/local"
MongoDB shell version v4.0.5
Enter password:
connecting to: mongodb://cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017/local?authSource=admin&gssapiServiceName=mongodb&replicaSet=atlas-f03yfs-shard-0&ssl=true
2020-11-09T22:09:29.270+0000 I NETWORK [js] Starting new replica set monitor for atlas-f03yfs-shard-0/cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017
2020-11-09T22:09:29.812+0000 W NETWORK [ReplicaSetMonitor-TaskExecutor] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:29.812+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.
2020-11-09T22:09:30.945+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:30.945+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 2 checks in a row.

Summary

2020-11-09T22:09:32.126+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:32.126+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 3 checks in a row.
2020-11-09T22:09:33.360+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:33.360+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 4 checks in a row.
2020-11-09T22:09:34.501+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:34.501+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 5 checks in a row.
2020-11-09T22:09:35.703+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:35.703+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 6 checks in a row.
2020-11-09T22:09:36.843+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:36.843+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 7 checks in a row.
2020-11-09T22:09:38.034+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:38.034+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 8 checks in a row.
2020-11-09T22:09:39.146+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:39.146+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 9 checks in a row.
2020-11-09T22:09:40.335+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:40.335+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 10 checks in a row.
2020-11-09T22:09:41.447+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:41.447+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 11 checks in a row.
2020-11-09T22:09:42.607+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:43.775+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:09:43.776+0000 E QUERY [js] Error: connect failed to replica set atlas-f03yfs-shard-0/cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed
ongodb+srv://cluster0.dvzjc.mongodb.net:27017/admin"
MongoDB shell version v4.0.5
Enter password:
connecting to: mongodb://cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017,cluster0-shard-00-02.dvzjc.mongodb.net.:27017/admin?authSource=admin&gssapiServiceName=mongodb&replicaSet=atlas-f03yfs-shard-0&ssl=true
2020-11-09T22:11:21.574+0000 I NETWORK [js] Starting new replica set monitor for atlas-f03yfs-shard-0/cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017,cluster0-shard-00-02.dvzjc.mongodb.net.:27017
2020-11-09T22:11:22.097+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:22.097+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.
2020-11-09T22:11:23.204+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:23.204+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 2 checks in a row.
2020-11-09T22:11:24.338+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:24.338+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 3 checks in a row.
2020-11-09T22:11:25.497+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:25.497+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 4 checks in a row.
2020-11-09T22:11:26.679+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:26.679+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 5 checks in a row.
2020-11-09T22:11:27.835+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:27.835+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 6 checks in a row.
2020-11-09T22:11:29.000+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:29.000+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 7 checks in a row.
2020-11-09T22:11:30.177+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:30.177+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 8 checks in a row.
2020-11-09T22:11:31.356+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:31.356+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 9 checks in a row.
2020-11-09T22:11:32.538+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:32.538+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 10 checks in a row.
2020-11-09T22:11:33.666+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:33.666+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 11 checks in a row.
2020-11-09T22:11:34.825+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:35.957+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:11:37.115+0000 W NETWORK [js] Unable to
<ongodb+srv://cluster0.dvzjc.mongodb.net/27017" --use>
MongoDB shell version v4.0.5
Enter password:
connecting to: mongodb://cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017,cluster0-shard-00-02.dvzjc.mongodb.net.:27017/27017?authSource=admin&gssapiServiceName=mongodb&replicaSet=atlas-f03yfs-shard-0&ssl=true
2020-11-09T22:12:58.624+0000 I NETWORK [js] Starting new replica set monitor for atlas-f03yfs-shard-0/cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017,cluster0-shard-00-02.dvzjc.mongodb.net.:27017
2020-11-09T22:12:59.151+0000 W NETWORK [ReplicaSetMonitor-TaskExecutor] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:12:59.151+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.
2020-11-09T22:13:00.314+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:00.314+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 2 checks in a row.
2020-11-09T22:13:01.472+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:01.472+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 3 checks in a row.
2020-11-09T22:13:02.647+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:02.647+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 4 checks in a row.
2020-11-09T22:13:03.777+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:03.777+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 5 checks in a row.
2020-11-09T22:13:04.915+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:04.915+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 6 checks in a row.
2020-11-09T22:13:06.075+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:06.075+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 7 checks in a row.
2020-11-09T22:13:07.233+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:07.233+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 8 checks in a row.
2020-11-09T22:13:08.370+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:08.370+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 9 checks in a row.
2020-11-09T22:13:09.480+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:09.481+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 10 checks in a row.
2020-11-09T22:13:10.667+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:10.667+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 11 checks in a row.
2020-11-09T22:13:11.928+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:13.066+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:14.229+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:13:14.229+0000 E QUERY [js] Error: connect failed to replica set atlas-f03yfs-shard-0/cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017,cluster0-shard-00-02.dvzjc.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed
<ongodb+srv://cluster0.dvzjc.mongodb.net/local" --use>
MongoDB shell version v4.0.5
Enter password:
connecting to: mongodb://cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017/local?authSource=admin&gssapiServiceName=mongodb&replicaSet=atlas-f03yfs-shard-0&ssl=true
2020-11-09T22:20:12.685+0000 I NETWORK [js] Starting new replica set monitor for atlas-f03yfs-shard-0/cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017
2020-11-09T22:20:13.191+0000 W NETWORK [ReplicaSetMonitor-TaskExecutor] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:13.191+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.
2020-11-09T22:20:14.391+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:14.391+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 2 checks in a row.
2020-11-09T22:20:15.524+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:15.524+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 3 checks in a row.
2020-11-09T22:20:16.685+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:16.685+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 4 checks in a row.
2020-11-09T22:20:17.875+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:17.875+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 5 checks in a row.
2020-11-09T22:20:19.064+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:19.064+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 6 checks in a row.
2020-11-09T22:20:20.244+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:20.244+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 7 checks in a row.
2020-11-09T22:20:21.402+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:21.403+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 8 checks in a row.
2020-11-09T22:20:22.587+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:22.587+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 9 checks in a row.
2020-11-09T22:20:23.748+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:23.748+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 10 checks in a row.
2020-11-09T22:20:24.931+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:24.931+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 11 checks in a row.
2020-11-09T22:20:26.082+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:27.248+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:20:27.248+0000 E QUERY [js] Error: connect failed to replica set atlas-f03yfs-shard-0/cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed
bash-4.4# version
bash: version: command not found
bash-4.4# mongo version
MongoDB shell version v4.0.5
connecting to: mongodb://127.0.0.1:27017/version?gssapiServiceName=mongodb
2020-11-09T22:22:21.671+0000 E QUERY [js] Error: couldn’t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed
bash-4.4# mongo – version
MongoDB shell version v4.0.5
connecting to: mongodb://127.0.0.1:27017/version?gssapiServiceName=mongodb
2020-11-09T22:22:56.120+0000 E QUERY [js] Error: couldn’t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed
<ongodb+srv://cluster0.dvzjc.mongodb.net:27017" --use>
MongoDB shell version v4.0.5
Enter password:
connecting to: mongodb://cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017/?authSource=admin&gssapiServiceName=mongodb&replicaSet=atlas-f03yfs-shard-0&ssl=true
2020-11-09T22:25:15.082+0000 I NETWORK [js] Starting new replica set monitor for atlas-f03yfs-shard-0/cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017
2020-11-09T22:25:15.623+0000 W NETWORK [ReplicaSetMonitor-TaskExecutor] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:15.623+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.
2020-11-09T22:25:16.802+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:16.802+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 2 checks in a row.
2020-11-09T22:25:17.980+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:17.981+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 3 checks in a row.
2020-11-09T22:25:19.156+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:19.156+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 4 checks in a row.
2020-11-09T22:25:20.315+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:20.315+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 5 checks in a row.
2020-11-09T22:25:21.502+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:21.502+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 6 checks in a row.
2020-11-09T22:25:22.617+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:22.617+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 7 checks in a row.
2020-11-09T22:25:23.793+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:23.793+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 8 checks in a row.
2020-11-09T22:25:24.971+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:24.972+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 9 checks in a row.
2020-11-09T22:25:26.128+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:26.128+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 10 checks in a row.
2020-11-09T22:25:27.286+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:27.286+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 11 checks in a row.
2020-11-09T22:25:28.439+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:29.625+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:25:29.625+0000 E QUERY [js] Error: connect failed to replica set atlas-f03yfs-shard-0/cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017,cluster0-shard-00-01.dvzjc.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed
<b.net:27017" --username m001-student
MongoDB shell version v4.0.5
Enter password:
connecting to: mongodb://cluster0-shard-00-01.dvzjc.mongodb.net.:27017,cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017/?authSource=admin&gssapiServiceName=mongodb&replicaSet=atlas-f03yfs-shard-0&ssl=true
2020-11-09T22:26:26.120+0000 I NETWORK [js] Starting new replica set monitor for atlas-f03yfs-shard-0/cluster0-shard-00-01.dvzjc.mongodb.net.:27017,cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017
2020-11-09T22:26:26.604+0000 W NETWORK [ReplicaSetMonitor-TaskExecutor] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:26.604+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.
2020-11-09T22:26:27.738+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:27.738+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 2 checks in a row.
2020-11-09T22:26:28.894+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:28.894+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 3 checks in a row.
2020-11-09T22:26:30.050+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:30.050+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 4 checks in a row.
2020-11-09T22:26:31.156+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:31.156+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 5 checks in a row.
2020-11-09T22:26:32.318+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:32.318+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 6 checks in a row.
2020-11-09T22:26:33.428+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:33.429+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 7 checks in a row.
2020-11-09T22:26:34.586+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:34.586+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 8 checks in a row.
2020-11-09T22:26:35.739+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:35.739+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 9 checks in a row.
2020-11-09T22:26:36.942+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:36.942+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 10 checks in a row.
2020-11-09T22:26:38.124+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:38.124+0000 I NETWORK [js] Cannot reach any nodes for set atlas-f03yfs-shard-0. Please check network connectivity and the status of the set. This has happened for 11 checks in a row.
2020-11-09T22:26:39.282+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:40.395+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0
2020-11-09T22:26:41.582+0000 W NETWORK [js] Unable to reach primary for set atlas-f03yfs-shard-0

2020-11-09T22:26:41.582+0000 E QUERY [js] Error: connect failed to replica set atlas-f03yfs-shard-0/cluster0-shard-00-01.dvzjc.mongodb.net.:27017,cluster0-shard-00-02.dvzjc.mongodb.net.:27017,cluster0-shard-00-00.dvzjc.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed

Have you whitelisted your IP?

I can connect to your cluster.No issues

Or it could be your network not supporting SRV string
Use google DNS
Please search our forum threads

Figured it out. Didn’t have the IP connection to anywhere before.

1 Like

Jean,
as you said i did that but it is giving cluster name error

it is not connecting to Cluster name giving fail massage to connect.
plz someone help me

What is the exact error?
Please provide a screenshot

is it okay to proceed when the instructions given they are using Sandbox version 4.2.8, but mine is Sandbox version 4.2.10 and i didn’t get the same logical size as shown in the Sandbox version 4.2.8

Should be good. If something does not work as expected, fear not to ask questions here.

1 Like

Hi @Shri_Biyani,

Please share the information requested by @Ramachandra_37567 so that we can help you out.