Robomongo: [1.0 RC1] Can't connect to replica set to MongoDB Atlas Cluster 3.4

Created on 8 Mar 2017  ·  28Comments  ·  Source: Studio3T/robomongo

I'm having trouble connecting Robomongo 1.0 RC1 to a 3-node replica set on MongoDB Atlas. I'm running Mac OS X 10.12.3. The blog post for the 1.0 RC1 release shows a screenshot of Robomongo connected to an Atlas replica set, but I am not able to get it to work. Robomongo gives this error:SSL connection failure:

For what it's worth, I _am_ able to import data into Atlas from the Terminal via this command (sensitive details changed):

mongorestore --host cluster0-shard-00-00-fgrio.mongodb.net --port 27017 --username my_username --password my_password_here --db db_name --authenticationDatabase admin --ssl --collection MyRecord --drop MyRecord.bson

Below are the screenshots of my Robomongo configuration (again, sensitive details changed):

screen shot 2017-03-07 at 10 41 41 pm

screen shot 2017-03-07 at 10 41 51 pm

screen shot 2017-03-07 at 10 41 57 pm

screen shot 2017-03-07 at 10 42 04 pm

screen shot 2017-03-07 at 10 42 11 pm

critical-connectivity feature-request works as designed

Most helpful comment

I found that the Set Name is not optional for MongoDB Atlas Cluster. Also, the way @jeebb puts it, didn't work for me. Turns out my replicaSet name was not called the same as the cluster members prefix. I found the correct one on any of the connect strings that Atlas gives.

They can be found as @vahapgencdal says on:
->clustors page and find overview tab
than click connect button.
any of the options have a replicaSet= parameter

All 28 comments

Hi @zachrattner , thanks for reporting the problem.

Can you make sure and try with the following suggestions?

  • Use a user with Atlas Admin privileges as shown in the screenshots.
  • Try removing default database option on last tab.

(My second suggestion will be entering set name manually in config file. But let's try that later.
I will guide you about that depending on result of current suggestions.)

1

screenhunter_62 mar 09 09 35

2

screenhunter_61 mar 09 09 34

Thanks @simsekgokhan. I did both suggestions but to no avail:

  1. I changed the user I was connecting as to an Atlas admin
  2. I removed the default database

Atlas screenshot:
screen_shot_2017-03-08_at_10_47_02_pm

Error message from Robomongo (after waiting a few minutes for Atlas changes to propagate):
screen shot 2017-03-08 at 10 47 10 pm

I think it's worth adding that I tried both connecting to the replica set and directly to the primary node. Both options are giving the same SSL connection failure message.

Yes, it is useful information. Any chance you are using Atlas free cluster which is MongoDB 3.4?
Robomongo does not support it yet. (Note: 3.4 support will be the most prior task after a minor release soon)

Secondly, can you connect via terminal using mongo executable?

Example:
mongo "mongodb://cluster0-shard-00-00-f8axx.mongodb.net:27017,cluster0-shard-00-01-f8axx.mongodb.net:27017,cluster0-shard-00-02-f8axx.mongodb.net:27017/DATABASE?replicaSet=Cluster0-shard-0" --ssl

Aah, thanks @simsekgokhan that's the issue. It seems free tier deployments use v3.4 and I'm not sure how to downgrade (contacted Atlas support to see if it is possible).

Thanks for the update. Looking forward to seeing v3.4 support in Robomongo.

Yes, I am able to connect via the command line.

>> mongo --version
MongoDB shell version v3.4.2

For news about 3.4 support, you can follow us twitter https://twitter.com/Robomongo and/or follow this ticket: https://github.com/paralect/robomongo/issues/1250

I will close this issue. Feel free to re-open for any reason.

Thanks @simsekgokhan! Works great for me.

Hey @zachrattner ,

What settings did you use? I'm not able to connect using RoboMongo 1.1.

Thanks!

Hi @jeanphameldo , are you trying to connect to Mongo Atlas 3.4 free cluster?
You should enter your cluster members correctly, user/pw into authentication tab and enable SSL with basic setting then it should connect.

Can you share your settings or the error screenshot you are getting?

Hi @simsekgokhan, I have the same problem connecting to my MongoDB Atlas Cluster (v 3.2.13)
Just installed Robo3T 1.1 and removed all previous versions of Robomongo. Also, created a new user in MongoDB Atlas with Admin permissions.

Below are the screenshots:
robo3tv1 1-issue-01
robo3tv1 1-issue-02
robo3tv1 1-issue-03
robo3tv1 1-issue-04
robo3tv1 1-issue-05
robo3tv1 1-issue-06

With the above config, 'my-cluster', 'unique-id' and 'my-admin' were replaced with actual values.
Am I missing anything?

Cheers,

@simsekgokhan, Apologies. Looks like there was issue with copy paste of username with and extra '\n' appearing in the config file for username. Removing it and restarting Robomongo fixed it.
Pls ignore my previous comment.

Cheers,

screen shot 2017-06-16 at 6 43 28 am
I am trying to connect to MongoDB following all the setting that are above and it returns this failure. On MongoDB website it says version 3.4.4!! Does Robo support 3.4.4?

Never mind, I removed the "@admin" from the username input and that made the connection.

Changing the database name to admin - seemed to work for me

image

This is how I config the connection and it works perfectly:
image

In my atlas, the node ...-shard-00-02 is marked as primary node. Therefore, I have to move this member to the top of the list in the connection dialog (other settings are the same as yours).

Thanks @jeebb

Before this steps please download mongodbCompass

Just goto your ->clustors page and find overview tab
than click connect button
than click connect with compass

it gives you a link copy it paste compass link part

I found that the Set Name is not optional for MongoDB Atlas Cluster. Also, the way @jeebb puts it, didn't work for me. Turns out my replicaSet name was not called the same as the cluster members prefix. I found the correct one on any of the connect strings that Atlas gives.

They can be found as @vahapgencdal says on:
->clustors page and find overview tab
than click connect button.
any of the options have a replicaSet= parameter

@ztrange indeed my replicaSet name was the issue. Thanks.

@ztrange that's it, it worked for me as well.

@ztrange Thank you very much. It worked well.

@ztrange Following your steps i can connect to my cluster Atlas !

Unfortunately we may have found another issue:
If you only have an admin access (dbAdmin) to one DB you can't see it in the explorer, even when you set it as your default database.
image

To see it in the explorer you need admin access to all the DB with dbAdminAnyDatabase which is not perfect.

I have the same problem as AntoineEsteve.
I thought, I could just open a shell and type "use myDB". The response sais "switched to db myDb". But sadly the shell forgets that for the following requests.
As a workaround I could enter two lines:
use myDb
db.myCollection.find()

It seems, that the default database is somehow ignored.

Does anyone know why this error comes out?
mongodberrorconnection

I wrote "admin" as database name and this solved my problem.
screen shot 2018-10-04 at 10 03 59

Does anyone know why this error comes out?
mongodberrorconnection

same issue i am facing please guide us ... how to resolve it ..

Was this page helpful?
0 / 5 - 0 ratings