<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:13:11 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-6942] Will mongooplog tool work against servers that require authentication?</title>
                <link>https://jira.mongodb.org/browse/SERVER-6942</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Ive been trying to use the mongooplog tool to replay operations from a live running replica set we have into a local db.&lt;/p&gt;

&lt;p&gt;However it keeps failing with:&lt;/p&gt;

&lt;p&gt;Wed Sep  5 07:39:27 creating new connection to:127.0.0.1:27017&lt;br/&gt;
Wed Sep  5 07:39:27 BackgroundJob starting: ConnectBG&lt;br/&gt;
Wed Sep  5 07:39:27 connected connection!&lt;br/&gt;
connected to: 127.0.0.1&lt;br/&gt;
Wed Sep  5 07:39:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;oplogreplay&amp;#93;&lt;/span&gt; going to connect&lt;br/&gt;
Wed Sep  5 07:39:27 BackgroundJob starting: ConnectBG&lt;br/&gt;
Wed Sep  5 07:39:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;oplogreplay&amp;#93;&lt;/span&gt; connected&lt;br/&gt;
Wed Sep  5 07:39:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;oplogreplay&amp;#93;&lt;/span&gt; starting from Sep  4 07:39:27:0&lt;br/&gt;
Wed Sep  5 07:39:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;oplogreplay&amp;#93;&lt;/span&gt; repl: local.oplog.rs.find({ ts: &lt;/p&gt;
{ $gte: new Date(5784331245513080832) }
&lt;p&gt; })&lt;br/&gt;
Wed Sep  5 07:39:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;oplogreplay&amp;#93;&lt;/span&gt; &lt;/p&gt;
{ $err: &quot;unauthorized db:local ns:local.oplog.rs lock type:0 client:80.169.144.162&quot;, code: 10057 }
&lt;p&gt;Wed Sep  5 07:39:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;oplogreplay&amp;#93;&lt;/span&gt; error getting oplog&lt;br/&gt;
Wed Sep  5 07:39:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;oplogreplay&amp;#93;&lt;/span&gt; &lt;/p&gt;
{ $err: &quot;unauthorized db:local ns:local.oplog.rs lock type:0 client:80.169.144.162&quot;, code: 10057 }


&lt;p&gt;I then realised looking back at the documentation for mongooplog (&lt;a href=&quot;http://docs.mongodb.org/manual/reference/mongooplog/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/mongooplog/&lt;/a&gt;) that &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If the mongod instance specified by the --from argument is running with authentication, then mongooplog will not be able to copy oplog entries.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Firstly just to be sure:  is this the reason why its failing for me?&lt;/p&gt;

&lt;p&gt;Secondly is this likely to be changed in the future? so that you can use it against a mongod instance that requires authentication?&lt;/p&gt;

&lt;p&gt;Thanks&lt;br/&gt;
Nadeem&lt;/p&gt;</description>
                <environment></environment>
        <key id="49461">SERVER-6942</key>
            <summary>Will mongooplog tool work against servers that require authentication?</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="3">Duplicate</resolution>
                                        <assignee username="mikeo@mongodb.com">Michael O&apos;Brien</assignee>
                                    <reporter username="kiyanwang">Nadeem Shabir</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 Sep 2012 15:03:58 +0000</created>
                <updated>Tue, 24 Jun 2014 07:10:14 +0000</updated>
                            <resolved>Thu, 6 Sep 2012 05:13:47 +0000</resolved>
                                    <version>2.2.0</version>
                                                    <component>Tools</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="632342" author="brettcave" created="Tue, 24 Jun 2014 07:10:14 +0000"  >&lt;p&gt;would like to vote for this issue, but am unable to - would be useful to be able to replay oplog from a server with authentication enabled.&lt;/p&gt;</comment>
                            <comment id="161029" author="dan@10gen.com" created="Thu, 6 Sep 2012 05:13:47 +0000"  >&lt;p&gt;As you have referenced in the documentation, mongooplog does not work when the &lt;tt&gt;--from&lt;/tt&gt; host requires authentication.  This is the cause of your failure.&lt;/p&gt;

&lt;p&gt;You can watch/vote for the issue which describes this feature: &lt;a href=&quot;https://jira.mongodb.org/browse/TOOLS-173&quot; title=&quot;mongooplog needs correct options (auth, ssl, ipv6 for src/dst)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;TOOLS-173&quot;&gt;&lt;del&gt;SERVER-6153&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="41991">TOOLS-173</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 6 Sep 2012 05:13:47 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 34 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 34 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>brettcave</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>mikeo@mongodb.com</customfieldvalue>
            <customfieldvalue>kiyanwang</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnprr:</customfieldvalue>

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

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

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