<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:02:13 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CXX-1332] Mongo-CXX-Driver failed to connect to mongoDB Atlas cluster</title>
                <link>https://jira.mongodb.org/browse/CXX-1332</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;When I try to connect to my cluster by app that written on mongo-cxx-driver, I have such error:&lt;br/&gt;
&quot;No suitable servers found: `serverSelectionTimeoutMS` expired: &lt;span class=&quot;error&quot;&gt;&amp;#91;connection closed calling ismaster on &amp;#39;librarycluster-shard-00-00-rlx9u.mongodb.net:27017&amp;#39;&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;connection closed calling ismaster on &amp;#39;librarycluster-shard-00-01-rlx9u.mongodb.net:27017&amp;#39;&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;connection closed calling ismaster on &amp;#39;librarycluster-shard-00-02-rlx9u.mongodb.net:27017&amp;#39;&amp;#93;&lt;/span&gt;: generic server error&quot;&lt;br/&gt;
My app connects normally for localhost.&lt;br/&gt;
How can I fix it?&lt;/p&gt;

&lt;p&gt;With regards,&lt;br/&gt;
Alex&lt;/p&gt;</description>
                <environment></environment>
        <key id="381260">CXX-1332</key>
            <summary>Mongo-CXX-Driver failed to connect to mongoDB Atlas cluster</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="rassi">J Rassi</assignee>
                                    <reporter username="aleksandr9809@gmail.com">Alex Overchenko</reporter>
                        <labels>
                    </labels>
                <created>Fri, 5 May 2017 18:50:46 +0000</created>
                <updated>Sun, 7 May 2017 13:39:53 +0000</updated>
                            <resolved>Sun, 7 May 2017 13:39:53 +0000</resolved>
                                    <version>3.1.1</version>
                                                                        <votes>1</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1566395" author="david.golden" created="Sun, 7 May 2017 13:39:53 +0000"  >&lt;p&gt;Closing as (post hoc) duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2153&quot; title=&quot;mongoc_client_pool_t cannot connect to MongoDB Atlas&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2153&quot;&gt;&lt;del&gt;CDRIVER-2153&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1566348" author="aarti" created="Sun, 7 May 2017 05:50:21 +0000"  >&lt;p&gt;Thanks for escalating &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/biggrin.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="1566346" author="bjori" created="Sun, 7 May 2017 05:47:56 +0000"  >&lt;p&gt;I can confirm that example-pool cannot connect to Atlas and have filed &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2153&quot; title=&quot;mongoc_client_pool_t cannot connect to MongoDB Atlas&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2153&quot;&gt;&lt;del&gt;CDRIVER-2153&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;</comment>
                            <comment id="1566342" author="aarti" created="Sun, 7 May 2017 05:10:46 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;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&apos;s when connecting to Atlas. &lt;a href=&quot;http://mongoc.org/libmongoc/current/mongoc_client_pool_t.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://mongoc.org/libmongoc/current/mongoc_client_pool_t.html&lt;/a&gt;.  This is HUGE problem for us and preventing us from using Atlas for our application. The Mongo C driver documentation states that &quot;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.&quot; We have to use the pool because we have a multi-threaded application.&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;No suitable servers found: `serverSelectionTimeoutMS` expired: [connection closed calling ismaster on &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;p1-shard-00-00-xxxx.mongodb.net:27017&apos;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;] [connection closed calling ismaster on &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;p1-shard-00-01-xxxx.mongodb.net:27017&apos;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Thanks&lt;br/&gt;
Aarti&lt;/p&gt;
</comment>
                            <comment id="1566214" author="aleksandr9809@gmail.com" created="Sat, 6 May 2017 06:29:57 +0000"  >&lt;p&gt;Hello.&lt;/p&gt;

&lt;p&gt;I&apos;m using this code:&lt;br/&gt;
mongocxx::pool pool{mongocxx::uri{my_std_string_uri}};&lt;/p&gt;

&lt;p&gt;My mongoc-config.h file (I found it in &amp;lt;PATH_TO_C_DRIVER_INSTALLED_VERSION_PREFIX&amp;gt;\include&amp;#41;:&lt;br/&gt;
&lt;a href=&quot;https://gist.github.com/AJIOB/66c7565d201834d165939da79092f306&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/AJIOB/66c7565d201834d165939da79092f306&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&apos;m using mongo-c-driver:x86-windows 1.6.2 version&lt;/p&gt;

&lt;p&gt;My mongo shell URI (simpy copy from example from Atlas)&lt;br/&gt;
mongo &quot;mongodb://librarycluster-shard-00-00-rlx9u.mongodb.net:27017,librarycluster-shard-00-01-rlx9u.mongodb.net:27017,librarycluster-shard-00-02-rlx9u.mongodb.net:27017/test?replicaSet=LibraryCluster-shard-0&quot; --authenticationDatabase admin --ssl --username LibraryApp --password ***&lt;br/&gt;
where *** - my password&lt;/p&gt;

&lt;p&gt;I&apos;m using free plan of Atlas Cluster&lt;/p&gt;

&lt;p&gt;I&apos;m connecting in May 06 2017 09:20:02 AM GMT+0300 from IP 46.216.172.195 from shell - and it was successful&lt;br/&gt;
I&apos;m connecting in May 06 2017 09:26:34 AM GMT+0300 from IP 46.216.172.195 from my app - and it was not successful&lt;/p&gt;

&lt;p&gt;With regards,&lt;br/&gt;
Alex&lt;/p&gt;</comment>
                            <comment id="1566064" author="rassi@10gen.com" created="Fri, 5 May 2017 20:52:12 +0000"  >&lt;p&gt;Thanks for the information.  I have several additional questions:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Are you passing &quot;librarycluster-shard-00-01-rlx9u.mongodb.net:27017&quot; into the mongocxx::uri constructor, or are you passing your complete URI string?&lt;/li&gt;
	&lt;li&gt;Can you please upload the C driver header file mongoc-config.h as an attachment to this ticket?  You should be able to find it in &amp;lt;PATH_TO_C_DRIVER_INSTALL_PREFIX&amp;gt;\include\libmongoc-1.0\ .&lt;/li&gt;
	&lt;li&gt;Can you please confirm which version of the C driver you are using?&lt;/li&gt;
	&lt;li&gt;Can you please provide the complete command line you used to connect to Atlas via the mongo shell (including any extra options)?&lt;/li&gt;
	&lt;li&gt;Is your Atlas cluster a free tier cluster?&lt;/li&gt;
	&lt;li&gt;Can you provide the timestamp of one of your connection attempts, and the IP address that would be associated with the originating request?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="1565976" author="aleksandr9809@gmail.com" created="Fri, 5 May 2017 19:33:42 +0000"  >&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;My URI:&lt;br/&gt;
mongodb://LibraryApp:***@librarycluster-shard-00-00-rlx9u.mongodb.net:27017,librarycluster-shard-00-01-rlx9u.mongodb.net:27017,librarycluster-shard-00-02-rlx9u.mongodb.net:27017/Library?ssl=true&amp;amp;replicaSet=LibraryCluster-shard-0&amp;amp;authSource=admin&lt;br/&gt;
where *** - my password.&lt;/p&gt;

&lt;p&gt;I&apos;m using Windows 10 with Creators Update (version 1703, OS build 15063.250).&lt;br/&gt;
I can connect to cluster with MongoDB Compass (official GUI).&lt;br/&gt;
I can connect to Cluster with the mongo shell.&lt;br/&gt;
For building dlls for Windows I&apos;m using vcpkg tool for Microsoft Visual Studio (you can find it here: &lt;a href=&quot;https://github.com/Microsoft/vcpkg&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/Microsoft/vcpkg&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;With regards,&lt;br/&gt;
Alex&lt;/p&gt;</comment>
                            <comment id="1565951" author="rassi@10gen.com" created="Fri, 5 May 2017 19:22:15 +0000"  >&lt;p&gt;Hi, sorry to hear you&apos;re running into connectivity issues.  I&apos;ll need some additional information to diagnose this problem:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Please provide your full Atlas URI.&lt;/li&gt;
	&lt;li&gt;What operating system are you running on this machine?&lt;/li&gt;
	&lt;li&gt;Are you able to connect to the Atlas cluster with the mongo shell, from the same machine (e.g. &quot;mongo --host &amp;lt;YOUR_ATLAS_URI&amp;gt;&quot; at the command prompt)?&lt;/li&gt;
	&lt;li&gt;If available, can you paste the exact invocation of &quot;cmake&quot; you used when building the C++ driver?&lt;/li&gt;
	&lt;li&gt;If available, can you paste the exact invocation of &quot;cmake&quot; or &quot;./configure&quot; you used when building the C driver?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="381675">CDRIVER-2153</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsz8cv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>