<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:28 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-3587] mongos should check with config servers about auth on startup</title>
                <link>https://jira.mongodb.org/browse/SERVER-3587</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This is more of a usability issue than a bug. If you set up a sharded cluster with auth and forget to start mongos with --keyFile everything runs fine until you add an admin user. After adding the user db.auth() will fail without a useful error and balancing rounds will fail.&lt;/p&gt;

&lt;p&gt;MongoDB shell version: 1.9.2&lt;br/&gt;
connecting to: test&lt;br/&gt;
mongos&amp;gt; use admin&lt;br/&gt;
switched to db admin&lt;br/&gt;
mongos&amp;gt; db.runCommand(&lt;/p&gt;
{&apos;addShard&apos;: &apos;localhost:27018&apos;}
&lt;p&gt;)&lt;/p&gt;
{ &quot;shardAdded&quot; : &quot;shard0000&quot;, &quot;ok&quot; : 1 }
&lt;p&gt;mongos&amp;gt; db.runCommand(&lt;/p&gt;
{&apos;addShard&apos;: &apos;localhost:27019&apos;}
&lt;p&gt;)&lt;/p&gt;
{ &quot;shardAdded&quot; : &quot;shard0001&quot;, &quot;ok&quot; : 1 }
&lt;p&gt;mongos&amp;gt; db.system.users.find()&lt;br/&gt;
mongos&amp;gt; db.system.users.count()&lt;br/&gt;
0&lt;br/&gt;
mongos&amp;gt; db.addUser(&apos;theadmin&apos;, &apos;mypassword&apos;)&lt;br/&gt;
{&lt;br/&gt;
	&quot;singleShard&quot; : &quot;localhost:27020&quot;,&lt;br/&gt;
	&quot;n&quot; : 0,&lt;br/&gt;
	&quot;connectionId&quot; : 14,&lt;br/&gt;
	&quot;err&quot; : null,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
{&lt;br/&gt;
	&quot;user&quot; : &quot;theadmin&quot;,&lt;br/&gt;
	&quot;readOnly&quot; : false,&lt;br/&gt;
	&quot;pwd&quot; : &quot;02cdbcb825fda3c0824be229afa605e8&quot;,&lt;br/&gt;
	&quot;_id&quot; : ObjectId(&quot;4e456aa827b2e95a4ccfbe29&quot;)&lt;br/&gt;
}&lt;br/&gt;
mongos&amp;gt; db.auth(&apos;theadmin&apos;, &apos;mypassword&apos;)&lt;br/&gt;
0&lt;/p&gt;


&lt;p&gt;Fri Aug 12 11:02:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; distributed lock &apos;balancer/behackett-dt:27017:1313172036:1804289383&apos; unlocked. &lt;br/&gt;
Fri Aug 12 11:02:16 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; ~ScopedDBConnection: _conn != null&lt;br/&gt;
Fri Aug 12 11:02:16 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; ~ScopedDbConnection: _conn != null&lt;br/&gt;
Fri Aug 12 11:02:16 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; caught exception while doing balance: nextSafe(): &lt;/p&gt;
{ $err: &quot;unauthorized db:config lock type:-1 client:127.0.0.1&quot;, code: 10057 }
&lt;p&gt;Fri Aug 12 11:02:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt;  authenticate: &lt;/p&gt;
{ authenticate: 1.0, user: &quot;theadmin&quot;, nonce: &quot;90a00bd5b3a86963&quot;, key: &quot;ded39b5832e03051d7a0558b55355072&quot; }


&lt;p&gt;mongos should check with the config servers to see if they were started with --keyFile on first startup and log a useful warning. This will potentially cut down on mongodb-user questions.&lt;/p&gt;</description>
                <environment></environment>
        <key id="20930">SERVER-3587</key>
            <summary>mongos should check with config servers about auth on startup</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="9">Done</resolution>
                                        <assignee username="kristina">Kristina Chodorow</assignee>
                                    <reporter username="bernie@mongodb.com">Bernie Hackett</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Aug 2011 18:46:46 +0000</created>
                <updated>Mon, 11 Jul 2016 18:33:59 +0000</updated>
                            <resolved>Thu, 18 Aug 2011 15:42:42 +0000</resolved>
                                    <version>1.9.2</version>
                                    <fixVersion>2.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="49290" author="kristina" created="Thu, 18 Aug 2011 15:42:42 +0000"  >&lt;p&gt;Now errors out suggesting you start with --keyFile (people could start with the wrong keyFile, but it should give them the right idea).&lt;/p&gt;</comment>
                            <comment id="49284" author="auto" created="Thu, 18 Aug 2011 15:26:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;kchodorow&apos;, u&apos;name&apos;: u&apos;Kristina&apos;, u&apos;email&apos;: u&apos;kristina@10gen.com&apos;}
&lt;p&gt;Message: do not start mongos without checking auth &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3587&quot; title=&quot;mongos should check with config servers about auth on startup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3587&quot;&gt;&lt;del&gt;SERVER-3587&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/93ce4de477c610b8ba667b22b72121bd00a40d0b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/93ce4de477c610b8ba667b22b72121bd00a40d0b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="49054" author="kristina" created="Wed, 17 Aug 2011 17:21:37 +0000"  >&lt;p&gt;They don&apos;t, they just start spewing errors when they first try to do stuff.  It should be easy to make them ping the config servers right away for 2.0.&lt;/p&gt;</comment>
                            <comment id="48754" author="eliot" created="Tue, 16 Aug 2011 05:26:53 +0000"  >&lt;p&gt;@kristina - shouldn&apos;t things fail immediately if the mongos doesn&apos;t have --keyfile and the config servers do?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 16 Aug 2011 05:26:53 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 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>
                            12 years, 26 weeks, 6 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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>bernie@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrotwv:</customfieldvalue>

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

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

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