<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:30: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-13045] issue with cluster</title>
                <link>https://jira.mongodb.org/browse/SERVER-13045</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have a three sharded cluster running in a test environment. Problem is when I try to query the dbs am getting an error message that the other two shards does not have a primary. &lt;/p&gt;

&lt;p&gt;ar  5 05:34:19.872 listDatabases failed:{&lt;br/&gt;
        &quot;code&quot; : 10009,&lt;br/&gt;
        &quot;ok&quot; : 0,&lt;br/&gt;
        &quot;errmsg&quot; : &quot;exception: ReplicaSetMonitor no master found for set: SHARD2&quot;&lt;br/&gt;
} at src/mongo/shell/mongo.js:46&lt;/p&gt;

&lt;p&gt;Now when I log into the other two shards I am seeing that they are both logged in as secondary. The first that Shard that i have created is showing up as primary. Any idea why this would happen?&lt;/p&gt;

&lt;p&gt;Also, I have given one of my db&apos;s dbAdmin and readWriteAdmin on any databases, can you tell me why he would be unable to query the dbs? He ran show dbs from the admin db and got an unauthorized error message.&lt;/p&gt;

&lt;p&gt;Please advise. We are beginning to run heavy tests, We are almost ready to start running mongo in our production environment as we have already started converting our application from mysql.&lt;/p&gt;

&lt;p&gt;thanks.&lt;/p&gt;</description>
                <environment></environment>
        <key id="117794">SERVER-13045</key>
            <summary>issue with cluster</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="dwayneexec@gmail.com">Dwayne Mcnab</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 Mar 2014 15:47:11 +0000</created>
                <updated>Wed, 10 Dec 2014 23:17:59 +0000</updated>
                            <resolved>Wed, 5 Mar 2014 22:56:11 +0000</resolved>
                                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="510683" author="dwayneexec@gmail.com" created="Thu, 6 Mar 2014 16:21:20 +0000"  >&lt;p&gt;Ok Andy, &lt;/p&gt;

&lt;p&gt;One of my DBA&apos;s had inserted by mistake some document into the configserver, could that have caused the problem? What i did to resolve this was to restart the mongos service. Then I noticed that I was able to synchronize the databases.&lt;/p&gt;

&lt;p&gt;Thanks again.&lt;/p&gt;</comment>
                            <comment id="510344" author="schwerin" created="Wed, 5 Mar 2014 22:55:39 +0000"  >&lt;p&gt;Dwayne, I&apos;m going to resolve this ticket.  Please re-open it if you see the situation again, or if you have a set of reproduction steps.&lt;/p&gt;</comment>
                            <comment id="510175" author="schwerin" created="Wed, 5 Mar 2014 20:38:04 +0000"  >&lt;p&gt;The current state of the replicasets look healthy &amp;#8211; each has one primary node, they&apos;re getting what look like regular heartbeats from one another.  If the problem happens again, please capture the rs.status() right away, and we&apos;ll try to catch it in the act.&lt;/p&gt;</comment>
                            <comment id="510131" author="dwayneexec@gmail.com" created="Wed, 5 Mar 2014 20:04:06 +0000"  >&lt;p&gt;I am running v2.4.9.&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
        &quot;set&quot; : &quot;SHARD1&quot;,&lt;br/&gt;
        &quot;date&quot; : ISODate(&quot;2014-03-05T14:58:01Z&quot;),&lt;br/&gt;
        &quot;myState&quot; : 1,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 0,
                        &quot;name&quot; : &quot;mongo-27-1:27011&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 1,
                        &quot;stateStr&quot; : &quot;PRIMARY&quot;,
                        &quot;uptime&quot; : 96750,
                        &quot;optime&quot; : Timestamp(1393427829, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2014-02-26T15:17:09Z&quot;),
                        &quot;self&quot; : true
                }
&lt;p&gt;,&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 1,
                        &quot;name&quot; : &quot;mongo-27-4:27041&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 2,
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,
                        &quot;uptime&quot; : 62950,
                        &quot;optime&quot; : Timestamp(1393427829, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2014-02-26T15:17:09Z&quot;),
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2014-03-05T14:58:01Z&quot;),
                        &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2014-03-05T14:58:00Z&quot;),
                        &quot;pingMs&quot; : 0,
                        &quot;syncingTo&quot; : &quot;mongo-27-1:27011&quot;
                }
&lt;p&gt;,&lt;/p&gt;
                {
                        &quot;_id&quot; : 2,
                        &quot;name&quot; : &quot;mongo-27-5:27051&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 2,
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,
                        &quot;uptime&quot; : 62946,
                        &quot;optime&quot; : Timestamp(1393427829, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2014-02-26T15:17:09Z&quot;),
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2014-03-05T14:58:00Z&quot;),
                        &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2014-03-05T14:58:00Z&quot;),
                        &quot;pingMs&quot; : 0,
                        &quot;syncingTo&quot; : &quot;mongo-27-1:27011&quot;
                }
&lt;p&gt;        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br/&gt;
{&lt;br/&gt;
        &quot;set&quot; : &quot;SHARD2&quot;,&lt;br/&gt;
        &quot;date&quot; : ISODate(&quot;2014-03-05T15:00:07Z&quot;),&lt;br/&gt;
        &quot;myState&quot; : 2,&lt;br/&gt;
        &quot;syncingTo&quot; : &quot;mongo-27-6:27062&quot;,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 0,
                        &quot;name&quot; : &quot;mongo-27-2:27022&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 2,
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,
                        &quot;uptime&quot; : 538368,
                        &quot;optime&quot; : Timestamp(1393493771, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2014-02-27T09:36:11Z&quot;),
                        &quot;self&quot; : true
                }
&lt;p&gt;,&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 1,
                        &quot;name&quot; : &quot;mongo-27-5:27052&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 2,
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,
                        &quot;uptime&quot; : 23776,
                        &quot;optime&quot; : Timestamp(1393493771, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2014-02-27T09:36:11Z&quot;),
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2014-03-05T15:00:06Z&quot;),
                        &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2014-03-05T15:00:05Z&quot;),
                        &quot;pingMs&quot; : 0,
                        &quot;syncingTo&quot; : &quot;mongo-27-6:27062&quot;
                }
&lt;p&gt;,&lt;/p&gt;
                {
                        &quot;_id&quot; : 2,
                        &quot;name&quot; : &quot;mongo-27-6:27062&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 1,
                        &quot;stateStr&quot; : &quot;PRIMARY&quot;,
                        &quot;uptime&quot; : 23778,
                        &quot;optime&quot; : Timestamp(1393493771, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2014-02-27T09:36:11Z&quot;),
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2014-03-05T15:00:07Z&quot;),
                        &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2014-03-05T15:00:07Z&quot;),
                        &quot;pingMs&quot; : 0,
                        &quot;syncingTo&quot; : &quot;mongo-27-2:27022&quot;
                }
&lt;p&gt;        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br/&gt;
 rs.status()&lt;br/&gt;
{&lt;br/&gt;
        &quot;set&quot; : &quot;SHARD3&quot;,&lt;br/&gt;
        &quot;date&quot; : ISODate(&quot;2014-03-05T12:01:46Z&quot;),&lt;br/&gt;
        &quot;myState&quot; : 2,&lt;br/&gt;
        &quot;syncingTo&quot; : &quot;mongo-27-6:27063&quot;,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 0,
                        &quot;name&quot; : &quot;mongo-27-3:27033&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 2,
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,
                        &quot;uptime&quot; : 605924,
                        &quot;optime&quot; : Timestamp(1393485662, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2014-02-27T07:21:02Z&quot;),
                        &quot;self&quot; : true
                }
&lt;p&gt;,&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 1,
                        &quot;name&quot; : &quot;mongo-27-4:27043&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 2,
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,
                        &quot;uptime&quot; : 22442,
                        &quot;optime&quot; : Timestamp(1393485662, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2014-02-27T07:21:02Z&quot;),
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2014-03-05T12:01:45Z&quot;),
                        &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2014-03-05T12:01:46Z&quot;),
                        &quot;pingMs&quot; : 0,
                        &quot;syncingTo&quot; : &quot;mongo-27-6:27063&quot;
                }
&lt;p&gt;,&lt;/p&gt;
                {
                        &quot;_id&quot; : 2,
                        &quot;name&quot; : &quot;mongo-27-6:27063&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 1,
                        &quot;stateStr&quot; : &quot;PRIMARY&quot;,
                        &quot;uptime&quot; : 22445,
                        &quot;optime&quot; : Timestamp(1393485662, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2014-02-27T07:21:02Z&quot;),
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2014-03-05T12:01:45Z&quot;),
                        &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2014-03-05T12:01:45Z&quot;),
                        &quot;pingMs&quot; : 0,
                        &quot;syncingTo&quot; : &quot;mongo-27-3:27033&quot;
                }
&lt;p&gt;        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;Thanks again Andy,&lt;/p&gt;</comment>
                            <comment id="510086" author="schwerin" created="Wed, 5 Mar 2014 19:14:34 +0000"  >&lt;p&gt;I think we&apos;ve miscommunicated.  I meant what version of the MongoDB binaries are you running on the shards.  You can get the answer by running mongod --version, or looking at the top of the logs on start-up.  I&apos;m pretty sure you&apos;re running some version of 2.4 (maybe 2.4.9?) from your original problem with listDatabsaes.  However, I don&apos;t think the precise version is needed to make progress.&lt;/p&gt;

&lt;p&gt;Please run rs.status() in the shell against each of the misbehaving shards, and post the results, please.&lt;/p&gt;</comment>
                            <comment id="510025" author="dwayneexec@gmail.com" created="Wed, 5 Mar 2014 18:21:15 +0000"  >&lt;p&gt;First question, answer: &lt;br/&gt;
Shard nodes are running version 3. &lt;/p&gt;

&lt;p&gt;Second question, answer:&lt;br/&gt;
each replica set has 3 members, two secondary and one primary.&lt;/p&gt;

&lt;p&gt;Thanks for clearing up the clouds around access control. That does explains why dbAdminAnyDatabase wont list databases in version 2.6. However, I am still curious as to why two of my shards are showing up without primaries. &lt;/p&gt;

&lt;p&gt;Thanks again Andy.&lt;/p&gt;</comment>
                            <comment id="509996" author="schwerin" created="Wed, 5 Mar 2014 18:10:26 +0000"  >&lt;p&gt;What version of MongoDB is running on your shard nodes?  Also, could you describe your topology in a little more detail?  You have a sharded cluster with three shards, each of which is a replica set.  How many members does each replica set have?&lt;/p&gt;

&lt;p&gt;As to your other question, about access control, if you&apos;re running MongoDB 2.4, your user will require the &quot;clusterAdmin&quot; role to list databases.  In 2.6, any of the &quot;any database&quot; built-in roles have the required privileges to list databases.&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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 5 Mar 2014 18:10:26 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 49 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, 49 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>dwayneexec@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlzsf:</customfieldvalue>

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

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

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