Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2708

Atlas recommended connection string for mongostat doesn't work

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 100.2.0
    • Affects Version/s: None
    • Component/s: mongostat
    • Labels:
      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@mongodb.com Varsha Subrahmanyam (Inactive)
            Reporter:
            jay.runkel@mongodb.com Jay Runkel
            Huan Li, Tim Fogarty
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: