<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:43 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>[CSHARP-748] Unable to connect to replica set using random password containing numbers</title>
                <link>https://jira.mongodb.org/browse/CSHARP-748</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I&apos;m actually sure where to report this since I&apos;m not completely sure if this is a driver problem. In our production environment, we are connecting to one particular database using a database user. The username is pretty simple and the password is a random string of upper/lowercase letters and numbers. When specifying all three nodes in the connection string and using a password that contains numbers we keep getting a timeout exception from the driver. The logs on the mongo server repeated report a key mismatch error. When we remove the numbers from the password, the connection succeeds. When we specify just the primary server in the connection string and connect using the password containing numbers, the connection succeeds. When we put the numbers back into password and again specify the 3 nodes in the connection string, the connection fails with a timeout exception and the mongo logs report a key mismatch. We&apos;ve also tried creating another database with another user using the password random password with the same result. The strange thing is, we have a test environment setup the exact same way and we can&apos;t get replicate this issue.&lt;/p&gt;</description>
                <environment>3 node replica set each running RHEL. One node is an 8 hour delay. </environment>
        <key id="77157">CSHARP-748</key>
            <summary>Unable to connect to replica set using random password containing numbers</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="-1">Unassigned</assignee>
                                    <reporter username="chrisdrobison">Chris Robison</reporter>
                        <labels>
                    </labels>
                <created>Thu, 30 May 2013 13:20:48 +0000</created>
                <updated>Tue, 5 Apr 2016 00:28:48 +0000</updated>
                            <resolved>Fri, 20 Jun 2014 14:29:48 +0000</resolved>
                                    <version>1.8.1</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="520203" author="chrisdrobison" created="Thu, 20 Mar 2014 18:35:23 +0000"  >&lt;p&gt;I&apos;m going to try it out today or tomorrow.&lt;/p&gt;</comment>
                            <comment id="520191" author="rstam" created="Thu, 20 Mar 2014 18:14:39 +0000"  >&lt;p&gt;We were never able to reproduce this. Did you end up solving the problem?&lt;/p&gt;</comment>
                            <comment id="371983" author="chrisdrobison" created="Mon, 1 Jul 2013 21:09:09 +0000"  >&lt;p&gt;We verified the password was correct. It still doesn&apos;t explain the 30 second timeout exception we are getting.&lt;/p&gt;</comment>
                            <comment id="371969" author="rstam" created="Mon, 1 Jul 2013 20:53:15 +0000"  >&lt;p&gt;In my experiment I was able to reproduce the exact same error/log messages by using an invalid password.&lt;/p&gt;

&lt;p&gt;That leads me to believe that there may be an invalid password configured somewhere in the client application.&lt;/p&gt;</comment>
                            <comment id="371965" author="chrisdrobison" created="Mon, 1 Jul 2013 20:48:22 +0000"  >&lt;p&gt;I believe we are still seeing it with one replica set, but others we are not. I don&apos;t think there is anything more we can do about it.&lt;/p&gt;</comment>
                            <comment id="371950" author="rstam" created="Mon, 1 Jul 2013 20:27:31 +0000"  >&lt;p&gt;Were you able to figure out why you were getting the errors you were getting?&lt;/p&gt;

&lt;p&gt;I would like to close this JIRA ticket if you have are no longer having an issue.&lt;/p&gt;</comment>
                            <comment id="357780" author="rstam" created="Tue, 11 Jun 2013 16:01:51 +0000"  >&lt;p&gt;I can reproduce the entries in your mongod logs:&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;Wed May 29 07:38:03.431 [conn10988] authenticate db: prmprod { authenticate: 1, user: &quot;prmprod&quot;, nonce: &quot;84e441806a1cd54d&quot;, key: &quot;d4b0b743ff1d568d7415aa2f8ca102ca&quot; }&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;Wed May 29 07:38:03.431 [conn10988] auth: key mismatch prmprod, ns:prmprod&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;By using an invalid password.&lt;/p&gt;

&lt;p&gt;For example, doing this in the MongoDB shell:&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;c:\mongodb\mongodb-win32-x86_64-2008plus-2.4.3\bin&amp;gt;mongo&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;MongoDB shell version: 2.4.3&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;connecting to: test&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(&quot;user&quot;, &quot;asdf&quot;)&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;Error: 18 { code: 18, ok: 0.0, errmsg: &quot;auth fails&quot; }&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;0&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;&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;resulted in these lines in my MongoDB logs:&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;Tue Jun 11 11:58:35.369 [conn1]  authenticate db: test { authenticate: 1, nonce: &quot;1052984f2a534b1e&quot;, user: &quot;user&quot;, key: &quot;1449bf7fc76bf88ef8b0c6565ddc3a13&quot;}&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;Tue Jun 11 11:58:35.370 [conn1] auth: key mismatch user, ns:test&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="357735" author="chrisdrobison" created="Tue, 11 Jun 2013 15:30:11 +0000"  >&lt;p&gt;I verified that all keys are the same on all 3 environments for prod.  I am also able to login without any issues on each node.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;mongod@wdcmdb1 ~&amp;#93;&lt;/span&gt;$ prod1&lt;br/&gt;
MongoDB shell version: 2.4.2&lt;br/&gt;
connecting to: wdcmdb1:27017/admin&lt;br/&gt;
prmp_rs:PRIMARY&amp;gt; exitexit&lt;br/&gt;
bye&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;mongod@wdcmdb1 ~&amp;#93;&lt;/span&gt;$ prod2&lt;br/&gt;
MongoDB shell version: 2.4.2&lt;br/&gt;
connecting to: wdcmdb2:27017/admin&lt;br/&gt;
prmp_rs:SECONDARY&amp;gt; exitexit&lt;br/&gt;
bye&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;mongod@wdcmdb1 ~&amp;#93;&lt;/span&gt;$ prod3&lt;br/&gt;
MongoDB shell version: 2.4.2&lt;br/&gt;
connecting to: wdcmdb3:27017/admin&lt;br/&gt;
prmp_rs:SECONDARY&amp;gt; exitexit&lt;br/&gt;
bye&lt;/p&gt;</comment>
                            <comment id="357709" author="rstam" created="Tue, 11 Jun 2013 15:06:33 +0000"  >&lt;p&gt;I&apos;m wondering if your replica set members are configured to use authentication but don&apos;t have the same keyFile?&lt;/p&gt;

&lt;p&gt;Take a look at the Security section on this page:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://docs.mongodb.org/manual/core/replication/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/core/replication/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Do you get an error if you try to connect to the various replica set members from the MongoDB shell?&lt;/p&gt;</comment>
                            <comment id="349022" author="chrisdrobison" created="Thu, 30 May 2013 17:37:06 +0000"  >&lt;p&gt;Here is a snippet from the mongo logs. This basically gets repeated indefinitely until the timeout occurs.&lt;/p&gt;

&lt;p&gt;Wed May 29 07:38:03.431 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10988&amp;#93;&lt;/span&gt;  authenticate db: prmprod &lt;/p&gt;
{ authenticate: 1, user: &quot;prmprod&quot;, nonce: &quot;84e441806a1cd54d&quot;, key: &quot;d4b0b743ff1d568d7415aa2f8ca102ca&quot; }
&lt;p&gt;Wed May 29 07:38:03.431 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10988&amp;#93;&lt;/span&gt; auth: key mismatch prmprod, ns:prmprod&lt;/p&gt;</comment>
                            <comment id="348915" author="chrisdrobison" created="Thu, 30 May 2013 15:57:26 +0000"  >&lt;p&gt;Yeah. Sorry it&apos;s taking so long. I&apos;m waiting for the systems guys to forward that to me.&lt;/p&gt;</comment>
                            <comment id="348906" author="rstam" created="Thu, 30 May 2013 15:47:10 +0000"  >&lt;p&gt;Can you also provide the actual error message you are seeing in the server logs? Thanks.&lt;/p&gt;</comment>
                            <comment id="348868" author="chrisdrobison" created="Thu, 30 May 2013 14:51:26 +0000"  >&lt;p&gt;Here is the stack trace:&lt;/p&gt;

&lt;p&gt;Unable to connect in the specified timeframe of &apos;00:00:30&apos;.&lt;br/&gt;
   at MongoDB.Driver.Internal.DiscoveringMongoServerProxy.Discover(TimeSpan timeout)&lt;br/&gt;
   at MongoDB.Driver.Internal.DiscoveringMongoServerProxy.EnsureInstanceManager(TimeSpan timeout)&lt;br/&gt;
   at MongoDB.Driver.Internal.DiscoveringMongoServerProxy.ChooseServerInstance(ReadPreference readPreference)&lt;br/&gt;
   at MongoDB.Driver.MongoServer.AcquireConnection(ReadPreference readPreference)&lt;br/&gt;
   at MongoDB.Driver.MongoCursorEnumerator`1.GetFirst()&lt;br/&gt;
   at MongoDB.Driver.MongoCursorEnumerator`1.MoveNext()&lt;br/&gt;
   at MongoDB.Driver.MongoDatabase.GetCollectionNames()&lt;br/&gt;
   at MongoDB.Driver.MongoDatabase.CollectionExists(String collectionName)&lt;br/&gt;
   at Elmah.MongoErrorLog.Initialize()&lt;br/&gt;
   at Elmah.MongoErrorLog..ctor(IDictionary config)&lt;/p&gt;</comment>
                            <comment id="348791" author="rstam" created="Thu, 30 May 2013 13:25:40 +0000"  >&lt;p&gt;Not sure what you mean by &quot;key mismatch&quot;. Can you provide the actual error message you are seeing in the server logs?&lt;/p&gt;

&lt;p&gt;It might also be helpful to provide the actual exception message and stack trace from the C# client program.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrqv6f:</customfieldvalue>

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