<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:07:40 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-5027] Cannot add another mongos process to an app server and have it point to a single replica set.</title>
                <link>https://jira.mongodb.org/browse/SERVER-5027</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We are testing out various configurations. What we currently have is a one server replica set with a mongod(configsvr) process running on that server. Then we have 2 application servers app1 and app2. App1 has a mongos process running on it. I tried to set up a mongos process on app2, but I cannot get it to work. I am stuck with a permissions issue. I try to run the db.addUser command on app2 and it fails. I then try to run the db.runCommand(&lt;/p&gt;
{addShard:&quot;NH_Data_01/t01-vm-nsdb01:27018&quot;}
&lt;p&gt;) command on the app2 server and it fails with unauthorized. The whole system is running with a keyFile as well, if that matters. The error code is below.&lt;/p&gt;

&lt;p&gt;&amp;gt; use admin&lt;br/&gt;
switched to db admin&lt;br/&gt;
&amp;gt; db.addUser(&quot;Username&quot;,&quot;Password&quot;)&lt;br/&gt;
Tue Feb 21 18:30:15 uncaught exception: error &lt;/p&gt;
{ &quot;$err&quot; : &quot;unauthorized&quot;, &quot;code&quot; : 15845 }
&lt;p&gt;&amp;gt; show users&lt;br/&gt;
Tue Feb 21 18:30:26 uncaught exception: error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;unauthorized&quot;, &quot;code&quot; : 15845 }
&lt;p&gt;&amp;gt; db.auth(&quot;Same Username that I tried to add above&quot;,&quot;Password&quot;) &amp;#8211; thought that maybe I added it earlier and forgot, not the case...&lt;br/&gt;
0&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; db.runCommand(&lt;/p&gt;
{addShard:&quot;NH_Data_01/t01-vm-nsdb01:27018&quot;}
&lt;p&gt;)&lt;/p&gt;
{ &quot;ok&quot; : 0, &quot;errmsg&quot; : &quot;unauthorized&quot; }
&lt;p&gt;&amp;gt;&lt;/p&gt;</description>
                <environment>Windows Server 2003 R2</environment>
        <key id="31136">SERVER-5027</key>
            <summary>Cannot add another mongos process to an app server and have it point to a single replica set.</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="-1">Unassigned</assignee>
                                    <reporter username="erik_holm@trimble.com">Erik Holm</reporter>
                        <labels>
                            <label>mongos</label>
                    </labels>
                <created>Tue, 21 Feb 2012 18:44:57 +0000</created>
                <updated>Wed, 15 Aug 2012 14:24:20 +0000</updated>
                            <resolved>Wed, 22 Feb 2012 22:40:32 +0000</resolved>
                                    <version>2.0.2</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="91113" author="scotthernandez" created="Wed, 22 Feb 2012 22:40:23 +0000"  >&lt;p&gt;It is good to hear you get things working. I am going to close this as you are following up in the group.&lt;/p&gt;</comment>
                            <comment id="91112" author="scotthernandez" created="Wed, 22 Feb 2012 22:39:22 +0000"  >&lt;p&gt;A lot of these questions are best asked on the monodb-user (google-groups) forum since the community can be involved more directly. Jira is more for server issues and bugs, not for general questions like this.&lt;/p&gt;

&lt;p&gt;Please ask this question on the list: &lt;a href=&quot;http://groups.google.com/group/mongodb-user/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-user/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="91099" author="erik_holm@trimble.com" created="Wed, 22 Feb 2012 22:21:55 +0000"  >&lt;p&gt;First off, I would like to ask that the team please be more observant to JIRA tickets. This ticket was looked at and given a generic response with 10 minutes of being open, then not looked at again. Not much in terms of support...&lt;/p&gt;

&lt;p&gt;This ticket can be closed, though I do have one other question. If I should open a seperate ticket please let me know.&lt;/p&gt;

&lt;p&gt;We set up a replica set across 3 servers. I added an admin user to the first server in the replica set prior to bringing it up as a replica set. I then brought the replica set up. Once that was complete I tried to add an admin user to one of the secondary servers and it failed with the error below. The things is, when I tried to add the admin user to all 3 servers before bringing them up as a replica set it errored and said that my secodary server was not empty, and all but the initiator had to be empty. The short of it: how do I add an admin user to an existing replica set? If I have to do it prior to bringing it up as a replica set, how do I get around the error of needing the database to be empty. That was the only object in the database the admin user.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Erik Holm&lt;/p&gt;</comment>
                            <comment id="90597" author="erik_holm@trimble.com" created="Tue, 21 Feb 2012 21:14:31 +0000"  >&lt;p&gt;Scott,&lt;/p&gt;

&lt;p&gt;I just got into our DB, I had been fat fingering the password. Anyway, I ran a list shards command on App1 and was able to see the shard. Then I went to App2  and ran the same command and it shows up there too. My question is, do you have to run the add shard command for each mongos process you bring up? That is what I was trying to do and it wouldn&apos;t let me.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Erik&lt;/p&gt;</comment>
                            <comment id="90542" author="erik_holm@trimble.com" created="Tue, 21 Feb 2012 18:54:07 +0000"  >&lt;p&gt;I did. I copied the config file and the keyFile from App1 to App2 before I tried to set up App2. I verified that the paths are identical as well.&lt;/p&gt;</comment>
                            <comment id="90536" author="scotthernandez" created="Tue, 21 Feb 2012 18:47:37 +0000"  >&lt;p&gt;Did you start the mongos with the same keyFile option? &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Security+and+Authentication#SecurityandAuthentication-ReplicaSetandShardingAuthentication&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Security+and+Authentication#SecurityandAuthentication-ReplicaSetandShardingAuthentication&lt;/a&gt;&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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 21 Feb 2012 18:47:37 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years 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>
                            12 years 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>erik_holm@trimble.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrocu7:</customfieldvalue>

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

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

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