Atlas recommended connection string for mongostat doesn't work

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 100.2.0
    • Affects Version/s: None
    • Component/s: mongostat
    • None

      If you have an Atlas cluster configured with PrivateLink, the command line configuration recommended by Atlas does not work. For example, Atlas recommends the following mongostat command line options:

      mongostat --uri mongodb+srv://admin:********@functionaltest.zq5bn.mongodb.net

      This does not work. You get the following error message:

      mongostat --uri mongodb+srv://admin:**********@functionaltest.zq5bn.mongodb.netmongostat 08-14T15:32:01.578-0400 could not connect to server: server selection error: server selection timeout, current topology: { Type: Single, Servers: [{ Addr: localhost:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : EOF }, ] }

       

      The recommended connection string for mongotop does work:

      mongotop --uri mongodb+srv://admin:<PASSWORD>@functionaltest.zq5bn.mongodb.net

       

              Assignee:
              Varsha Subrahmanyam (Inactive)
              Reporter:
              Jay Runkel
              Huan Li (Inactive), Tim Fogarty
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: