Unable to connect to Atlas cluster

Hi All,

I followed the steps to create a cluster on Atlas and also the steps to connect to it using mongo shell, however I am running into following error. Note that I am able to connect from Compass.

019-05-05T12:18:35.629-0700 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-05-05T12:18:35.802-0700 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-05-05T12:18:35.973-0700 E NETWORK [thread1] SSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
2019-05-05T12:18:35.974-0700 W NETWORK [thread1] No primary detected for set Cluster0-shard-0
2019-05-05T12:18:35.982-0700 E QUERY [thread1] Error: connect failed to replica set Cluster0-shard-0/cluster0-shard-00-00-zgusi.mongodb.net:27017,cluster0-shard-00-01-zgusi.mongodb.net:27017,cluster0-shard-00-02-zgusi.mongodb.net:27017 :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed

rajeshu-a01:bin rajeshu$ ./mongo --version
MongoDB shell version v3.4.20
git version: 447847d93d6e0a21b018d5df45528e815c7c13d8
OpenSSL version: OpenSSL 0.9.8zh 14 Jan 2016
allocator: system
modules: none
build environment:
distarch: x86_64
target_arch: x86_64

Never mind…I installed version 4.0.9 and I am now able to connect.

1 Like