-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Environment:Test
Hi guys,
I was working with Mongo DB 3.4.2, and I am facing an strange issue when accessing data from my API. The error message says:
"ClassName": "System.TimeoutException", "Message": "A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : \"1\", ConnectionMode : \"Automatic\", Type : \"Standalone\", State : \"Disconnected\", Servers : [{ ServerId: \"{ ClusterId : 1, EndPoint : \"ServerIp:27017\" }\", EndPoint: \"ServerIp:27017\", State: \"Disconnected\", Type: \"Unknown\", HeartbeatException: \"MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
And we have already verified the following:
- There is no block port on the server.
- The firewall is not blocking the port.
The issue is solved by restarting the Mongo Db Service on the server, however the same issue comes up every 1 hour after restarting the service.
Could you please help me with this,
Thanks,
Jose