[CXX-1332] Mongo-CXX-Driver failed to connect to mongoDB Atlas cluster Created: 05/May/17 Updated: 07/May/17 Resolved: 07/May/17 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | 3.1.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Alex Overchenko | Assignee: | J Rassi |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Hello When I try to connect to my cluster by app that written on mongo-cxx-driver, I have such error: With regards, |
| Comments |
| Comment by David Golden [ 07/May/17 ] | |
|
Closing as (post hoc) duplicate of | |
| Comment by aarti parikh [ 07/May/17 ] | |
|
Thanks for escalating | |
| Comment by Hannes Magnusson [ 07/May/17 ] | |
|
I can confirm that example-pool cannot connect to Atlas and have filed I have not yet looked at what is happening (or if it is only Atlas, or all ssl), only reproduced the problem against my own Atlas instance. | |
| Comment by aarti parikh [ 07/May/17 ] | |
|
Hello, I am facing the same issue when using the (`mongoc_client_pool_t`) connection pool with the mongo C driver. I am able to successfully connect when I am not using the pool with `mongoc_client_t`. Even the basic example (example-pool.c) included with the mongo C driver FAIL's when connecting to Atlas. http://mongoc.org/libmongoc/current/mongoc_client_pool_t.html. This is HUGE problem for us and preventing us from using Atlas for our application. The Mongo C driver documentation states that "mongoc_client_t is NOT thread-safe and should only be used from one thread at a time. When used in multi-threaded scenarios, it is recommended that you use the thread-safe mongoc_client_pool_t to retrieve a mongoc_client_t for your thread." We have to use the pool because we have a multi-threaded application.
Thanks | |
| Comment by Alex Overchenko [ 06/May/17 ] | |
|
Hello. I'm using this code: My mongoc-config.h file (I found it in <PATH_TO_C_DRIVER_INSTALLED_VERSION_PREFIX>\include): I'm using mongo-c-driver:x86-windows 1.6.2 version My mongo shell URI (simpy copy from example from Atlas) I'm using free plan of Atlas Cluster I'm connecting in May 06 2017 09:20:02 AM GMT+0300 from IP 46.216.172.195 from shell - and it was successful With regards, | |
| Comment by J Rassi [ 05/May/17 ] | |
|
Thanks for the information. I have several additional questions:
Thanks. | |
| Comment by Alex Overchenko [ 05/May/17 ] | |
|
Hello My URI: I'm using Windows 10 with Creators Update (version 1703, OS build 15063.250). With regards, | |
| Comment by J Rassi [ 05/May/17 ] | |
|
Hi, sorry to hear you're running into connectivity issues. I'll need some additional information to diagnose this problem:
Thanks. |