Unable to connect from to atlas cluster from shell

Hi! I’m having trouble connection to my Atlas cluster from the Mongo shell.

I’m getting this error message when I try to connect:

2019-11-06T16:16:42.573-0800 E NETWORK  [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-11-06T16:16:42.586-0800 E NETWORK  [ReplicaSetMonitor-TaskExecutor-0] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-11-06T16:16:42.612-0800 E NETWORK  [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-11-06T16:16:42.613-0800 W NETWORK  [thread1] No primary detected for set Cluster0-shard-0
2019-11-06T16:16:42.613-0800 I NETWORK  [thread1] All nodes for set Cluster0-shard-0 are down. This has happened for 1 checks in a row.

MongoDB shell version v3.4.23

What is the status of your cluster in Atlas?
What connect string you have used
Are you able to ping your server
May be temporary n/w issue

Hi @robynm,

It looks like you are using an older version of MongoDB. Please make sure you have selected 3.4 or earlier from the dropdown in the Select your Mongo Shell version field.

Additionally, I will recommend you to install the latest version of the MongoDB Enterprise Server.

Hope it helps!

If the issue still persists then please feel free to get back to us.

Thanks,
Shubham Ranjan
Curriculum Support Engineer

This is the connection string I’m using (it’s for version 3.4):

mongo "mongodb://cluster0-shard-00-00-xtlmj.mongodb.net:27017,cluster0-shard-00-01-xtlmj.mongodb.net:27017,cluster0-shard-00-02-xtlmj.mongodb.net:27017/test?replicaSet=Cluster0-shard-0" --ssl --authenticationDatabase admin --username m001-student --password <password>

It looks like the cluster is paused in Atlas.

I’d prefer not to upgrade the version of mongo on my machine - it’s the version my team is using in production.

Try to install following the official documentation.
https://docs.mongodb.com/manual/administration/install-on-linux/

Hi @robynm,

Sorry for the delayed response. As I can see you have already completed the course with good grades. I hope you were able to connect to your cluster with the connection string for mongo shell version 3.4.

It’s fine. MongoDB 3.4 version has the SSL support which we need for connecting to the Atlas cluster.

If you have any other query then please feel free to get back to us.

Thanks,
Shubham Ranjan
Curriculum Support Engineer

Hi Shubham, thanks for responding. I just wanted to let you know for future reference that I did need to upgrade the version of mongo shell in order to connect. I was not able to get it working with v3.4.

Thanks,
Robyn

Hi @robynm,

Thanks for letting me know :slight_smile:

I hope you had an amazing learning experience. If in case you have any query, please feel free to get back to us.

Thanks,
Shubham Ranjan
Curriculum Support Engineer