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

mongostat doesn't work with SRV URI

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • No versions
    • None
    • None
    • Mac
    • Not Needed

    Description

      I can connect via the URI in compass and it works but doesn't in the mongostat CLI.  This CLI command was given via the Atlas -> Command Line Tools

       

      {{albertwong@Alberts-MacBook-Pro ~ % mongostat --uri mongodb+srv://awong:abcd1234@cluster0.8f593.mongodb.net
      2020-09-10T13:51:31.254-0700 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() : dial tcp [::1]:27017: connect: connection refused }

      , ] }}}

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              albert.wong@mongodb.com Albert Wong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: