<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:36:27 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>[SERVER-34376] Unable to connect to MongoDB Replica set in Docker container</title>
                <link>https://jira.mongodb.org/browse/SERVER-34376</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi I have mongo replica set with 3 servers, I can not connect to server using mongoose(NodeJS) and Mongo Shell, but with Studio 3T I can connect and change data.&lt;/p&gt;

&lt;p&gt;I have tested the same but in my laptop, not in docker container, all works fine, mongoose(NodeJS) and Mongo Shell working fine.&lt;/p&gt;

&lt;p&gt;I am using docker compose, I will add all files for reproduce the issue.&lt;/p&gt;</description>
                <environment></environment>
        <key id="523765">SERVER-34376</key>
            <summary>Unable to connect to MongoDB Replica set in Docker container</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="nairi.harutyunyan@optym.com">Nairi Harutyunyan</reporter>
                        <labels>
                    </labels>
                <created>Sun, 8 Apr 2018 11:39:45 +0000</created>
                <updated>Sun, 8 Apr 2018 15:15:59 +0000</updated>
                            <resolved>Sun, 8 Apr 2018 15:14:05 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1858565" author="nairi.harutyunyan@optym.com" created="Sun, 8 Apr 2018 15:15:59 +0000"  >&lt;p&gt;But currently I don&apos;t know how I can access to docker network.&lt;/p&gt;</comment>
                            <comment id="1858561" author="nairi.harutyunyan@optym.com" created="Sun, 8 Apr 2018 14:59:22 +0000"  >&lt;p&gt;please close the issue)  because I don&apos;t have access&lt;/p&gt;</comment>
                            <comment id="1858560" author="nairi.harutyunyan@optym.com" created="Sun, 8 Apr 2018 14:58:37 +0000"  >&lt;p&gt;  nodejs:&lt;br/&gt;
    build: ./node&lt;br/&gt;
    links:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;node1&lt;/li&gt;
	&lt;li&gt;node2&lt;/li&gt;
	&lt;li&gt;node3&lt;br/&gt;
    networks:&lt;/li&gt;
	&lt;li&gt;mongoclusternt&lt;br/&gt;
    depends_on:&lt;/li&gt;
	&lt;li&gt;node2&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1858559" author="nairi.harutyunyan@optym.com" created="Sun, 8 Apr 2018 14:58:03 +0000"  >&lt;p&gt;I have fixed it, actually I need create docker component for nodejs app which will in mongo network.&lt;br/&gt;
Sorry for bothering&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="183662" name="Screen Shot 2018-04-08 at 3.36.15 PM.png" size="64937" author="nairi.harutyunyan@optym.com" created="Sun, 8 Apr 2018 11:36:54 +0000"/>
                            <attachment id="183661" name="docker-compose.yml" size="762" author="nairi.harutyunyan@optym.com" created="Sun, 8 Apr 2018 11:37:06 +0000"/>
                            <attachment id="183663" name="index.js" size="424" author="nairi.harutyunyan@optym.com" created="Sun, 8 Apr 2018 11:35:58 +0000"/>
                            <attachment id="183664" name="mongoErrorLog" size="1694" author="nairi.harutyunyan@optym.com" created="Sun, 8 Apr 2018 11:35:37 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 44 weeks, 3 days 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_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>nairi.harutyunyan@optym.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 44 weeks, 3 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>nairi.harutyunyan@optym.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htuoef:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htlvxr:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1) docker-compose up&lt;br/&gt;
2) connecting to any mongo (for example mongo1)&lt;br/&gt;
3) db = (new Mongo(&apos;localhost:27017&apos;)).getDB(&apos;test&apos;)&lt;br/&gt;
4) config = {&lt;br/&gt;
  &quot;_id&quot;: &quot;comments&quot;,&lt;br/&gt;
  &quot;members&quot;: [&lt;br/&gt;
    &lt;/p&gt;
{
      &quot;_id&quot;: 0,
      &quot;host&quot;: &quot;node1:27017&quot;
    }
&lt;p&gt;,&lt;br/&gt;
    &lt;/p&gt;
{
      &quot;_id&quot;: 1,
      &quot;host&quot;: &quot;node2:27017&quot;
    }
&lt;p&gt;,&lt;/p&gt;
    {
      &quot;_id&quot;: 2,
      &quot;host&quot;: &quot;node3:27017&quot;
    }
&lt;p&gt;  ]&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;5) rs.initiate(config)&lt;br/&gt;
6) node index.js&lt;br/&gt;
7) in shell, ( mongo &quot;mongodb://localhost:30001,localhost:30002,localhost:30003/auto?replicaSet=myset&quot; )&lt;/p&gt;</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_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htuamn:</customfieldvalue>

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