<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:09:52 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>[CDRIVER-559] Issues in cluster authentication mod</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-559</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Hi:&lt;/p&gt;

&lt;p&gt;I tried to setup my mongoDB cluster in authentication mode. Was able to create a admin user with role &quot;userAdminAnyDatabase&quot; in &quot;admin&quot; db in not authentication mode. Once I turn on the authentication mode, any operation I perform, I get the following error for any action as the &quot;admin&quot; user.&lt;/p&gt;

{&quot;error&quot;:&quot;error creating initial database config information :: caused by :: can&apos;t find a shard to put new db on&quot;}
&lt;p&gt;.&lt;/p&gt;

&lt;p&gt;Here is the complete procedure that we followed. Version of mongodb being used is 2.6.4.&lt;/p&gt;

&lt;p&gt;&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;http://docs.mongodb.org/manual/tutorial/deploy-replica-set-with-auth/&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="187848">CDRIVER-559</key>
            <summary>Issues in cluster authentication mod</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="raja.vobugari@altisource.com">Raja Vobugari</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Mar 2015 12:30:08 +0000</created>
                <updated>Wed, 3 May 2017 22:14:51 +0000</updated>
                            <resolved>Fri, 6 Mar 2015 20:24:23 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="845023" author="raja.vobugari@altisource.com" created="Fri, 6 Mar 2015 17:48:15 +0000"  >&lt;p&gt;Ok..go ahead and close this please. I have created another ticket on the SERVER project...&lt;/p&gt;</comment>
                            <comment id="845002" author="jesse" created="Fri, 6 Mar 2015 17:33:46 +0000"  >&lt;p&gt;Hi Raja, it looks like you intended to file this in the SERVER project, not the CDRIVER project. I&apos;ll ask to have this issue moved to the appropriate project.&lt;/p&gt;</comment>
                            <comment id="844757" author="raja.vobugari@altisource.com" created="Fri, 6 Mar 2015 13:45:52 +0000"  >&lt;p&gt;I am using Keyfile based authenticaiton.&lt;/p&gt;</comment>
                            <comment id="844754" author="raja.vobugari@altisource.com" created="Fri, 6 Mar 2015 13:44:55 +0000"  >&lt;p&gt;I had create two accounts one account namely &quot;admin&quot; with a role of &quot;useAdminAnyDatabase&quot; another account namely &quot;superuser&quot; with a role of &quot;root&quot;. Both of them on admin database. I am able to create additional users using &quot;admin&quot; account, but not able to create a database or collections using either of them. This is the error I get...&lt;/p&gt;

&lt;p&gt;ongos&amp;gt; use admin&lt;br/&gt;
switched to db admin&lt;br/&gt;
mongos&amp;gt; db.auth(&quot;superuser&quot;, &quot;123456&quot;)&lt;br/&gt;
1&lt;br/&gt;
mongos&amp;gt; use xyz&lt;br/&gt;
switched to db xyz&lt;br/&gt;
mongos&amp;gt; db.createcollection(&quot;hello&quot;)&lt;br/&gt;
2015-03-06T08:39:08.778-0500 TypeError: Property &apos;createcollection&apos; of object xyz is not a function&lt;br/&gt;
mongos&amp;gt; db.createCollection(&quot;hello&quot;)&lt;br/&gt;
2015-03-06T08:39:39.540-0500 error: {&lt;br/&gt;
	&quot;$err&quot; : &quot;error creating initial database config information :: caused by :: can&apos;t find a shard to put new db on&quot;,&lt;br/&gt;
	&quot;code&quot; : 10185&lt;br/&gt;
} at src/mongo/shell/query.js:131&lt;/p&gt;

&lt;p&gt;I look at the shard status...I see the following...&lt;/p&gt;

&lt;p&gt;mongos&amp;gt; sh.status()&lt;br/&gt;
&amp;#8212; Sharding Status &amp;#8212;&lt;br/&gt;
  sharding version: {&lt;br/&gt;
	&quot;_id&quot; : 1,&lt;br/&gt;
	&quot;version&quot; : 4,&lt;br/&gt;
	&quot;minCompatibleVersion&quot; : 4,&lt;br/&gt;
	&quot;currentVersion&quot; : 5,&lt;br/&gt;
	&quot;clusterId&quot; : ObjectId(&quot;54f92c3fd77ac96ad05d5924&quot;)&lt;br/&gt;
}&lt;br/&gt;
  shards:&lt;br/&gt;
  databases:&lt;/p&gt;
	{  &quot;_id&quot; : &quot;admin&quot;,  &quot;partitioned&quot; : false,  &quot;primary&quot; : &quot;config&quot; }

&lt;p&gt;mongos&amp;gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="187881">SERVER-17494</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs6vi7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>165549</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>