<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:11:17 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-6294] Replicate Set setup error message: &quot;local.oplog.rs is not empty on the initiating member.  cannot initiate&quot;</title>
                <link>https://jira.mongodb.org/browse/SERVER-6294</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We have a Mongo node running and we want to add a secondary and an arbiter. Current node will be our Primary. All three are up and running and have the exact same configuration. When we try to run rs.initiate(), we get  &quot;local.oplog.rs is not empty on the initiating member.  cannot initiate&quot; error. There is data in the local.oplog.rs collection on the primary. It&apos;s most likely got there during our original attempt to stand up the replica set. At that time if brought out primary down to its knees and we stopped. Since then, we copied most of the current data to the secondary. We were expecting for the nodes to come up and then for the secondary to balance the deltas. Should we just delete the contents of &quot;local.oplog.rs&quot;? Can we just drop it?&lt;/p&gt;</description>
                <environment>Windows 2008 Server R2</environment>
        <key id="43305">SERVER-6294</key>
            <summary>Replicate Set setup error message: &quot;local.oplog.rs is not empty on the initiating member.  cannot initiate&quot;</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="eugene@magazineradar.com">Eugene Shustef</reporter>
                        <labels>
                    </labels>
                <created>Tue, 3 Jul 2012 19:39:56 +0000</created>
                <updated>Fri, 15 Feb 2013 15:06:31 +0000</updated>
                            <resolved>Mon, 27 Aug 2012 18:27:27 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="154424" author="jesse" created="Fri, 17 Aug 2012 16:43:55 +0000"  >&lt;p&gt;Presuming you have no collections you care about in &apos;local&apos;, that you have only the oplog or you have nothing in &apos;local&apos;, then it is safe to remove &apos;local&apos; according to Eliot&apos;s instructions above.&lt;/p&gt;

&lt;p&gt;To reiterate, as Eliot says, a new MongoDB secondary must be &lt;b&gt;empty&lt;/b&gt; when added to a replica set; Mongo does &lt;b&gt;not&lt;/b&gt; sync deltas the way that, for example, rsync does.&lt;/p&gt;</comment>
                            <comment id="139735" author="menny" created="Thu, 5 Jul 2012 07:52:49 +0000"  >&lt;p&gt;I have an operational mongoDB, and I&apos;m trying to upgrade to replicaset. Get the same error you did.&lt;br/&gt;
My question is, is it safe (data-wise) to remove the local DB?&lt;/p&gt;</comment>
                            <comment id="139703" author="eliot" created="Thu, 5 Jul 2012 00:28:08 +0000"  >&lt;p&gt;Without an oplog, there is no way to sync just the deltas as we don&apos;t know where to start.&lt;/p&gt;</comment>
                            <comment id="139622" author="eugene@magazineradar.com" created="Wed, 4 Jul 2012 14:55:01 +0000"  >&lt;p&gt;That worked. Another question if I may. We originally restored the secondary db from the mongodump from the primary thinking that upon startup the secondary will only sync deltas. It appears to just wipe out the current contents and rsync from scratch. Is there no way to just sync the deltas? The initial rsync is killing the primary server.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="139362" author="eliot" created="Tue, 3 Jul 2012 21:53:37 +0000"  >&lt;p&gt;Is there a config on the node you want to be primary?&lt;br/&gt;
If not, you should: &lt;br/&gt;
shutdown&lt;br/&gt;
remove local.*&lt;br/&gt;
restart&lt;br/&gt;
initiate&lt;br/&gt;
add other members&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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 3 Jul 2012 21:53:37 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 26 weeks, 5 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>false</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, 26 weeks, 5 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>jesse@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>eugene@magazineradar.com</customfieldvalue>
            <customfieldvalue>menny</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnxk7:</customfieldvalue>

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

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

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