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

mongostat doesn't work with SRV URI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: No versions
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac
    • Documentation Changes:
      Not Needed
    • Case:

      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

              Assignee:
              Unassigned Unassigned
              Reporter:
              albert.wong Albert Wong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: