-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.1.1, 1.1.0
-
Component/s: Authentication, Connections, Internal
-
None
-
Environment:docker
OS -- macos 1.14.6
golang version : go 1.13
mongo go driver 1.1.0 or 1.1.1 tested with both
docker : 19.03.2
hi,
we are able to run properly when server run on os as localhost.
But when we run on docker..
We are connecting to mongo db , connection got established.
But when making call to mongo.ping it not able to connect and gives the below error.
so we removed ping call and made some queries to db we got same error..
Error:
Internal error: server selection error: server selection timeout\ncurrent topology: Type: ReplicaSetNoPrimary\nServers:\nAddr: xxxxxxxxxxxx:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection