jeromelebel / MongoHub-Mac

Mac Native Mongodb Client
2.43k stars 159 forks source link

App close on replica set connection #196

Closed pcorderoe closed 5 years ago

pcorderoe commented 9 years ago

Hi, when i try to connect using a replica set option the program close. I have a cluster over Google Cloud. I'll try to connect using this mongodb://xxx.xxx.xxx.xxx:27017,xx.xx.xx.xx:27017 but don't work. Please help!

jeromelebel commented 9 years ago

Which version do you use? Do you mean there is a crash? Can you give me the full details of the crash?

tdegrunt commented 9 years ago

I'm able to connect to a replicaset, using the following for the servers field:

db1.ams2.do.dev:27017,db2.ams2.do.dev:27017,db3.ams2.do.dev:27017

If you enter it exactly like this, does it still crash? Also have you filled in a "Set Name"?

If it still doesn't work, can you show a screenshot of the settings?

pcorderoe commented 9 years ago

Thanks for your answers. I fill form like this:

Name:Replica Set Set Name: rs0 Servers: mongodb://xxx.xxx.xxx.xxx:27017,xxx.xxx.xx.x:27017 ReadMode: Primary Preferred

errormongohub.pdf | uploaded via ZenHub

tdegrunt commented 9 years ago

Can you drop the mongodb:// and try again?

jeromelebel commented 9 years ago

Yes, that should be the reason of the crash. I need to fix this issue.

pcorderoe commented 9 years ago

i try (without mongodb://) but show an error message: No aceptable peer could be found

jeromelebel commented 9 years ago

do you use ssh tunneling?

tdegrunt commented 9 years ago

Can you connect to each of the servers from the command line using the following?

mongo --host xxx.xxx.xxx.xxx:27017

If not, what are you using? Also the output of rs.status() on the mongo console might help debug this.

pcorderoe commented 9 years ago

i am using normal connection, with Server: Standalone, one connection for each server, and work fine

pcorderoe commented 9 years ago

I'm not using ssh tunneling

jeromelebel commented 9 years ago

Should be fixed in 3.1. I let you verify this issue and close it.

bolerovt commented 9 years ago

same problem here, can not connect replica set, but can connect to each stand alone server

bolerovt commented 9 years ago

do we need to wait until the mongo 3.1 to fix this issue?