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

Go driver fails to Ping() on WSL, while on Windows 10 it's OK

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.4.3
    • Component/s: Connections
    • None
    • Environment:
      WSL 2 Preview, Ubuntu 20.04 LTS, Kernel: 4.19.128-microsoft-standard (Windows 10 Pro Insider, Version 10.0.20257 Build 20257)
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The exact same code, connection string, and Atlas Mongo dB work on Windows 10.

      Go driver fails to Ping() on WSL.

      panic: server selection error: context deadline exceeded, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: cluster0-shard-00-00.ug2za.mongodb.net:27017, Type: Unknown, Average RTT: 0 }, { Addr: cluster0-shard-00-01.ug2za.mongodb.net:27017, Type: Unknown, Average RTT: 0 }, { Addr: cluster0-shard-00-02.ug2za.mongodb.net:27017, Type: Unknown, Average RTT: 0 }, ] } [recovered]panic: server selection error: context deadline exceeded, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: cluster0-shard-00-00.ug2za.mongodb.net:27017, Type: Unknown, Average RTT: 0 }, { Addr: cluster0-shard-00-01.ug2za.mongodb.net:27017, Type: Unknown, Average RTT: 0 }, { Addr: cluster0-shard-00-02.ug2za.mongodb.net:27017, Type: Unknown, Average RTT: 0 }, ] } [recovered] panic: server selection error: context deadline exceeded, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: cluster0-shard-00-00.ug2za.mongodb.net:27017, Type: Unknown, Average RTT: 0 }, { Addr: cluster0-shard-00-01.ug2za.mongodb.net:27017, Type: Unknown, Average RTT: 0 }, { Addr: cluster0-shard-00-02.ug2za.mongodb.net:27017, Type: Unknown, Average RTT: 0 }, ] }
       
      
      

       

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            info@3dhdsoft.com Ivan Farkas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None