<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:04:18 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-3875] Mongostats not working with Authentication enabled</title>
                <link>https://jira.mongodb.org/browse/SERVER-3875</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I upgraded an existing server to the 2.0 code.  When authentication is enabled, I am unable to run mongostat.  I get &quot;error:&lt;br/&gt;
&amp;gt; &lt;/p&gt;
{ errmsg: &quot;need to login&quot;, ok: 0.0 }
&lt;p&gt;&quot; even when using a correct username/password for an admin account.  That is, I can login to admin db with the mongo cli with a given set of credentials but can not run mongostat with the same credentials.&lt;/p&gt;

&lt;p&gt;If I turn off authentication, I&apos;m able to run mongostat.&lt;/p&gt;</description>
                <environment>Ubuntu 10.04 on Amazon EC2 </environment>
        <key id="22396">SERVER-3875</key>
            <summary>Mongostats not working with Authentication enabled</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="djones">Dave Jones</reporter>
                        <labels>
                            <label>rn</label>
                    </labels>
                <created>Thu, 15 Sep 2011 16:07:16 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:23 +0000</updated>
                            <resolved>Fri, 23 Sep 2011 03:40:37 +0000</resolved>
                                    <version>2.0.0</version>
                                    <fixVersion>2.0.1</fixVersion>
                    <fixVersion>2.1.0</fixVersion>
                                    <component>Tools</component>
                                        <votes>2</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="110773" author="auto" created="Tue, 17 Apr 2012 18:20:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;monkey101&apos;, u&apos;name&apos;: u&apos;Daniel Pasette&apos;, u&apos;email&apos;: u&apos;dan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3875&quot; title=&quot;Mongostats not working with Authentication enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3875&quot;&gt;&lt;del&gt;SERVER-3875&lt;/del&gt;&lt;/a&gt;: Added auth() call to mongotop and fixed output formatting.&lt;br/&gt;
Branch: v2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a55507d21e53970d324eef2cafc653aea648b885&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a55507d21e53970d324eef2cafc653aea648b885&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="75872" author="auto" created="Sun, 25 Dec 2011 01:32:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;monkey101&apos;, u&apos;name&apos;: u&apos;Daniel Pasette&apos;, u&apos;email&apos;: u&apos;dan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3875&quot; title=&quot;Mongostats not working with Authentication enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3875&quot;&gt;&lt;del&gt;SERVER-3875&lt;/del&gt;&lt;/a&gt;: Added auth() call to mongotop and fixed output formatting.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c8af8a123611cf88ca59e689cf8f9aa961b02ab4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c8af8a123611cf88ca59e689cf8f9aa961b02ab4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59317" author="auto" created="Sun, 9 Oct 2011 03:30:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3875&quot; title=&quot;Mongostats not working with Authentication enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3875&quot;&gt;&lt;del&gt;SERVER-3875&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: v2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f394d2c29a3a9486039a234b51e5953dddef1874&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f394d2c29a3a9486039a234b51e5953dddef1874&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="58776" author="trust_de" created="Thu, 6 Oct 2011 09:59:53 +0000"  >&lt;p&gt;I have the same problem also with mongotop in my replica set (includes 3 members on 3 hosts, primary/secondary/arbiter).&lt;br/&gt;
I get the same error message in each host:&lt;/p&gt;

&lt;p&gt;mongotop -v --host 10.94.x.x:27017 -u muser -p mpassword&lt;br/&gt;
Thu Oct  6 09:52:53 creating new connection to:10.94.x.x:27017&lt;br/&gt;
Thu Oct  6 09:52:53 BackgroundJob starting: ConnectBG&lt;br/&gt;
Thu Oct  6 09:52:53 connected connection!&lt;br/&gt;
connected to: 10.94.x.x:27017&lt;br/&gt;
error: &lt;/p&gt;
{ assertion: &quot;unauthorized db:admin lock type:-1 client:10.94.x.x&quot;, assertionCode: 10057, errmsg: &quot;db assertion failure&quot;, ok: 0.0 }
&lt;p&gt;error: &lt;/p&gt;
{ assertion: &quot;unauthorized db:admin lock type:-1 client:10.94.x.x&quot;, assertionCode: 10057, errmsg: &quot;db assertion failure&quot;, ok: 0.0 }

&lt;p&gt;Here is the output from the logfile:&lt;/p&gt;

&lt;p&gt;Thu Oct  6 09:52:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 10.94.x.x:49223 #64&lt;br/&gt;
Thu Oct  6 09:52:54 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn64&amp;#93;&lt;/span&gt; end connection 10.94.x.x:49223&lt;/p&gt;

&lt;p&gt;Another question - when will the next release (2.0.1) that solves this bug be available?&lt;/p&gt;</comment>
                            <comment id="56072" author="auto" created="Fri, 23 Sep 2011 03:40:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: Merge pull request #88 from guanqun/FIX-&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3875&quot; title=&quot;Mongostats not working with Authentication enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3875&quot;&gt;&lt;del&gt;SERVER-3875&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;add auth() call to mongostat &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3875&quot; title=&quot;Mongostats not working with Authentication enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3875&quot;&gt;&lt;del&gt;SERVER-3875&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/42a06904e7624aa3cc9962e384ebdbb91fdd33b7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/42a06904e7624aa3cc9962e384ebdbb91fdd33b7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="56071" author="auto" created="Fri, 23 Sep 2011 03:40:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: Merge pull request #88 from guanqun/FIX-&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3875&quot; title=&quot;Mongostats not working with Authentication enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3875&quot;&gt;&lt;del&gt;SERVER-3875&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;add auth() call to mongostat &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3875&quot; title=&quot;Mongostats not working with Authentication enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3875&quot;&gt;&lt;del&gt;SERVER-3875&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/42a06904e7624aa3cc9962e384ebdbb91fdd33b7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/42a06904e7624aa3cc9962e384ebdbb91fdd33b7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54941" author="guanqun" created="Sat, 17 Sep 2011 15:16:21 +0000"  >&lt;p&gt;Hi Jason,&lt;/p&gt;

&lt;p&gt;I looked at this issue, and it seems to be a simple fix, the mongostat needs to add a &apos;auth&apos; call so that it can work with authentication.&lt;/p&gt;

&lt;p&gt;the patch is here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/guanqun/mongo/commit/c05baff357ff9d3e467aad7c074a85ccd81ff86a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/guanqun/mongo/commit/c05baff357ff9d3e467aad7c074a85ccd81ff86a&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;the pull request is here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/pull/88&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/88&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Could you help to verify that this patch solves your problem or not? (At least it works well locally with my fix. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; )&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="54495" author="jasonmccay" created="Thu, 15 Sep 2011 16:23:41 +0000"  >&lt;p&gt;I can confirm that we are seeing the same issue.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="23350">SERVER-4033</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 15 Sep 2011 16:23:41 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 44 weeks, 1 day 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>
                            11 years, 44 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>djones</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>guanqun</customfieldvalue>
            <customfieldvalue>jasonmccay</customfieldvalue>
            <customfieldvalue>trust_de</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroqev:</customfieldvalue>

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

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

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