Cannot connect to Atlas cluster anymore either from shell or apllictaion

MongoDB shell version v4.0.10
Enter password:
connecting to: mongodb://,,
2019-06-24T14:20:11.294+0530 I NETWORK  [js] Starting new replica set monitor for mflix-shard-0/,,
2019-06-24T14:20:21.520+0530 W NETWORK  [ReplicaSetMonitor-TaskExecutor] Unable to reach primary for set mflix-shard-0
2019-06-24T14:20:34.011+0530 I NETWORK  [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set mflix-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.

*** It looks like this is a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.

2019-06-24T14:20:34.011+0530 E QUERY    [js] Error: connect failed to replica set mflix-shard-0/,, :
exception: connect failed

My IP Whiteluist is set to everywhere

Hi @Karthik781,

I am able to connect using the below command, can you please give it a try?

 mongo mongodb+srv://

If you are still unable to connect, please make sure your firewall/anti-virus is off.


1 Like