<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:43:14 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-2682] A timeout occured after 30000ms; not able to make a connection to MongoDB</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2682</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Trying to setup a built and working .Net Core 2.2 Web application on my system. Have installed Mongo DB 4.0.&lt;/p&gt;

&lt;p&gt;Getting a run time error. Below is the exception thrown&lt;br/&gt;
&#160;&lt;br/&gt;
{{System.TimeoutExceptionHResult=0x80131505Message=A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector&lt;/p&gt;
{ AllowedLatencyRange = 00:00:00.0150000 }
&lt;p&gt; }. Client view of cluster state is { ClusterId : &quot;1&quot;, ConnectionMode : &quot;Automatic&quot;, Type : &quot;Unknown&quot;, State : &quot;Disconnected&quot;, Servers : [{ ServerId: &quot;&lt;/p&gt;
{ ClusterId : 1, EndPoint : &quot;Unspecified/localhost:27018&quot; }
&lt;p&gt;&quot;, EndPoint: &quot;Unspecified/localhost:27018&quot;, State: &quot;Disconnected&quot;, Type: &quot;Unknown&quot;, HeartbeatException: &quot;MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. --&lt;del&gt;&amp;gt; System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: No connection could be made because the target machine actively refused it &lt;span class=&quot;error&quot;&gt;&amp;#91;::1&amp;#93;&lt;/span&gt;:27018   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)   at System.Net.Sockets.Socket.&amp;lt;&amp;gt;c.&amp;lt;ConnectAsync&amp;gt;b__271_0(IAsyncResult iar)&lt;/del&gt;-- End of stack trace from previous location where exception was thrown &amp;#8212;   at MongoDB.Driver.Core.Connections.TcpStreamFactory.ConnectAsync(Socket socket, EndPoint endPoint, CancellationToken cancellationToken)   at MongoDB.Driver.Core.Connections.TcpStreamFactory.CreateStreamAsync(EndPoint endPoint, CancellationToken cancellationToken)   at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken)--- End of inner exception stack trace &amp;#8212;   at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken)   at MongoDB.Driver.Core.Servers.ServerMonitor.HeartbeatAsync(CancellationToken cancellationToken)&quot;, LastUpdateTimestamp: &quot;2019-08-09T15:11:24.7506020Z&quot; }] }.Source=MongoDB.Driver.CoreStackTrace:}}&lt;/p&gt;

&lt;p&gt;{{}}&lt;/p&gt;

&lt;p&gt;Have already tried appending &apos;&lt;tt&gt;?connect=replicaSet&lt;/tt&gt;&apos; to the connection string as suggested here :&#160;&lt;a href=&quot;https://groups.google.com/forum/#!topic/mongodb-csharp/O460OHiFjZs&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/#!topic/mongodb-csharp/O460OHiFjZs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Connection string:&lt;/p&gt;

&lt;p&gt;{{&quot;ConnectionStrings&quot;: &lt;/p&gt;
{&quot;DefaultConnection&quot;: &quot;mongodb://localhost:27017,localhost:27018/?rs=SpeQue&quot;}
&lt;p&gt;,}}{{}}&lt;/p&gt;</description>
                <environment>Windows 10, 32 bit, Visual Studio 2017, .net core 2.2</environment>
        <key id="889974">CSHARP-2682</key>
            <summary>A timeout occured after 30000ms; not able to make a connection to MongoDB</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="pranjalvatsa86@gmail.com">Pranjal Vatsa</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Aug 2019 18:56:00 +0000</created>
                <updated>Mon, 26 Aug 2019 15:02:55 +0000</updated>
                            <resolved>Mon, 26 Aug 2019 15:02:55 +0000</resolved>
                                    <version>2.8.1</version>
                                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2386662" author="esha.bhargava" created="Mon, 26 Aug 2019 15:02:49 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pranjalvatsa86%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;pranjalvatsa86@gmail.com&quot;&gt;pranjalvatsa86@gmail.com&lt;/a&gt;Thanks for your report. Please note that this project is for reporting bugs or feature suggestions for the driver. For MongoDB-related support discussion please post on the [mongodb-user group|&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;] or [Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag|&lt;a href=&quot;http://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/tagged/mongodb&lt;/a&gt;]. A question like this involving more discussion would be best posted on the mongodb-users group.&#160;&lt;/p&gt;</comment>
                            <comment id="2365542" author="pranjalvatsa86@gmail.com" created="Fri, 9 Aug 2019 22:09:22 +0000"  >&lt;p&gt;2019-08-10T03:30:19.662+0530 I NETWORK &lt;span class=&quot;error&quot;&gt;&amp;#91;conn719&amp;#93;&lt;/span&gt; received client metadata from 127.0.0.1:54745 conn719: { driver: &lt;/p&gt;
{ name: &quot;mongo-csharp-driver&quot;, version: &quot;2.8.1.0&quot; }
&lt;p&gt;, os: { type: &quot;Windows&quot;, name: &quot;Microsoft Windows 10.0.17134&quot;, architecture: &quot;x86_64&quot;, version: &quot;10.0.17134&quot; }, platform: &quot;.NET Core 4.6.27817.03&quot; }&lt;br/&gt;
2019-08-10T03:34:23.113+0530 I NETWORK &lt;span class=&quot;error&quot;&gt;&amp;#91;conn719&amp;#93;&lt;/span&gt; end connection 127.0.0.1:54745 (0 connections now open)&lt;/p&gt;

&lt;p&gt;above two lines are from mongod.log.. as can be seen the connection is established but it soon ends with the exception thrown&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|hv8um7:</customfieldvalue>

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