<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:09:12 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-5537] Replica set member behind NAT stopped joining after uprade</title>
                <link>https://jira.mongodb.org/browse/SERVER-5537</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have a 3-members replica set on FreeBSD servers. It has been working until I upgraded them to 2.0.3 or 2.0.4. Not sure. I am now on 2.0.4.&lt;/p&gt;

&lt;p&gt;It surely worked with MongoDB 2.0.2 for months.&lt;/p&gt;

&lt;p&gt;The problem is that one of the members (server 3) is behind NAT. The rest two are dedicated servers. Server 3 is arbiter and backup.&lt;/p&gt;

&lt;p&gt;Server 3 (behind NAT) log:&lt;/p&gt;

&lt;p&gt;Fri Apr  6 23:27:34 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn39&amp;#93;&lt;/span&gt;  authenticate: &lt;/p&gt;
{ authenticate: 1, nonce: &quot;xxxxxx&quot;, user: &quot;__system&quot;, key: &quot;xxxxxx&quot; }
&lt;p&gt;Fri Apr  6 23:27:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsStart&amp;#93;&lt;/span&gt; replSet error self not present in the repl set configuration:&lt;br/&gt;
Fri Apr  6 23:27:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsStart&amp;#93;&lt;/span&gt; { _id: &quot;xxxx&quot;, version: 5, members: [ &lt;/p&gt;
{ _id: 0, host: &quot;aaaa:27017&quot; }
&lt;p&gt;, &lt;/p&gt;
{ _id: 1, host: &quot;bbbb:27017&quot; }
&lt;p&gt;, &lt;/p&gt;
{ _id: 3, host: &quot;cccc:27017&quot;, priority: 0.0, hidden: true }
&lt;p&gt; ] }&lt;br/&gt;
Fri Apr  6 23:27:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;rsStart&amp;#93;&lt;/span&gt; replSet info Couldn&apos;t load config yet. Sleeping 20sec and will try again.&lt;/p&gt;

&lt;p&gt;The address &quot;cccc&quot; is the external address of my home router. The port is forwarded from the router to the server 3 which has a local IP address like 192.168.1.x&lt;/p&gt;

&lt;p&gt;The replica set config contains the external IP address of server 3 of course. It has been working fine in the past.&lt;/p&gt;

&lt;p&gt;Now it says:&lt;/p&gt;

&lt;p&gt;                       &quot;_id&quot; : 3,&lt;br/&gt;
                        &quot;name&quot; : &quot;cccc:27017&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 8,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;DOWN&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 104,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 1333047253000,
                                &quot;i&quot; : 10
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2012-03-29T18:54:13Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2012-04-06T21:20:13Z&quot;),&lt;br/&gt;
                        &quot;pingMs&quot; : 36,&lt;br/&gt;
                        &quot;errmsg&quot; : &quot;still initializing&quot;&lt;br/&gt;
                }&lt;/p&gt;


&lt;p&gt;It sends heartbeats. The firewall config is fine, I can connect with &quot;mongo&quot; client from server 1 and from server 2 to server 3. I think it just doesn&apos;t join the set since it thinks he is not a member.&lt;/p&gt;

&lt;p&gt;It doesn&apos;t help if I use bind_ip in the config or I do not.&lt;/p&gt;

&lt;p&gt;In the past I used bind_ip with the 192.168.1.x address. This is why had these lines in the log:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; couldn&apos;t connect to localhost:27017: couldn&apos;t connect to server localhost:27017&lt;/p&gt;

&lt;p&gt;But even with these lines it worked like a charm before the upgrade. Now it doesn&apos;t no matter I use bind_ip or not.&lt;/p&gt;

&lt;p&gt;I think that the key line is: &lt;span class=&quot;error&quot;&gt;&amp;#91;rsStart&amp;#93;&lt;/span&gt; replSet error self not present in the repl set configuration. I can&apos;t set the external ip for bind_ip of course.&lt;/p&gt;

&lt;p&gt;I just deleted the whole data directory of server 3 and restarted it. Didn&apos;t help.&lt;/p&gt;</description>
                <environment>FreeBSD 9 stable</environment>
        <key id="35669">SERVER-5537</key>
            <summary>Replica set member behind NAT stopped joining after uprade</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="mage">Mage</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Apr 2012 21:48:14 +0000</created>
                <updated>Wed, 15 Aug 2012 14:24:11 +0000</updated>
                            <resolved>Sat, 7 Apr 2012 16:49:58 +0000</resolved>
                                    <version>2.0.4</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="107574" author="mage" created="Sat, 7 Apr 2012 15:35:16 +0000"  >&lt;p&gt;It seems to me that this is rather a DD-WRT issue. Server 3 can&apos;t see itself through its external ip address via port forwarding since the latest DD-WRT firmware upgrade.&lt;/p&gt;

&lt;p&gt;Sorry for the noise.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 45 weeks, 4 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 45 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10024"><![CDATA[FreeBSD]]></customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hriptj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22836</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_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|hszvlz:</customfieldvalue>

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