<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:09:38 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-5696] Auth failed on sharding</title>
                <link>https://jira.mongodb.org/browse/SERVER-5696</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;mongod and other component started with --keyFile option.&lt;/p&gt;

&lt;p&gt;1. When I try to find something by mongoshell I have &quot;unathorized&quot;.&lt;br/&gt;
User with rw grants are in config db and in user db on both servers.&lt;/p&gt;

&lt;p&gt;&amp;gt;mongo userdb&lt;br/&gt;
&amp;gt;db.auth(&apos;...&apos;,&apos;...&apos;);&lt;br/&gt;
1&lt;br/&gt;
&amp;gt;var p = db.usercoll.find();&lt;br/&gt;
unathorized&lt;/p&gt;

&lt;p&gt;2. Also when I try to connect to mongos by JasperReportsServer, I got this &quot;unathorized&quot; error.&lt;br/&gt;
3. When I connect to mongos by JMongoBrowser I also have this error.&lt;/p&gt;

&lt;p&gt;In my java client I don&apos;t have problem with auth, and did not have error.&lt;/p&gt;

&lt;p&gt;Mongo mongo1 = new Mongo( &quot;127.0.0.1&quot; );&lt;br/&gt;
DB db = mongo1.getDB(&quot;userdb&quot;);&lt;br/&gt;
db.authenticate(&quot;...&quot;);&lt;br/&gt;
db.getCollection(&quot;...&quot;).find()...&lt;/p&gt;



</description>
                <environment>2 shard servers, 1 config server, 1 user db, 1 shard coll </environment>
        <key id="37085">SERVER-5696</key>
            <summary>Auth failed on sharding</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="5">Cannot Reproduce</resolution>
                                        <assignee username="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="kroniak">Nikolay Molchanov</reporter>
                        <labels>
                            <label>authenticate</label>
                            <label>authentication</label>
                            <label>mongos</label>
                            <label>sharding</label>
                    </labels>
                <created>Tue, 24 Apr 2012 18:20:10 +0000</created>
                <updated>Wed, 15 Aug 2012 14:02:56 +0000</updated>
                            <resolved>Tue, 29 May 2012 15:35:39 +0000</resolved>
                                    <version>2.0.4</version>
                                                    <component>Security</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="121031" author="spencer" created="Fri, 18 May 2012 17:27:25 +0000"  >&lt;p&gt;I am also unclear what the problem is with the 2.0.4 shell.  I have not been able to reproduce.&lt;/p&gt;

&lt;p&gt;2.2 should be coming out sometime early this summer.  In the meantime you can either use the shell from the 2.1.x series or use another driver such as java or python.&lt;/p&gt;</comment>
                            <comment id="121010" author="kroniak" created="Fri, 18 May 2012 16:17:28 +0000"  >&lt;p&gt;Yes, it&apos;s working! I don&apos;t see dev release, and I have downloaded wrong version.&lt;/p&gt;

&lt;p&gt; ./mongo config&lt;br/&gt;
MongoDB shell version: 2.1.2-pre-&lt;br/&gt;
connecting to: config&lt;br/&gt;
Welcome to the MongoDB shell.&lt;br/&gt;
For interactive help, type &quot;help&quot;.&lt;br/&gt;
For more comprehensive documentation, see&lt;br/&gt;
        &lt;a href=&quot;http://docs.mongodb.org/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/&lt;/a&gt;&lt;br/&gt;
Questions? Try the support group&lt;br/&gt;
        &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;br/&gt;
&amp;gt; set verbose&lt;br/&gt;
set verbose to true&lt;br/&gt;
&amp;gt; var p =db.system.users.find();&lt;br/&gt;
&amp;gt; p&lt;br/&gt;
error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;unauthorized&quot;, &quot;code&quot; : 15845 }
&lt;p&gt;&amp;gt; db.auth(&apos;dba&apos;,&apos;&apos;);&lt;br/&gt;
1&lt;br/&gt;
&amp;gt;  db.system.users.find();&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4f98330c1d8a80e758c02313&quot;), &quot;user&quot; : &quot;dba&quot;, &quot;readOnly&quot; : false, &quot;pwd&quot; : &quot;f92058d2f3f20f1f5473e0c2baa77edb&quot; }
&lt;p&gt;Fetched 1 record(s) in 1ms&lt;br/&gt;
&amp;gt; var p = db.system.users.find();&lt;br/&gt;
&amp;gt; p&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4f98330c1d8a80e758c02313&quot;), &quot;user&quot; : &quot;dba&quot;, &quot;readOnly&quot; : false, &quot;pwd&quot; : &quot;f92058d2f3f20f1f5473e0c2baa77edb&quot; }
&lt;p&gt;Fetched 1 record(s) in 1ms&lt;br/&gt;
&amp;gt; db.system.users.find();&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4f98330c1d8a80e758c02313&quot;), &quot;user&quot; : &quot;dba&quot;, &quot;readOnly&quot; : false, &quot;pwd&quot; : &quot;f92058d2f3f20f1f5473e0c2baa77edb&quot; }
&lt;p&gt;Fetched 1 record(s) in 1ms&lt;/p&gt;

&lt;p&gt;When will this fix be include in stable release? &lt;br/&gt;
And I don&apos;t understand where in the old shell was the problem. &lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="121007" author="spencer" created="Fri, 18 May 2012 16:07:55 +0000"  >&lt;p&gt;Looks like you&apos;re running the 2.0.6 nightly instead of something from 2.1.x.  Can you try it with the shell from 2.1.1 (available for download here: &lt;a href=&quot;http://www.mongodb.org/downloads&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/downloads&lt;/a&gt;)&lt;/p&gt;</comment>
                            <comment id="120997" author="kroniak" created="Fri, 18 May 2012 15:48:29 +0000"  >&lt;p&gt;I am in confusing.&lt;/p&gt;


&lt;p&gt;./mongo config&lt;br/&gt;
MongoDB shell version: 2.0.6-rc0-pre-&lt;br/&gt;
connecting to: config&lt;br/&gt;
&amp;gt; set verbose;&lt;br/&gt;
Fri May 18 19:45:03 SyntaxError: missing ; before statement (shell):1&lt;br/&gt;
&amp;gt; set verbose&lt;br/&gt;
Fri May 18 19:45:07 SyntaxError: missing ; before statement (shell):1&lt;br/&gt;
&amp;gt; set verbose 1&lt;br/&gt;
Fri May 18 19:45:11 SyntaxError: missing ; before statement (shell):1&lt;br/&gt;
&amp;gt; &quot;set verbose&quot;;&lt;br/&gt;
set verbose&lt;br/&gt;
&amp;gt; set verbose&lt;br/&gt;
Fri May 18 19:46:16 SyntaxError: missing ; before statement (shell):1&lt;/p&gt;</comment>
                            <comment id="120987" author="spencer" created="Fri, 18 May 2012 15:39:01 +0000"  >&lt;p&gt;Can you attach the shell output as well?  Using verbose mode (&quot;set verbose&quot;) on the nightly shell should cause it to print some more information on what its doing after each query.&lt;/p&gt;</comment>
                            <comment id="120971" author="tad" created="Fri, 18 May 2012 15:18:19 +0000"  >&lt;p&gt;Sorry, I closed the wrong ticket.&lt;/p&gt;</comment>
                            <comment id="120962" author="kroniak" created="Fri, 18 May 2012 14:48:35 +0000"  >&lt;p&gt;There are errors on servers side? or mongo shell?&lt;/p&gt;</comment>
                            <comment id="120926" author="kroniak" created="Fri, 18 May 2012 13:05:00 +0000"  >&lt;p&gt;I have downloaded night build at 17 may.&lt;br/&gt;
I have same error.&lt;/p&gt;

&lt;p&gt;I have attached log.&lt;/p&gt;</comment>
                            <comment id="117754" author="spencer" created="Wed, 9 May 2012 17:47:39 +0000"  >&lt;p&gt;Sorry about that, didn&apos;t notice the attachment.&lt;/p&gt;

&lt;p&gt;There are no errors on the mongos side.  This seems like the problem must be on the shell side of things (especially since the java driver is working).  Can you try downloading the 2.1 nightly shell from &lt;a href=&quot;http://www.mongodb.org/downloads&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/downloads&lt;/a&gt; and running:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; set verbose&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; var p =db.system.users.find();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; db.auth(&apos;dba&apos;,&apos;&amp;lt;password&amp;gt;&apos;);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; db.system.users.find();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; var p = db.system.users.find();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; db.system.users.find();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="117553" author="kroniak" created="Wed, 9 May 2012 06:57:03 +0000"  >&lt;p&gt;There are router.log at 4 may. Look in attachments.&lt;/p&gt;</comment>
                            <comment id="117392" author="spencer" created="Tue, 8 May 2012 19:08:42 +0000"  >&lt;p&gt;Can you attach the full mongos log?  That excerpt only covers one of the calls to db.system.users.find()&lt;/p&gt;</comment>
                            <comment id="116310" author="kroniak" created="Fri, 4 May 2012 12:42:42 +0000"  >&lt;p&gt;My last test (debug level 5)&lt;/p&gt;

&lt;p&gt;./mongo config&lt;br/&gt;
MongoDB shell version: 2.0.4&lt;br/&gt;
connecting to: config&lt;br/&gt;
&amp;gt; var p =db.system.users.find();&lt;br/&gt;
unauthorized&lt;br/&gt;
&amp;gt; db.auth(&apos;dba&apos;,&apos;...&apos;);&lt;br/&gt;
1&lt;br/&gt;
&amp;gt; db.system.users.find();&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4f98330c1d8a80e758c02313&quot;), &quot;user&quot; : &quot;dba&quot;, &quot;readOnly&quot; : false, &quot;pwd&quot; : &quot;&quot; }
&lt;p&gt;&amp;gt; var p =db.system.users.find();&lt;br/&gt;
unauthorized&lt;br/&gt;
&amp;gt; db.getLastError();&lt;br/&gt;
unauthorized&lt;/p&gt;

&lt;p&gt;Mongos log:&lt;/p&gt;

&lt;p&gt;Fri May  4 16:31:48 BackgroundJob starting: ConnectBG&lt;br/&gt;
Fri May  4 16:31:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; connected connection!&lt;br/&gt;
Fri May  4 16:31:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; calling onCreate auth for 192.168.2.68:27019&lt;br/&gt;
Fri May  4 16:31:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; initializing shard connection to 192.168.2.68:27019&lt;br/&gt;
Fri May  4 16:31:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; initial sharding settings : { setShardVersion: &quot;&quot;, init: true, configdb: &quot;192.168.2.68:27019&quot;, serverID: ObjectId(&apos;4fa3cb288fd46$&lt;br/&gt;
Fri May  4 16:31:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; initial sharding result : &lt;/p&gt;
{ initialized: true, ok: 1.0 }
&lt;p&gt;Fri May  4 16:31:50 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; _inBalancingWindow:  now: 2012-May-04 16:31:50 startTime: 2012-May-04 00:00:00 stopTime: 2012-May-04 00:00:00&lt;br/&gt;
Fri May  4 16:31:50 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; skipping balancing round because balancing is disabled&lt;br/&gt;
Fri May  4 16:32:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;PeriodicTask::Runner&amp;#93;&lt;/span&gt; task: DBConnectionPool-cleaner took: 0ms&lt;br/&gt;
Fri May  4 16:32:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;PeriodicTask::Runner&amp;#93;&lt;/span&gt; task: DBConnectionPool-cleaner took: 0ms&lt;br/&gt;
Fri May  4 16:32:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-192.168.2.68:27019&amp;#93;&lt;/span&gt; 192.168.2.68:27019 is not a shard node&lt;br/&gt;
Fri May  4 16:32:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; _inBalancingWindow:  now: 2012-May-04 16:32:20 startTime: 2012-May-04 00:00:00 stopTime: 2012-May-04 00:00:00&lt;br/&gt;
Fri May  4 16:32:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; skipping balancing round because balancing is disabled&lt;br/&gt;
Fri May  4 16:32:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: config.$cmd msg id:2 attempt: 0&lt;br/&gt;
Fri May  4 16:32:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: config.$cmd  &lt;/p&gt;
{ getlasterror: 1.0, w: 1.0 }
&lt;p&gt;  ntoreturn: -1 options : 0&lt;br/&gt;
Fri May  4 16:32:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: admin.$cmd msg id:3 attempt: 0&lt;br/&gt;
Fri May  4 16:32:27 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: admin.$cmd  &lt;/p&gt;
{ replSetGetStatus: 1, forShell: 1 }
&lt;p&gt;  ntoreturn: 1 options : 0&lt;br/&gt;
Fri May  4 16:32:50 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; _inBalancingWindow:  now: 2012-May-04 16:32:50 startTime: 2012-May-04 00:00:00 stopTime: 2012-May-04 00:00:00&lt;br/&gt;
Fri May  4 16:32:50 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; skipping balancing round because balancing is disabled&lt;br/&gt;
Fri May  4 16:33:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: config.$cmd msg id:4 attempt: 0&lt;br/&gt;
Fri May  4 16:33:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: config.$cmd  &lt;/p&gt;
{ getnonce: 1.0 }
&lt;p&gt;  ntoreturn: -1 options : 0&lt;br/&gt;
Fri May  4 16:33:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: config.$cmd msg id:5 attempt: 0&lt;br/&gt;
Fri May  4 16:33:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: config.$cmd  { authenticate: 1.0, user: &quot;dba&quot;, nonce: &quot;1171e776d436c958&quot;, key: &quot;c899e5c219d98b9c9382be257ac98840&quot; $&lt;br/&gt;
Fri May  4 16:33:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt;  authenticate: &lt;/p&gt;
{ authenticate: 1.0, user: &quot;dba&quot;, nonce: &quot;1171e776d436c958&quot;, key: &quot;c899e5c219d98b9c9382be257ac98840&quot; }
&lt;p&gt;Fri May  4 16:33:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: admin.$cmd msg id:6 attempt: 0&lt;br/&gt;
Fri May  4 16:33:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: admin.$cmd  &lt;/p&gt;
{ replSetGetStatus: 1, forShell: 1 }
&lt;p&gt;  ntoreturn: 1 options : 0&lt;br/&gt;
Fri May  4 16:33:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;PeriodicTask::Runner&amp;#93;&lt;/span&gt; task: DBConnectionPool-cleaner took: 0ms&lt;br/&gt;
Fri May  4 16:33:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;PeriodicTask::Runner&amp;#93;&lt;/span&gt; task: DBConnectionPool-cleaner took: 0ms&lt;br/&gt;
Fri May  4 16:33:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-192.168.2.68:27019&amp;#93;&lt;/span&gt; 192.168.2.68:27019 is not a shard node&lt;br/&gt;
Fri May  4 16:33:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; _inBalancingWindow:  now: 2012-May-04 16:33:20 startTime: 2012-May-04 00:00:00 stopTime: 2012-May-04 00:00:00&lt;br/&gt;
Fri May  4 16:33:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; skipping balancing round because balancing is disabled&lt;br/&gt;
Fri May  4 16:33:28 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: config.system.users msg id:7 attempt: 0&lt;br/&gt;
Fri May  4 16:33:28 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: config.system.users  {}  ntoreturn: 0 options : 0&lt;br/&gt;
Fri May  4 16:33:28 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: admin.$cmd msg id:8 attempt: 0&lt;br/&gt;
Fri May  4 16:33:28 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: admin.$cmd  &lt;/p&gt;
{ replSetGetStatus: 1, forShell: 1 }
&lt;p&gt;  ntoreturn: 1 options : 0&lt;br/&gt;
Fri May  4 16:33:31 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: config.$cmd msg id:9 attempt: 0&lt;br/&gt;
Fri May  4 16:33:31 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: config.$cmd  &lt;/p&gt;
{ getlasterror: 1.0, w: 1.0 }
&lt;p&gt;  ntoreturn: -1 options : 0&lt;br/&gt;
Fri May  4 16:33:31 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: admin.$cmd msg id:10 attempt: 0&lt;br/&gt;
Fri May  4 16:33:31 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: admin.$cmd  &lt;/p&gt;
{ replSetGetStatus: 1, forShell: 1 }
&lt;p&gt;  ntoreturn: 1 options : 0&lt;br/&gt;
Fri May  4 16:33:50 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; _inBalancingWindow:  now: 2012-May-04 16:33:50 startTime: 2012-May-04 00:00:00 stopTime: 2012-May-04 00:00:00&lt;br/&gt;
Fri May  4 16:33:50 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; skipping balancing round because balancing is disabled&lt;br/&gt;
Fri May  4 16:34:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;PeriodicTask::Runner&amp;#93;&lt;/span&gt; task: DBConnectionPool-cleaner took: 0ms&lt;br/&gt;
Fri May  4 16:34:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;PeriodicTask::Runner&amp;#93;&lt;/span&gt; task: DBConnectionPool-cleaner took: 0ms&lt;br/&gt;
Fri May  4 16:34:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-192.168.2.68:27019&amp;#93;&lt;/span&gt; 192.168.2.68:27019 is not a shard node&lt;br/&gt;
Fri May  4 16:34:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; _inBalancingWindow:  now: 2012-May-04 16:34:20 startTime: 2012-May-04 00:00:00 stopTime: 2012-May-04 00:00:00&lt;br/&gt;
Fri May  4 16:34:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; skipping balancing round because balancing is disabled&lt;br/&gt;
Fri May  4 16:34:50 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; _inBalancingWindow:  now: 2012-May-04 16:34:50 startTime: 2012-May-04 00:00:00 stopTime: 2012-May-04 00:00:00&lt;br/&gt;
Fri May  4 16:34:50 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; skipping balancing round because balancing is disabled&lt;/p&gt;</comment>
                            <comment id="115806" author="spencer" created="Wed, 2 May 2012 22:38:36 +0000"  >&lt;p&gt;Hmm, that is weird.&lt;br/&gt;
Can you please up the log level on the mongos to 5, then start a new shell and in it run:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; var p =db.system.users.find();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; db.auth(&apos;dba&apos;,&apos;&amp;lt;password&amp;gt;&apos;);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; db.system.users.find();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; var p = db.system.users.find();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;And attach the full mongos log?&lt;/p&gt;</comment>
                            <comment id="115698" author="kroniak" created="Wed, 2 May 2012 18:52:23 +0000"  >&lt;p&gt;OK. Thanks!&lt;/p&gt;

&lt;p&gt;What about mongo shell with my message &lt;/p&gt;

&lt;p&gt;&amp;gt; db.system.users.find();&lt;/p&gt;

{ &quot;_id&quot; : ObjectId(&quot;4f98330c1d8a80e758c02313&quot;), &quot;user&quot; : &quot;dba&quot;, &quot;readOnly&quot; : false, &quot;pwd&quot; : &quot;&quot; }
&lt;p&gt;&amp;gt; var p = db.system.users.find();&lt;br/&gt;
unauthorized&lt;/p&gt;

&lt;p&gt;???&lt;/p&gt;</comment>
                            <comment id="115645" author="spencer" created="Wed, 2 May 2012 17:05:41 +0000"  >&lt;p&gt;Based on this thread &lt;a href=&quot;http://jasperforge.org/plugins/espforum/view.php?group_id=112&amp;amp;forumid=102&amp;amp;topicid=92362&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://jasperforge.org/plugins/espforum/view.php?group_id=112&amp;amp;forumid=102&amp;amp;topicid=92362&lt;/a&gt;, it seems like JasperServer may not currently have support for connecting to a MongoDB cluster that is using authentication.  I&apos;d follow up with the JasperServer community to confirm if that is the case.&lt;/p&gt;</comment>
                            <comment id="115633" author="kroniak" created="Wed, 2 May 2012 16:44:17 +0000"  >&lt;p&gt;In the last clear test I didn&apos;t create user in admin db. There are not &quot;admin db&quot;.&lt;br/&gt;
When I was connection to &quot;./mongo config&quot; I was using localhost connection to config and I didn&apos;t have errors.&lt;/p&gt;

&lt;p&gt;Then:&lt;/p&gt;

&lt;p&gt;./mongo admin&lt;br/&gt;
MongoDB shell version: 2.0.4&lt;br/&gt;
connecting to: admin&lt;br/&gt;
mongos&amp;gt; db&lt;br/&gt;
admin&lt;br/&gt;
mongos&amp;gt; var p =db.system.users.find();&lt;br/&gt;
mongos&amp;gt; p&lt;br/&gt;
mongos&amp;gt; db.addUser(&apos;dba&apos;,&apos;...&apos;);&lt;br/&gt;
  db.addUser(&apos;dba&apos;,&apos;&apos;);&lt;/p&gt;
{
        &quot;singleShard&quot; : &quot;192.168.2.68:27019&quot;,
        &quot;n&quot; : 0,
        &quot;connectionId&quot; : 4,
        &quot;err&quot; : null,
        &quot;ok&quot; : 1
}
{
        &quot;user&quot; : &quot;dba&quot;,
        &quot;readOnly&quot; : false,
        &quot;pwd&quot; : &quot;...&quot;,
        &quot;_id&quot; : ObjectId(&quot;4fa15ede63ddf5ed65fb163e&quot;)
}
&amp;gt; var p =db.system.users.find();
unauthorized
&amp;gt; db.auth(&apos;dba&apos;,&apos;...&apos;);
1
mongos&amp;gt; var p =db.system.users.find();
mongos&amp;gt; p
{ &quot;_id&quot; : ObjectId(&quot;4fa15ede63ddf5ed65fb163e&quot;), &quot;user&quot; : &quot;dba&quot;, &quot;readOnly&quot; : false, &quot;pwd&quot; : &quot;&quot; }
&lt;p&gt;mongos&amp;gt; exit&lt;/p&gt;

&lt;p&gt;OK. No errors! &lt;br/&gt;
After I created admin db I got:&lt;/p&gt;

&lt;p&gt; ./mongo config&lt;br/&gt;
MongoDB shell version: 2.0.4&lt;br/&gt;
connecting to: config&lt;br/&gt;
&amp;gt; var p =db.system.users.find();&lt;br/&gt;
unauthorized&lt;br/&gt;
&amp;gt; db.auth(&apos;dba&apos;,&apos;&apos;);&lt;br/&gt;
1&lt;br/&gt;
&amp;gt; db.system.users.find();&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4f98330c1d8a80e758c02313&quot;), &quot;user&quot; : &quot;dba&quot;, &quot;readOnly&quot; : false, &quot;pwd&quot; : &quot;&quot; }
&lt;p&gt;&amp;gt; var p = db.system.users.find();&lt;br/&gt;
unauthorized&lt;/p&gt;

&lt;p&gt;There are no errors in mongos log.&lt;br/&gt;
Error in JasperServer is still.&lt;/p&gt;

&lt;p&gt;I break my head! HELP!&lt;/p&gt;</comment>
                            <comment id="115611" author="kroniak" created="Wed, 2 May 2012 16:15:10 +0000"  >&lt;p&gt;For clear test I recreate sharding cluster without user db.&lt;br/&gt;
There are only config db, 2 shards, 1 mongos on primary shard and 1 config server.&lt;/p&gt;

&lt;p&gt;When I try connect to mongos by JasperStudio (mongodb://192.168.2.68:27017/config) I have same error. LogLevel 5.&lt;br/&gt;
Wed May  2 19:59:04 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; User Assertion: 15845:unauthorized&lt;br/&gt;
Wed May  2 19:59:04 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; AssertionException while processing op type : 2004 to : config.system.namespaces :: caused by :: 15845 unauthorized&lt;/p&gt;


&lt;p&gt;By &quot;./mongo config&quot; I connect successfully.&lt;br/&gt;
 db.system.namespaces.find(); &amp;#8211; running without erorrs.&lt;br/&gt;
By my java app too without errors.&lt;/p&gt;</comment>
                            <comment id="114405" author="kroniak" created="Fri, 27 Apr 2012 18:01:45 +0000"  >&lt;p&gt;In my first message name of &quot;userdb&quot; is &quot;test&quot;.&lt;br/&gt;
In logs there are errors about test.system.namespace.&lt;/p&gt;</comment>
                            <comment id="114098" author="kroniak" created="Thu, 26 Apr 2012 18:54:19 +0000"  >&lt;p&gt;Yes, I have one mongos.&lt;/p&gt;</comment>
                            <comment id="114027" author="eliot" created="Thu, 26 Apr 2012 15:55:09 +0000"  >&lt;p&gt;The java driver and shell are connecting to the same mongos?&lt;/p&gt;</comment>
                            <comment id="113683" author="kroniak" created="Wed, 25 Apr 2012 18:05:51 +0000"  >&lt;p&gt;Log shard server there are no errors&lt;br/&gt;
Log config server there are no errors&lt;br/&gt;
Log mongos server there are:&lt;/p&gt;


&lt;p&gt;Wed Apr 25 21:56:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: test.system.namespaces msg id:7 attempt: 0&lt;br/&gt;
Wed Apr 25 21:56:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: test.system.namespaces  {}  ntoreturn: 0 options : 0&lt;br/&gt;
Wed Apr 25 21:56:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; User Assertion: 15845:unauthorized&lt;br/&gt;
Wed Apr 25 21:56:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; AssertionException while processing op type : 2004 to : test.system.namespaces :: caused by :: 15845 unauthorized&lt;/p&gt;


&lt;p&gt;Log Jasper report server:&lt;/p&gt;

&lt;p&gt;net.sf.jasperreports.engine.JRException: unauthorized&lt;br/&gt;
	at com.jaspersoft.mongodb.connection.MongoDbConnection.setDatabase(MongoDbConnection.java:102)&lt;br/&gt;
	at com.jaspersoft.mongodb.connection.MongoDbConnection.&amp;lt;init&amp;gt;(MongoDbConnection.java:70)&lt;/p&gt;

&lt;p&gt;My java client successful logged into test db.&lt;/p&gt;
</comment>
                    </comments>
                    <attachments>
                            <attachment id="16394" name="router.log" size="25502" author="kroniak" created="Fri, 4 May 2012 12:46:13 +0000"/>
                            <attachment id="16393" name="router.log" size="25502" author="kroniak" created="Fri, 4 May 2012 12:44:34 +0000"/>
                            <attachment id="16716" name="router_20120518.log" size="46500" author="kroniak" created="Fri, 18 May 2012 13:07:00 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 26 Apr 2012 15:55:09 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 39 weeks, 5 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 39 weeks, 5 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="10020"><![CDATA[Linux]]></customfieldvalue>

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

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22870</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></customfieldvalue>

                        </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|hs9vy7:</customfieldvalue>

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