-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.7.2
-
Component/s: Connectivity
-
Environment:Single MongoDB instance on Windows Server 2016
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Getting a lot of timeout exceptions.
Mongo server confoguration:
storage: dbPath: "" wiredTiger: engineConfig: cacheSizeGB: 5 systemLog: destination: file path: "" quiet: true operationProfiling: slowOpThresholdMs: 250 net: bindIp: 0.0.0.0 serviceExecutor: "adaptive" security: authorization: enabled
Exception and stacktrace:
{
"ClassName": "MongoDB.Driver.MongoConnectionException",
"Message": "An exception occurred while opening a connection to the server.",
"Data": null,
"InnerException": {
"ClassName": "System.TimeoutException",
"Message": "Timed out connecting to Unspecified/localhost:27017. Timeout was 00:00:30.",
"Data": null,
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at MongoDB.Driver.Core.Connections.TcpStreamFactory.<ConnectAsync>d__7.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at MongoDB.Driver.Core.Connections.TcpStreamFactory.<CreateStreamAsync>d__4.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at MongoDB.Driver.Core.Connections.BinaryConnection.<OpenHelperAsync>d__48.MoveNext()",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8\nMoveNext\nMongoDB.Driver.Core, Version=2.7.2.0, Culture=neutral, PublicKeyToken=null\nMongoDB.Driver.Core.Connections.TcpStreamFactory+<ConnectAsync>d__7\nVoid MoveNext()",
"HResult": -2146233083,
"Source": "MongoDB.Driver.Core",
"WatsonBuckets": null
},
"HelpURL": null,
"StackTraceString": " at MongoDB.Driver.Core.Connections.BinaryConnection.<OpenHelperAsync>d__48.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at MongoDB.Driver.Core.Servers.Server.<GetChannelAsync>d__30.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at MongoDB.Driver.Core.Operations.FindOperation`1.<ExecuteAsync>d__111.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at MongoDB.Driver.OperationExecutor.<ExecuteReadOperationAsync>d__3`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at MongoDB.Driver.MongoCollectionImpl`1.<ExecuteReadOperationAsync>d__93`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at MongoDB.Driver.MongoCollectionImpl`1.<UsingImplicitSessionAsync>d__101`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at MongoDB.Driver.IAsyncCursorSourceExtensions.<ToListAsync>d__16`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at <client code> \r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at <client code>",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8\nMoveNext\nMongoDB.Driver.Core, Version=2.7.2.0, Culture=neutral, PublicKeyToken=null\nMongoDB.Driver.Core.Connections.BinaryConnection+<OpenHelperAsync>d__48\nVoid MoveNext()",
"HResult": -2146233088,
"Source": "MongoDB.Driver.Core",
"WatsonBuckets": null,
"_errorLabels": [],
"_connectionId": {
"ServerId": {
"_clusterId": {
"Value": 1
},
"_endPoint": [
"DnsEndPoint",
"localhost",
27017,
0
]
},
"LocalValue": 1034,
"ServerValue": null
}
}