<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:25:44 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-11416] First Production Deployment - Problems with initiating replication</title>
                <link>https://jira.mongodb.org/browse/SERVER-11416</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Having trouble adding nodes to a replica set after converting a single standalone to a replica set.  I get the following error:&lt;/p&gt;

&lt;p&gt;sun01:PRIMARY&amp;gt; rs.add(&quot;secondary.mongodb.sungevity.com&quot;)&lt;br/&gt;
{&lt;br/&gt;
	&quot;errmsg&quot; : &quot;exception: need most members up to reconfigure, not ok : secondary.mongodb.sungevity.com:27017&quot;,&lt;br/&gt;
	&quot;code&quot; : 13144,&lt;br/&gt;
	&quot;ok&quot; : 0&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;I can connect to the node I&apos;m attempting to add from the replica node:&lt;/p&gt;

&lt;p&gt;ubuntu@primary:~$ mongo secondary.mongodb.sungevity.com/admin&lt;br/&gt;
MongoDB shell version: 2.4.6&lt;br/&gt;
connecting to: secondary.mongodb.sungevity.com/admin&lt;br/&gt;
&amp;gt; db&lt;br/&gt;
admin&lt;/p&gt;

&lt;p&gt;And I can connect to the replica node from the node I wish to add:&lt;/p&gt;

&lt;p&gt;ubuntu@secondary:~$ mongo primary.mongodb.sungevity.com/admin&lt;br/&gt;
MongoDB shell version: 2.4.6&lt;br/&gt;
connecting to: primary.mongodb.sungevity.com/admin&lt;br/&gt;
&amp;gt; db&lt;br/&gt;
admin&lt;/p&gt;

&lt;p&gt;Here is replica status output from the primary that I initiated the replica set on:&lt;/p&gt;

&lt;p&gt;sun01:PRIMARY&amp;gt; db.runCommand ( &lt;/p&gt;
{ replSetGetStatus: 1 }
&lt;p&gt; )&lt;br/&gt;
{&lt;br/&gt;
	&quot;set&quot; : &quot;sun01&quot;,&lt;br/&gt;
	&quot;date&quot; : ISODate(&quot;2013-10-28T17:16:05Z&quot;),&lt;br/&gt;
	&quot;myState&quot; : 1,&lt;br/&gt;
	&quot;members&quot; : [&lt;/p&gt;
		{
			&quot;_id&quot; : 0,
			&quot;name&quot; : &quot;primary.mongodb.sungevity.com:27017&quot;,
			&quot;health&quot; : 1,
			&quot;state&quot; : 1,
			&quot;stateStr&quot; : &quot;PRIMARY&quot;,
			&quot;uptime&quot; : 331538,
			&quot;optime&quot; : Timestamp(1382575785, 1),
			&quot;optimeDate&quot; : ISODate(&quot;2013-10-24T00:49:45Z&quot;),
			&quot;self&quot; : true
		}
&lt;p&gt;	],&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
sun01:PRIMARY&amp;gt; rs.conf()&lt;br/&gt;
{&lt;br/&gt;
	&quot;_id&quot; : &quot;sun01&quot;,&lt;br/&gt;
	&quot;version&quot; : 1,&lt;br/&gt;
	&quot;members&quot; : [&lt;/p&gt;
		{
			&quot;_id&quot; : 0,
			&quot;host&quot; : &quot;primary.mongodb.sungevity.com:27017&quot;
		}
&lt;p&gt;	]&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;I have attached both the primary (replica set node) and secondary (node I want to add) mongodb.conf files to this ticket.&lt;/p&gt;

&lt;p&gt;The documentation is so simple and clear, I figure I&apos;m missing something arcane or so obvious I&apos;m going to be embarrassed.  &lt;/p&gt;

&lt;p&gt;Thanks for your assistance.&lt;/p&gt;</description>
                <environment>Ubuntu 13.10 release at AWS in on m1.large multiple regions</environment>
        <key id="96021">SERVER-11416</key>
            <summary>First Production Deployment - Problems with initiating replication</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jjcox@sungevity.com">Joshua Cox</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Oct 2013 17:29:35 +0000</created>
                <updated>Mon, 11 Jul 2016 17:39:18 +0000</updated>
                            <resolved>Mon, 4 Nov 2013 15:17:32 +0000</resolved>
                                    <version>2.4.6</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="448557" author="jjcox@sungevity.com" created="Tue, 29 Oct 2013 23:22:36 +0000"  >&lt;p&gt;A couple of problems precipitated this ticket, both of which are solved.&lt;/p&gt;

&lt;p&gt;1) I wasn&apos;t looking at the logs at the correct path until I searched them out for this ticket, referring to my mongodb.conf file.&lt;br/&gt;
2) As a result, I didn&apos;t know the problem was due to authentication, and so then didn&apos;t realize I was incorrectly using auth instead of keyfile for inter-node authentication purposes.&lt;/p&gt;

&lt;p&gt;Now that both are corrected, my replica set appears to be running well.  You may close this ticket.&lt;/p&gt;</comment>
                            <comment id="448259" author="jjcox@sungevity.com" created="Tue, 29 Oct 2013 17:09:15 +0000"  >&lt;p&gt;Below are the command I ran and the logs from that time slice.  From what I can see, I&apos;m not authorized to add the secondary.  &lt;/p&gt;

&lt;p&gt;I am using authentication on these systems, and I&apos;ve previously attempted to configure an &apos;admin&apos; user on the admin database with identical privileges and authentication on both hosts, but were still unsuccessful.  How do I manage replication in this situation?  Do I need to pass authentication credentials as part of the rs.add command?&lt;/p&gt;

&lt;p&gt;sun01:PRIMARY&amp;gt; rs.add(&quot;secondary.mongodb.sungevity.com:27017&quot;)&lt;br/&gt;
{&lt;br/&gt;
	&quot;errmsg&quot; : &quot;exception: need most members up to reconfigure, not ok : secondary.mongodb.sungevity.com:27017&quot;,&lt;br/&gt;
	&quot;code&quot; : 13144,&lt;br/&gt;
	&quot;ok&quot; : 0&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Tue Oct 29 09:43:56.869 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn528&amp;#93;&lt;/span&gt; run command local.$cmd { count: &quot;system.replset&quot;, query: {}, fields: {} }&lt;br/&gt;
Tue Oct 29 09:43:56.869 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn528&amp;#93;&lt;/span&gt; command local.$cmd command: { count: &quot;system.replset&quot;, query: {}, fields: {} } ntoreturn:1 keyUpdates:0 locks(micros) r:40 reslen:48 0ms&lt;br/&gt;
Tue Oct 29 09:43:56.870 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn528&amp;#93;&lt;/span&gt; query local.system.replset ntoreturn:1 ntoskip:0 nscanned:1 keyUpdates:0 locks(micros) r:51 nreturned:1 reslen:130 0ms&lt;br/&gt;
Tue Oct 29 09:43:56.871 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn528&amp;#93;&lt;/span&gt; run command admin.$cmd { replSetReconfig: { _id: &quot;sun01&quot;, version: 2, members: [ &lt;/p&gt;
{ _id: 0, host: &quot;primary.mongodb.sungevity.com:27017&quot; }
&lt;p&gt;, &lt;/p&gt;
{ _id: 1.0, host: &quot;secondary.mongodb.sungevity.com:27017&quot; }
&lt;p&gt; ] } }&lt;br/&gt;
Tue Oct 29 09:43:56.871 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn528&amp;#93;&lt;/span&gt; replSet replSetReconfig config object parses ok, 2 members specified&lt;br/&gt;
Tue Oct 29 09:43:56.973 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn528&amp;#93;&lt;/span&gt; replSet warning secondary.mongodb.sungevity.com:27017 replied: &lt;/p&gt;
{ ok: 0.0, errmsg: &quot;unauthorized&quot; }
&lt;p&gt;Tue Oct 29 09:43:56.973 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn528&amp;#93;&lt;/span&gt; User Assertion: 13144:need most members up to reconfigure, not ok : secondary.mongodb.sungevity.com:27017&lt;br/&gt;
Tue Oct 29 09:43:56.977 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn528&amp;#93;&lt;/span&gt; replSet replSetReconfig exception: need most members up to reconfigure, not ok : secondary.mongodb.sungevity.com:27017&lt;br/&gt;
Tue Oct 29 09:43:56.977 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn528&amp;#93;&lt;/span&gt; command admin.$cmd command: { replSetReconfig: { _id: &quot;sun01&quot;, version: 2, members: [ &lt;/p&gt;
{ _id: 0, host: &quot;primary.mongodb.sungevity.com:27017&quot; }
&lt;p&gt;, &lt;/p&gt;
{ _id: 1.0, host: &quot;secondary.mongodb.sungevity.com:27017&quot; }
&lt;p&gt; ] } } ntoreturn:1 keyUpdates:0 locks(micros) W:2 reslen:154 106ms&lt;br/&gt;
Tue Oct 29 09:43:56.981 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn528&amp;#93;&lt;/span&gt; run command admin.$cmd &lt;/p&gt;
{ replSetGetStatus: 1.0, forShell: 1.0 }
&lt;p&gt;Tue Oct 29 09:43:56.981 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn528&amp;#93;&lt;/span&gt; command admin.$cmd command: &lt;/p&gt;
{ replSetGetStatus: 1.0, forShell: 1.0 }
&lt;p&gt; ntoreturn:1 keyUpdates:0  reslen:260 0ms&lt;br/&gt;
Tue Oct 29 09:43:59.570 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; run command admin.$cmd &lt;/p&gt;
{ ismaster: 1 }
&lt;p&gt;Tue Oct 29 09:43:59.570 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; command admin.$cmd command: &lt;/p&gt;
{ ismaster: 1 }
&lt;p&gt; ntoreturn:1 keyUpdates:0  reslen:294 0ms&lt;br/&gt;
Tue Oct 29 09:43:59.642 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn3&amp;#93;&lt;/span&gt; run command admin.$cmd &lt;/p&gt;
{ ismaster: 1 }
&lt;p&gt;Tue Oct 29 09:43:59.647 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn3&amp;#93;&lt;/span&gt; command admin.$cmd command: &lt;/p&gt;
{ ismaster: 1 }
&lt;p&gt; ntoreturn:1 keyUpdates:0  reslen:294 0ms&lt;br/&gt;
Tue Oct 29 09:43:59.643 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; run command admin.$cmd &lt;/p&gt;
{ ismaster: 1 }
&lt;p&gt;Tue Oct 29 09:43:59.648 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; command admin.$cmd command: &lt;/p&gt;
{ ismaster: 1 }
&lt;p&gt; ntoreturn:1 keyUpdates:0  reslen:294 0ms&lt;br/&gt;
Tue Oct 29 09:44:04.438 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; run command admin.$cmd &lt;/p&gt;
{ ismaster: 1 }
&lt;p&gt;Tue Oct 29 09:44:04.438 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; command admin.$cmd command: &lt;/p&gt;
{ ismaster: 1 }
&lt;p&gt; ntoreturn:1 keyUpdates:0  reslen:294 0ms&lt;br/&gt;
Tue Oct 29 09:44:04.440 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; run command admin.$cmd &lt;/p&gt;
{ serverStatus: 1 }
&lt;p&gt;Tue Oct 29 09:44:04.440 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; command admin.$cmd command: &lt;/p&gt;
{ serverStatus: 1 }
&lt;p&gt; ntoreturn:1 keyUpdates:0 locks(micros) r:56 reslen:3490 0ms&lt;br/&gt;
Tue Oct 29 09:44:04.446 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; run command admin.$cmd &lt;/p&gt;
{ replSetGetStatus: 1 }
&lt;p&gt;Tue Oct 29 09:44:04.446 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; command admin.$cmd command: &lt;/p&gt;
{ replSetGetStatus: 1 }
&lt;p&gt; ntoreturn:1 keyUpdates:0  reslen:260 0ms&lt;br/&gt;
Tue Oct 29 09:44:04.448 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; query local.system.replset ntoreturn:1 ntoskip:0 nscanned:1 keyUpdates:0 locks(micros) r:48 nreturned:1 reslen:130 0ms&lt;br/&gt;
Tue Oct 29 09:44:04.449 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; query local.oplog.rs query: { $query: {}, $orderby: &lt;/p&gt;
{ $natural: 1 }
&lt;p&gt; } ntoreturn:1 ntoskip:0 nscanned:1 keyUpdates:0 locks(micros) r:55 nreturned:1 reslen:37 0ms&lt;br/&gt;
Tue Oct 29 09:44:04.451 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; query local.oplog.rs query: { $query: {}, $orderby: &lt;/p&gt;
{ $natural: -1 }
&lt;p&gt; } ntoreturn:1 ntoskip:0 nscanned:1 keyUpdates:0 locks(micros) r:40 nreturned:1 reslen:37 0ms&lt;br/&gt;
Tue Oct 29 09:44:04.452 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; run command local.$cmd &lt;/p&gt;
{ collstats: &quot;oplog.rs&quot; }
&lt;p&gt;Tue Oct 29 09:44:04.452 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; command local.$cmd command: &lt;/p&gt;
{ collstats: &quot;oplog.rs&quot; }
&lt;p&gt; ntoreturn:1 keyUpdates:0 locks(micros) r:45 reslen:286 0ms&lt;br/&gt;
Tue Oct 29 09:44:04.454 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn527&amp;#93;&lt;/span&gt; query config.settings ntoreturn:0 ntoskip:0 nscanned:0 keyUpdates:0 locks(micros) r:23 nreturned:0 reslen:20 0ms&lt;/p&gt;</comment>
                            <comment id="447988" author="dan@10gen.com" created="Tue, 29 Oct 2013 03:07:32 +0000"  >&lt;p&gt;This should normally work fine.  When you try adding the secondary, can you attach the log from the primary?&lt;/p&gt;

&lt;p&gt;I&apos;m pretty sure you don&apos;t need to, but can you try adding with the port explicitly included, like so: &lt;tt&gt;rs.add(&quot;secondary.mongodb.sungevity.com:27017&quot;)&lt;/tt&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="33118" name="mongo(primary).conf" size="2295" author="jjcox@sungevity.com" created="Mon, 28 Oct 2013 17:29:35 +0000"/>
                            <attachment id="33117" name="mongo(secondary).conf" size="2310" author="jjcox@sungevity.com" created="Mon, 28 Oct 2013 17:29:35 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 29 Oct 2013 03:07:32 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 16 weeks, 1 day 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 16 weeks, 1 day 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>jjcox@sungevity.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrm93b:</customfieldvalue>

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

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

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