Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1313

not able to connect to determine replica set set and due to this all query are failing

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.1.1, 1.1.0
    • 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

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            dharmadev2@gmail.com DHARMADEV gupta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: