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

Atlas recommended connection string for mongostat doesn't work

    XMLWordPrintable

    Details

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

      Description

      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

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              varsha.subrahmanyam Varsha Subrahmanyam
              Reporter:
              jay.runkel Jay Runkel
              Reviewers:
              Huan Li, Tim Fogarty
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: