<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:36:42 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>[COMPASS-4534] Unable to connect with v1.24.1 - Error: getaddrinfo ENOTFOUND mongodb</title>
                <link>https://jira.mongodb.org/browse/COMPASS-4534</link>
                <project id="13182" key="COMPASS">Compass </project>
                    <description>&lt;h3&gt;&lt;a name=&quot;ProblemDescription&quot;&gt;&lt;/a&gt;Problem Description&lt;/h3&gt;

&lt;p&gt;I am no longer able to connect to MongoDB using *&lt;b&gt;Compass 1.24.1&lt;/b&gt;*.&lt;br/&gt;
I &lt;ins&gt;am&lt;/ins&gt; able to connect using Compass 1.23.0.&lt;/p&gt;

&lt;p&gt;In v1.24.1, connections fail with a &lt;font color=&quot;#de350b&quot;&gt;&lt;b&gt;getaddrinfo ENOTFOUND mongodb&lt;/b&gt;&lt;/font&gt; error.&lt;br/&gt;
Connecting with any other application such as a 3rd party app (NoSQLBooster) works fine.&lt;br/&gt;
See the screenshot below:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/291009/291009_Compass_ENOTFOUND.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I tested this on a second machine where I still had v1.23.0 installed.&#160; The connection worked prior to upgrading to v1.24.1. It immediately stopped working after the upgrade. See screenshot, which shows before and after:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/291007/291007_image-2020-12-10-11-48-21-028.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;StepstoReproduce&quot;&gt;&lt;/a&gt;Steps to Reproduce&lt;/h3&gt;

&lt;p&gt;(1) Create a single node MongoDB Community Instance on a LAN&lt;/p&gt;

&lt;p&gt;(2) Use the connection string to connect.&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;ExpectedResults&quot;&gt;&lt;/a&gt;Expected Results&lt;/h3&gt;

&lt;p&gt;Successful connection.&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;ActualResults&quot;&gt;&lt;/a&gt;Actual Results&lt;/h3&gt;

&lt;p&gt;Error:&#160;&lt;font color=&quot;#de350b&quot;&gt;&lt;b&gt;getaddrinfo ENOTFOUND mongodb&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;Observations&quot;&gt;&lt;/a&gt;Observations&lt;/h3&gt;

&lt;p&gt;When I enter a connection string into *&lt;b&gt;Compass v1.24.1&lt;/b&gt;* such as:&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;font color=&quot;#00875a&quot;&gt;mongodb://user:XXXXX@HOSTNAME.com:27017/ops?authSource=admin&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Compass expands the connection string with default values to become:&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#00875a&quot;&gt;&lt;b&gt;mongodb://user:XXXXX@HOSTNAME.com:27017/ops?authSource=admin&amp;amp;readPreference=primary&amp;amp;appname=MongoDB%20Compass&amp;amp;ssl=false&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;This expansion happens in both 1.24.1 and 1.23.0 but the connection only fails in v1.24.1. &lt;b&gt;It works fine in v1.23.0.&lt;/b&gt; If I use the first connection string in a &lt;ins&gt;different&lt;/ins&gt; app such as NoSQLBooster, the connection works fine. But if I use the altered connection string in that app with &lt;b&gt;&amp;amp;readPreference=primary&lt;/b&gt;, it fails with the same error that Compass fails with. I only provide this detail as a trace from NoSQLBooster as it might shed light on the Compass issue.&lt;/p&gt;

&lt;p&gt;The issue appears that the fully expanded connection string is being passed to the server.&#160;I&apos;m not sure why this fails when the parameter is added. I can only speculate that the MongoDB server instance (in this case, community edition used for testing), is rejecting the connection due to the presence of the string.&#160;&lt;/p&gt;
&lt;h2&gt;&lt;a name=&quot;%7B%7BTEST1%28Failure%29%7D%7D&quot;&gt;&lt;/a&gt;&lt;tt&gt;TEST 1 (Failure)&lt;/tt&gt;&lt;/h2&gt;

&lt;p&gt;&lt;tt&gt;This shows the FAILED connection with the exact same error that Compass returns using the connection string:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;font color=&quot;#00875a&quot;&gt;mongodb://user:XXXXX@HOSTNAME.com:27017/ops?authSource=admin&amp;amp;readPreference=primary&lt;/font&gt;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Although this is a trace from a different application, it may shed light on the issue with Compass.&lt;/p&gt;


&lt;p&gt;&lt;tt&gt;Version: 6.2.4&lt;/tt&gt;&lt;tt&gt;OS: {&quot;platform&quot;:&quot;win32&quot;,&quot;type&quot;:&quot;Windows_NT&quot;,&quot;release&quot;:&quot;10.0.19042&quot;,&quot;mem&quot;:&quot;32G&quot;&lt;/tt&gt;}&lt;tt&gt;Brief:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;Connect to HOSTNAME.com Status:Failed Duration:&lt;/tt&gt;&lt;tt&gt;Error:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;MongoNetworkError: failed to connect to server &lt;span class=&quot;error&quot;&gt;&amp;#91;mongodb:27017&amp;#93;&lt;/span&gt; on first connect [Error: getaddrinfo ENOTFOUND mongodb&lt;/tt&gt;&lt;tt&gt;Details:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;10:34:57.766 *** Starting &quot;Discover Replica Set&quot; to get rs name***&lt;/tt&gt;&lt;tt&gt;10:34:57.994 *** Finished &quot;Discover Replica Set&quot; 228 ms ***&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;hosts&quot;:[\{&quot;host&quot;:&quot;mongodb&quot;,&quot;port&quot;:27017,&quot;role&quot;:&quot;primary&quot;}
&lt;p&gt;],&quot;setName&quot;:&quot;rs0&quot;}}}&lt;tt&gt;10:34:57.995 *** Starting MongoClient.connect ***&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;options&quot;:\{&quot;appname&quot;:&quot;NoSQLBoosterV6.2.4_94929.153&quot;,&quot;autoReconnect&quot;:true,&quot;keepAlive&quot;:60000,&quot;minSize&quot;:1,&quot;poolSize&quot;:1,&quot;promoteLongs&quot;:false,&quot;promoteValues&quot;:false,&quot;reconnectTries&quot;:172800,&quot;sslValidate&quot;:false,&quot;useNewUrlParser&quot;:true,&quot;useUnifiedTopology&quot;:false}
&lt;p&gt;,&quot;uri&quot;:&quot;mongodb://user:******@HOSTNAME.com:27017/ops?authSource=admin&amp;amp;readPreference=primary&amp;amp;replicaSet=rs0&quot;}}}&lt;tt&gt;10:34:57.998 Topology Opening&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;topologyId&quot;:5}
&lt;p&gt;}}&lt;tt&gt;10:34:58.007 Server Opening&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;topologyId&quot;:5}
&lt;p&gt;}}&lt;tt&gt;10:34:58.097 Server Description Changed&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;newDescription&quot;:\{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;arbiters&quot;:[],&quot;hosts&quot;:[],&quot;passives&quot;:[],&quot;type&quot;:&quot;RSPrimary&quot;}
&lt;p&gt;,&quot;previousDescription&quot;:{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;arbiters&quot;:[],&quot;hosts&quot;:[],&quot;passives&quot;:[],&quot;type&quot;:&quot;Unknown&quot;}}}}&lt;tt&gt;10:34:58.097 Server Closed&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;topologyId&quot;:5}
&lt;p&gt;}}&lt;tt&gt;10:34:58.103 Server Opening&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;address&quot;:&quot;mongodb:27017&quot;,&quot;topologyId&quot;:5}
&lt;p&gt;}}&lt;tt&gt;10:35:00.379 Topology Description Changed&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;diff&quot;:\{&quot;servers&quot;:[]}
&lt;p&gt;,&quot;newDescription&quot;:{&quot;servers&quot;:[],&quot;setName&quot;:&quot;rs0&quot;,&quot;topologyType&quot;:&quot;Unknown&quot;},&quot;previousDescription&quot;:{&quot;servers&quot;:[],&quot;topologyType&quot;:&quot;Unknown&quot;},&quot;topologyId&quot;:5}}}&lt;tt&gt;10:35:00.379 Server Closed&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;address&quot;:&quot;mongodb:27017&quot;,&quot;topologyId&quot;:5}
&lt;p&gt;}}&lt;tt&gt;10:35:00.379 Topology Closed&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;topologyId&quot;:5}
&lt;p&gt;}}&lt;tt&gt;10:35:00.380 Topology Description Changed&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;diff&quot;:\{&quot;servers&quot;:[]}
&lt;p&gt;,&quot;newDescription&quot;:{&quot;servers&quot;:[],&quot;setName&quot;:&quot;rs0&quot;,&quot;topologyType&quot;:&quot;Unknown&quot;},&quot;previousDescription&quot;:{&quot;servers&quot;:[],&quot;setName&quot;:&quot;rs0&quot;,&quot;topologyType&quot;:&quot;Unknown&quot;},&quot;topologyId&quot;:5}}}&lt;tt&gt;10:35:00.380 Topology Closed&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;topologyId&quot;:5}
&lt;p&gt;}}&lt;tt&gt;10:35:00.380 *** Connect Error ***&lt;/tt&gt;&lt;br/&gt;
{{&lt;/p&gt;
{&quot;message&quot;:&quot;failed to connect to server [mongodb:27017] on first connect [Error: getaddrinfo ENOTFOUND mongodb\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26) \{\n name: &apos;MongoNetworkError&apos;\n}
&lt;p&gt;]&quot;,&quot;name&quot;:&quot;MongoNetworkError&quot;,&quot;stack&quot;:&quot;MongoNetworkError: failed to connect to server &lt;span class=&quot;error&quot;&gt;&amp;#91;mongodb:27017&amp;#93;&lt;/span&gt; on first connect [Error: getaddrinfo ENOTFOUND mongodb\n at GetAddrInfoReqWrap.onlookup &lt;span class=&quot;error&quot;&gt;&amp;#91;as oncomplete&amp;#93;&lt;/span&gt; (dns.js:60:26) {\n name: &apos;MongoNetworkError&apos;\n}]\n at Pool.&amp;lt;anonymous&amp;gt; (C:\\Users\\LesterWaters\\AppData\\Local\\Programs\\nosqlbooster4mongo\\resources\\app.asar\\node_modules\\mongodb\\lib\\core\\topologies\\server.js:438:11)\n at Pool.emit (events.js:203:13)\n at C:\\Users\\LesterWaters\\AppData\\Local\\Programs\\nosqlbooster4mongo\\resources\\app.asar\\node_modules\\mongodb\\lib\\core\\connection\\pool.js:562:14\n at C:\\Users\\LesterWaters\\AppData\\Local\\Programs\\nosqlbooster4mongo\\resources\\app.asar\\node_modules\\mongodb\\lib\\core\\connection\\pool.js:1009:9\n at C:\\Users\\LesterWaters\\AppData\\Local\\Programs\\nosqlbooster4mongo\\resources\\app.asar\\node_modules\\mongodb\\lib\\core\\connection\\connect.js:32:7\n at callback (C:\\Users\\LesterWaters\\AppData\\Local\\Programs\\nosqlbooster4mongo\\resources\\app.asar\\node_modules\\mongodb\\lib\\core\\connection\\connect.js:280:5)\n at Socket.&amp;lt;anonymous&amp;gt; (C:\\Users\\LesterWaters\\AppData\\Local\\Programs\\nosqlbooster4mongo\\resources\\app.asar\\node_modules\\mongodb\\lib\\core\\connection\\connect.js:310:7)\n at Object.onceWrapper (events.js:291:20)\n at Socket.emit (events.js:203:13)\n at emitErrorNT (internal/streams/destroy.js:91:8)\n at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)\n at processTicksAndRejections (internal/process/task_queues.js:77:11)&quot;} }}&lt;/p&gt;
&lt;h2&gt;&lt;a name=&quot;%7B%7BTEST2%28Success%29%7D%7D&quot;&gt;&lt;/a&gt;&lt;tt&gt;TEST 2 (Success)&lt;/tt&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;a name=&quot;%7B%7BThisshowsasuccessfulconnectionwherereadPreference%3Disomittedfromtheconnectionstring.%7D%7D&quot;&gt;&lt;/a&gt;&lt;tt&gt;This shows a successful connection where *&lt;b&gt;readPreference=&lt;/b&gt;* is omitted from the connection string.&lt;/tt&gt;&lt;/h3&gt;
&lt;p&gt;&lt;tt&gt;&lt;font color=&quot;#00875a&quot;&gt;mongodb://user:XXXXX@HOSTNAME.com:27017/ops?authSource=admin&lt;/font&gt;&lt;/tt&gt;&lt;/p&gt;


&lt;p&gt;&lt;tt&gt;&lt;font color=&quot;#0747a6&quot;&gt;10:36:40.842 *** Starting MongoClient.connect ***&lt;/font&gt;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;font color=&quot;#0747a6&quot;&gt;{&quot;options&quot;:\{&quot;appname&quot;:&quot;NoSQLBoosterV6.2.4_94929.153&quot;,&quot;autoReconnect&quot;:true,&quot;keepAlive&quot;:60000,&quot;minSize&quot;:1,&quot;poolSize&quot;:1,&quot;promoteLongs&quot;:false,&quot;promoteValues&quot;:false,&quot;reconnectTries&quot;:172800,&quot;sslValidate&quot;:false,&quot;useNewUrlParser&quot;:true,&quot;useUnifiedTopology&quot;:false},&quot;uri&quot;:&quot;mongodb://user:******@HOSTNAME.com:27017/ops?authSource=admin&quot;}&lt;/font&gt;&lt;/tt&gt;&lt;font color=&quot;#0747a6&quot;&gt;&lt;tt&gt;10:36:40.949 Topology Opening&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;{&quot;topologyId&quot;:23}&lt;/tt&gt;&lt;tt&gt;10:36:40.949 Server Opening&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;topologyId&quot;:23}&lt;/tt&gt;&lt;tt&gt;10:36:40.949 Server Description Changed&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;newDescription&quot;:\{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;arbiters&quot;:[],&quot;hosts&quot;:[],&quot;passives&quot;:[],&quot;type&quot;:&quot;RSPrimary&quot;},&quot;previousDescription&quot;:{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;arbiters&quot;:[],&quot;hosts&quot;:[],&quot;passives&quot;:[],&quot;type&quot;:&quot;Unknown&quot;&lt;/tt&gt;}}&lt;tt&gt;10:36:40.949 Topology Description Changed&lt;/tt&gt;&lt;br/&gt;
{&lt;tt&gt;&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;newDescription&quot;:{&quot;servers&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;arbiters&quot;:[],&quot;hosts&quot;:[],&quot;passives&quot;:[],&quot;type&quot;:&quot;RSPrimary&quot;}&amp;#93;&lt;/span&gt;,&quot;topologyType&quot;:&quot;Single&quot;},&quot;previousDescription&quot;:{&quot;servers&quot;:&lt;span class=&quot;error&quot;&gt;&amp;#91;{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;arbiters&quot;:[],&quot;hosts&quot;:[],&quot;passives&quot;:[],&quot;type&quot;:&quot;Unknown&quot;}&amp;#93;&lt;/span&gt;,&quot;topologyType&quot;:&quot;Unknown&quot;&lt;/tt&gt;}}&lt;tt&gt;10:36:40.949 *** Finished MongoClient.connect 108 ms ***&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;{&quot;options&quot;:\{&quot;appname&quot;:&quot;NoSQLBoosterV6.2.4_94929.153&quot;,&quot;autoReconnect&quot;:true,&quot;keepAlive&quot;:60000,&quot;minSize&quot;:1,&quot;poolSize&quot;:1,&quot;promoteLongs&quot;:false,&quot;promoteValues&quot;:false,&quot;reconnectTries&quot;:172800,&quot;sslValidate&quot;:false,&quot;useNewUrlParser&quot;:true,&quot;useUnifiedTopology&quot;:false},&quot;uri&quot;:&quot;mongodb://user:*****&lt;b&gt;@HOSTNAME.com:27017/ops?authSource=admin&quot;&lt;/tt&gt;}&lt;tt&gt;10:36:40.950 *** Starting Detecting MongoDB Server BuildInfo ***&lt;/tt&gt;&lt;tt&gt;10:36:40.953 *** Finished Detecting MongoDB Server BuildInfo 3 ms&lt;/b&gt;**&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;}}{{10:36:40.953 Server Closed&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;{&quot;address&quot;:&quot;HOSTNAME.com:27017&quot;,&quot;topologyId&quot;:23}&lt;/tt&gt;&lt;/font&gt;&lt;tt&gt;&lt;font color=&quot;#0747a6&quot;&gt;10:36:40.954 Topology Closed&lt;/font&gt;&lt;/tt&gt;&lt;br/&gt;
{{&lt;font color=&quot;#0747a6&quot;&gt;{&quot;topologyId&quot;:23}&lt;/font&gt; }}&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>Windows 10 Desktop</environment>
        <key id="1564944">COMPASS-4534</key>
            <summary>Unable to connect with v1.24.1 - Error: getaddrinfo ENOTFOUND mongodb</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="13201">Fixed</resolution>
                                        <assignee username="rhys.howell@mongodb.com">Rhys Howell</assignee>
                                    <reporter username="lesterw@iotahoe.com">Lester Waters</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Dec 2020 11:49:42 +0000</created>
                <updated>Sun, 29 Oct 2023 02:40:04 +0000</updated>
                            <resolved>Thu, 17 Dec 2020 08:51:34 +0000</resolved>
                                    <version>1.24.1</version>
                                    <fixVersion>1.24.6</fixVersion>
                                    <component>Compass</component>
                        <due></due>
                            <votes>3</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="3531955" author="xgen-internal-githook" created="Wed, 16 Dec 2020 07:49:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Rhys&apos;, &apos;email&apos;: &apos;Anemy@users.noreply.github.com&apos;, &apos;username&apos;: &apos;Anemy&apos;}
&lt;p&gt;Message: fix(connectivity): use older driver defaults for directConnection and readPreference &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4539&quot; title=&quot;Fix direct connecting to a secondary with readPreference=secondary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4539&quot;&gt;&lt;del&gt;COMPASS-4539&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4534&quot; title=&quot;Unable to connect with v1.24.1 - Error: getaddrinfo ENOTFOUND mongodb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4534&quot;&gt;&lt;del&gt;COMPASS-4534&lt;/del&gt;&lt;/a&gt; (#2083)&lt;br/&gt;
Branch: 1.24-releases&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/6f49eac32021f83d66377a0a22e4b927a0a0fb96&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/6f49eac32021f83d66377a0a22e4b927a0a0fb96&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3531953" author="xgen-internal-githook" created="Wed, 16 Dec 2020 07:49:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Rhys&apos;, &apos;email&apos;: &apos;Anemy@users.noreply.github.com&apos;, &apos;username&apos;: &apos;Anemy&apos;}
&lt;p&gt;Message: Revert &quot;fix(connection-model): directConnection and readPreference connectivity fix &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4539&quot; title=&quot;Fix direct connecting to a secondary with readPreference=secondary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4539&quot;&gt;&lt;del&gt;COMPASS-4539&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4534&quot; title=&quot;Unable to connect with v1.24.1 - Error: getaddrinfo ENOTFOUND mongodb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4534&quot;&gt;&lt;del&gt;COMPASS-4534&lt;/del&gt;&lt;/a&gt;  (#2078)&quot; (#2082)&lt;/p&gt;

&lt;p&gt;This reverts commit b10a3dfd11f4d0e873db11db915ffa6950a75ab0.&lt;br/&gt;
Branch: 1.24-releases&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/bc494df4301eea1c75248578c3fb2113a6a3e6dc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/bc494df4301eea1c75248578c3fb2113a6a3e6dc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3531950" author="xgen-internal-githook" created="Wed, 16 Dec 2020 07:45:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Rhys&apos;, &apos;email&apos;: &apos;Anemy@users.noreply.github.com&apos;, &apos;username&apos;: &apos;Anemy&apos;}
&lt;p&gt;Message: fix(connectivity): use older driver defaults for directConnection and readPreference &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4539&quot; title=&quot;Fix direct connecting to a secondary with readPreference=secondary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4539&quot;&gt;&lt;del&gt;COMPASS-4539&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4534&quot; title=&quot;Unable to connect with v1.24.1 - Error: getaddrinfo ENOTFOUND mongodb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4534&quot;&gt;&lt;del&gt;COMPASS-4534&lt;/del&gt;&lt;/a&gt; (#2083)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/6f49eac32021f83d66377a0a22e4b927a0a0fb96&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/6f49eac32021f83d66377a0a22e4b927a0a0fb96&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3531931" author="xgen-internal-githook" created="Wed, 16 Dec 2020 07:14:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Rhys&apos;, &apos;email&apos;: &apos;Anemy@users.noreply.github.com&apos;, &apos;username&apos;: &apos;Anemy&apos;}
&lt;p&gt;Message: Revert &quot;fix(connection-model): directConnection and readPreference connectivity fix &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4539&quot; title=&quot;Fix direct connecting to a secondary with readPreference=secondary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4539&quot;&gt;&lt;del&gt;COMPASS-4539&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4534&quot; title=&quot;Unable to connect with v1.24.1 - Error: getaddrinfo ENOTFOUND mongodb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4534&quot;&gt;&lt;del&gt;COMPASS-4534&lt;/del&gt;&lt;/a&gt;  (#2078)&quot; (#2082)&lt;/p&gt;

&lt;p&gt;This reverts commit b10a3dfd11f4d0e873db11db915ffa6950a75ab0.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/bc494df4301eea1c75248578c3fb2113a6a3e6dc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/bc494df4301eea1c75248578c3fb2113a6a3e6dc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3531929" author="xgen-internal-githook" created="Wed, 16 Dec 2020 07:13:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Rhys&apos;, &apos;email&apos;: &apos;Anemy@users.noreply.github.com&apos;, &apos;username&apos;: &apos;Anemy&apos;}
&lt;p&gt;Message: Revert &quot;fix(connection-model): directConnection and readPreference connectivity fix &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4539&quot; title=&quot;Fix direct connecting to a secondary with readPreference=secondary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4539&quot;&gt;&lt;del&gt;COMPASS-4539&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4534&quot; title=&quot;Unable to connect with v1.24.1 - Error: getaddrinfo ENOTFOUND mongodb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4534&quot;&gt;&lt;del&gt;COMPASS-4534&lt;/del&gt;&lt;/a&gt;  (#2078)&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit b10a3dfd11f4d0e873db11db915ffa6950a75ab0.&lt;br/&gt;
Branch: revert-2078-bump-connection-model-and-dataservice-for-direct-connection-fix&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/587718abb77d6082758dcfac8ad94aa46cfb041b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/587718abb77d6082758dcfac8ad94aa46cfb041b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3531514" author="JIRAUSER1257993" created="Tue, 15 Dec 2020 23:00:32 +0000"  >&lt;p&gt;I also experienced this problem but the error message I had was connection timeout. This was when trying to use an SSL tunnel to connect to my MongoDB instance.&lt;/p&gt;

&lt;p&gt;Resolved the issue by rolling back from 1.24 &amp;gt; 1.23&lt;/p&gt;</comment>
                            <comment id="3531099" author="xgen-internal-githook" created="Tue, 15 Dec 2020 19:59:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Rhys&apos;, &apos;email&apos;: &apos;Anemy@users.noreply.github.com&apos;, &apos;username&apos;: &apos;Anemy&apos;}
&lt;p&gt;Message: fix(connection-model): directConnection and readPreference connectivity fix &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4539&quot; title=&quot;Fix direct connecting to a secondary with readPreference=secondary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4539&quot;&gt;&lt;del&gt;COMPASS-4539&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4534&quot; title=&quot;Unable to connect with v1.24.1 - Error: getaddrinfo ENOTFOUND mongodb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4534&quot;&gt;&lt;del&gt;COMPASS-4534&lt;/del&gt;&lt;/a&gt;  (#2078)&lt;br/&gt;
Branch: 1.24-releases&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/b10a3dfd11f4d0e873db11db915ffa6950a75ab0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/b10a3dfd11f4d0e873db11db915ffa6950a75ab0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3531072" author="xgen-internal-githook" created="Tue, 15 Dec 2020 19:48:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Rhys&apos;, &apos;email&apos;: &apos;Anemy@users.noreply.github.com&apos;, &apos;username&apos;: &apos;Anemy&apos;}
&lt;p&gt;Message: fix(connection-model): directConnection and readPreference connectivity fix &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4539&quot; title=&quot;Fix direct connecting to a secondary with readPreference=secondary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4539&quot;&gt;&lt;del&gt;COMPASS-4539&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4534&quot; title=&quot;Unable to connect with v1.24.1 - Error: getaddrinfo ENOTFOUND mongodb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4534&quot;&gt;&lt;del&gt;COMPASS-4534&lt;/del&gt;&lt;/a&gt;  (#2078)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/compass/commit/b10a3dfd11f4d0e873db11db915ffa6950a75ab0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/compass/commit/b10a3dfd11f4d0e873db11db915ffa6950a75ab0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3528703" author="xgen-internal-githook" created="Mon, 14 Dec 2020 18:17:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Rhys&apos;, &apos;email&apos;: &apos;Anemy@users.noreply.github.com&apos;, &apos;username&apos;: &apos;Anemy&apos;}
&lt;p&gt;Message: fix: set directConnection true on direct connections &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-4534&quot; title=&quot;Unable to connect with v1.24.1 - Error: getaddrinfo ENOTFOUND mongodb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-4534&quot;&gt;&lt;del&gt;COMPASS-4534&lt;/del&gt;&lt;/a&gt; (#337)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/connection-model/commit/bbb576b6253e48ef245e0678e030ae1b8874f35a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/connection-model/commit/bbb576b6253e48ef245e0678e030ae1b8874f35a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3527514" author="massimiliano.marcon" created="Mon, 14 Dec 2020 07:32:23 +0000"  >&lt;p&gt;Thank you for the detailed bug report. We are investigating the problem and hopefully we&apos;ll have a fix or a workaround soon.&lt;/p&gt;</comment>
                            <comment id="3527167" author="ran.schindler@gmail.com" created="Sun, 13 Dec 2020 12:27:44 +0000"  >&lt;p&gt;I have the same issue while trying to connect to a mongo instance through a tunnel &lt;/p&gt;

&lt;p&gt;Could it be that while creating new connection on Mongo Compass 1.24.1 the UI try to discover the entire replica set topology and connect to the primary/secondary IP.&lt;/p&gt;

&lt;p&gt;Is there a way to create a DIRECT connection to an HOST/IP+Port just like the clients api and disable the topology discovery step?&lt;/p&gt;

&lt;p&gt;From pymongo documentation: directConnection (optional): if True,&#160;&lt;b&gt;forces this client to connect directly to the specified MongoDB host as a standalone&lt;/b&gt;&#160;. If false, the client connects to the entire replica set of which the given MongoDB host(s) is a part&lt;/p&gt;</comment>
                            <comment id="3527165" author="JIRAUSER1257925" created="Sun, 13 Dec 2020 10:59:28 +0000"  >&lt;p&gt;Curious. In this case, there is no replica set configured (single node instance used for testing).&#160; Why would it work with v1.23.0 and not with v1.24.0? This is readily reproducable on multiple VMs with the exact same connection string on multiple VMs. I can connect with v1.23.0 and as soon as I upgrade, I cannot connect.&#160; If I uninstall v1.24.1 and reinstall v1.23.0, it starts working again.&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="3526988" author="alex@aptible.com" created="Sat, 12 Dec 2020 02:23:52 +0000"  >&lt;blockquote&gt;&lt;p&gt;I can only speculate that the MongoDB server instance (in this case, community edition used for testing), is rejecting the connection due to the presence of the string.&#160;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&#160;I don&apos;t believe this is the case. From my tests with 1.24.1 (as compared to 1.23.0) what I see is:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Compass connects to the hostname I provide, and actually reaches Mongo&lt;/li&gt;
	&lt;li&gt;Compass runs `isMaster` or something and pulls the hostname of the current master node from the replicaset configuration&lt;/li&gt;
	&lt;li&gt;&#160;Compass tries to reconnect to the master node hostname that it discovered&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;In your case, it looks like you&apos;re connecting to a (redacted) &quot;HOSTNAME.com:27017&quot;, and your replica set configuration has the node address of &quot;mongodb:27017&quot;. Hence, your error:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;MongoNetworkError: failed to connect to server &lt;span class=&quot;error&quot;&gt;&amp;#91;mongodb:27017&amp;#93;&lt;/span&gt; on first connect &lt;span class=&quot;error&quot;&gt;&amp;#91;Error: getaddrinfo ENOTFOUND&amp;#93;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I don&apos;t know yet how to work around this, other than to use split-horizon DNS in my case, so if there&apos;s a at least a connection parameter to connect in a &quot;single node&quot;&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/help_16.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; manner rather than attempt to connect to the replicaset, I would greatly appreciate knowing about it.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1565296">COMPASS-4536</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="291009" name="Compass_ENOTFOUND.png" size="92361" author="lesterw@iotahoe.com" created="Thu, 10 Dec 2020 11:31:27 +0000"/>
                            <attachment id="291008" name="image-2020-12-10-11-48-06-545.png" size="169928" author="lesterw@iotahoe.com" created="Thu, 10 Dec 2020 11:48:08 +0000"/>
                            <attachment id="291007" name="image-2020-12-10-11-48-21-028.png" size="164242" author="lesterw@iotahoe.com" created="Thu, 10 Dec 2020 11:48:23 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>13.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000r4rvPQAQ, 5002K00000r53xnQAA]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 12 Dec 2020 02:23:52 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 8 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 8 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alex@aptible.com</customfieldvalue>
            <customfieldvalue>ajtrichards@gmail.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>lesterw@iotahoe.com</customfieldvalue>
            <customfieldvalue>massimiliano.marcon@mongodb.com</customfieldvalue>
            <customfieldvalue>ran.schindler@gmail.com</customfieldvalue>
            <customfieldvalue>rhys.howell@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hyl9hj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hy74yn:</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>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4543">Iteration Star Apple</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hykvqv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>