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

mongostat doesn't work with SRV URI

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Mac
    • Not Needed

      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 }

      , ] }}}

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

              Created:
              Updated:
              Resolved: