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

Atlas recommended connection string for mongostat doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 100.2.0
    • mongostat
    • 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

              varsha.subrahmanyam@mongodb.com Varsha Subrahmanyam (Inactive)
              jay.runkel@mongodb.com Jay Runkel
              Huan Li, Tim Fogarty
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: