<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:36:16 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-14883] MongoDB replication does not work with authentication.</title>
                <link>https://jira.mongodb.org/browse/SERVER-14883</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We have standalone MongoDB server which has authentication service enabled. We want to query oplog.rs collection to implement certain feature. When we try to enable replication we get following error.&lt;/p&gt;

&lt;p&gt;(code)&lt;br/&gt;
&amp;gt; rs.initiate()&lt;br/&gt;
{&lt;br/&gt;
        &quot;info2&quot; : &quot;no configuration explicitly specified &amp;#8211; making one&quot;,&lt;br/&gt;
        &quot;me&quot; : &quot;EDemo:37017&quot;,&lt;br/&gt;
        &quot;errmsg&quot; : &quot;couldn&apos;t initiate : can&apos;t find self in the replset config my port: 37017&quot;,&lt;br/&gt;
        &quot;ok&quot; : 0&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;&amp;gt; db.isMaster()&lt;br/&gt;
{&lt;br/&gt;
        &quot;ismaster&quot; : false,&lt;br/&gt;
        &quot;secondary&quot; : false,&lt;br/&gt;
        &quot;info&quot; : &quot;can&apos;t get local.system.replset config from self or any seed (EMPTYCONFIG)&quot;,&lt;br/&gt;
        &quot;isreplicaset&quot; : true,&lt;br/&gt;
        &quot;maxBsonObjectSize&quot; : 16777216,&lt;br/&gt;
        &quot;localTime&quot; : ISODate(&quot;2014-08-13T10:50:40.321Z&quot;),&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;On server following error is observed:&lt;/p&gt;

&lt;p&gt;invalid parameter: expected an object ()&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;rsStart&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (EMPTYCONFIG)&lt;br/&gt;
(code)&lt;/p&gt;

&lt;p&gt;If we disable authentication then replication works fine. please suggest.&lt;/p&gt;</description>
                <environment></environment>
        <key id="152344">SERVER-14883</key>
            <summary>MongoDB replication does not work with authentication.</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="vsugur">Vinod Sugur</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Aug 2014 10:59:00 +0000</created>
                <updated>Wed, 10 Dec 2014 23:11:11 +0000</updated>
                            <resolved>Thu, 14 Aug 2014 15:56:32 +0000</resolved>
                                    <version>2.2.7</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="690711" author="spencer" created="Thu, 14 Aug 2014 15:56:32 +0000"  >&lt;p&gt;Great!  Glad to hear it.&lt;/p&gt;</comment>
                            <comment id="690308" author="vsugur" created="Thu, 14 Aug 2014 07:39:58 +0000"  >&lt;p&gt;I configured mongod instance using keyFile and it is working fine. &lt;/p&gt;</comment>
                            <comment id="689389" author="spencer" created="Wed, 13 Aug 2014 14:57:24 +0000"  >&lt;p&gt;Looks like you have not provided a &lt;a href=&quot;http://docs.mongodb.org/manual/reference/configuration-options/#security.keyFile&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;keyFile&lt;/a&gt; which is needed so that the nodes in the replica set can authenticate to each other.  See &lt;a href=&quot;http://docs.mongodb.org/manual/tutorial/deploy-replica-set-with-auth/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this tutorial&lt;/a&gt; for more information on deploying a replica set with access control enabled.&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 13 Aug 2014 14:57:24 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 26 weeks, 6 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>spencer@mongodb.com</customfieldvalue>
            <customfieldvalue>vsugur</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlpyv:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>132250</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;Start mongod instance:&lt;/p&gt;

&lt;p&gt;mongod --dbpath d:\data &lt;/p&gt;

&lt;p&gt;From mong client create user:&lt;/p&gt;

&lt;p&gt;db.addUser(&quot;u&quot;,&quot;p&quot;)&lt;br/&gt;
db.auth(&quot;u&quot;,&quot;p&quot;)&lt;/p&gt;


&lt;p&gt;Stop the server and restart it with following options&lt;/p&gt;

&lt;p&gt;mongod --dbpath d:\data --auth --replSet &quot;rs0&quot;&lt;/p&gt;

&lt;p&gt;Execute following from mongo client with/without authentication&lt;/p&gt;

&lt;p&gt;rs.initiate()&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|hsgqmf:</customfieldvalue>

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