Hi everyone, I’m facing the issue of connecting to Atlas. It’s not frequently but it’s happening a few times in the day.
This is an exception message:
Exception: One or more errors occurred. (A timeout occurred 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 : “ReplicaSet”, Type : “ReplicaSet”, State : “Disconnected”, Servers : [{ ServerId: “{ ClusterId : 1, EndPoint : “Unspecified/production-shard-00-00.7h6j4.mongodb.net:27017” }”, EndPoint: “Unspecified/production-shard-00-00.7h6j4.mongodb.net:27017”, ReasonChanged: “ServerInitialDescription”, State: “Disconnected”, ServerVersion: , TopologyVersion: , Type: “Unknown”, LastHeartbeatTimestamp: null, LastUpdateTimestamp: “2021-06-02T14:47:58.7124234Z” }, { ServerId: “{ ClusterId : 1, EndPoint : “Unspecified/production-shard-00-01.7h6j4.mongodb.net:27017” }”, EndPoint: “Unspecified/production-shard-00-01.7h6j4.mongodb.net:27017”, ReasonChanged: “ServerInitialDescription”, State: “Disconnected”, ServerVersion: , TopologyVersion: , Type: “Unknown”, LastHeartbeatTimestamp: null, LastUpdateTimestamp: “2021-06-02T14:47:58.7062388Z” }, { ServerId: “{ ClusterId : 1, EndPoint : “Unspecified/production-shard-00-02.7h6j4.mongodb.net:27017” }”, EndPoint: “Unspecified/production-shard-00-02.7h6j4.mongodb.net:27017”, ReasonChanged: “ServerInitialDescription”, State: “Disconnected”, ServerVersion: , TopologyVersion: , Type: “Unknown”, LastHeartbeatTimestamp: null, LastUpdateTimestamp: “2021-06-02T14:47:58.7119543Z” }] }.)
I did some research and the most of recommendation is to upgrade the MongoDB driver version to the latest because the issue happened on v2.11.0.
I tried to upgrade the MongoDB driver version to 2.12.3 and MongoDB atlas to 4.4.6 but it’s still happening.
Please give me some advice to fix it.
Thanks in advance
“id”:5512201, “ctx”:“OCSP Fetch and Staple”,“msg”:“Server was unable to staple OCSP Response”,“attr”:{“reason”:{“code”:141,“codeName”:“SSLHandshakeFailed”,“errmsg”:“SSL peer certificate revocation status checking failed: Could not verify X509 certificate store for OCSP Stapling. error:00000000:lib(0):func(0):reason(0)”}}}
This is the exception that I am facing sometimes during load testing. It is interesting that exception do not happen if RampUp period is 60sec, but happens when rampUp period is 0 sec.