-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
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 }, ] }