S
S
Sergey Beloventsev2017-07-26 21:45:07
MongoDB
Sergey Beloventsev, 2017-07-26 21:45:07

How to connect with mongo atlas?

Created a cluster in mongo atlas to take lessons at mongo university . I set this ip 0.0.0.0/0 (includes your current IP address) in Security to connect everyone. trying to connect via mongo shell

mongo "mongodb://cluster0-shard-00-00-h9e5a.mongodb.net:27017,cluster0-shard-00-01-h9e5a.mongodb.net:27017,cluster0-shard-00-02-h9e5a.mongodb.net:27017/test?replicaSet=Cluster0-shard-0" --authenticationDatabase admin --ssl --username m001-studen --password  m001-mongodb-basics

I get an error
[ReplicaSetMonitorWatcher] starting
2017-07-26T21:34:34.579+0300 W NETWORK  [thread1] No primary detected for set Cluster0-shard-0
2017-07-26T21:34:37.214+0300 W NETWORK  [thread1] No primary detected for set Cluster0-shard-0
2017-07-26T21:34:39.821+0300 W NETWORK  [thread1] No primary detected for set Cluster0-shard-0
2017-07-26T21:34:42.415+0300 W NETWORK  [thread1] No primary detected for set Cluster0-shard-0
2017-07-26T21:34:44.984+0300 W NETWORK  [thread1] No primary detected for set Cluster0-shard-0
2017-07-26T21:34:47.525+0300 W NETWORK  [thread1] No primary detected for set Cluster0-shard-0
2017-07-26T21:34:47.525+0300 E QUERY    [thread1] Error: connect failed to replica set Cluster0-shard-0/cluster0-shard-00-00-h9e5a.mongodb.net:27017,cluster0-shard-00-01-h9e5a.mongodb.net:27017,cluster0-shard-00-02-h9e5a.mongodb.net:27017 :
[email protected]/mongo/shell/mongo.js:223:14

I go through the compass, I get the input as a secondary question, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question