Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3875

Mongostats not working with Authentication enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1, 2.1.0
    • Component/s: Tools
    • Labels:
    • Environment:
      Ubuntu 10.04 on Amazon EC2
    • Operating System:
      Linux

      Description

      I upgraded an existing server to the 2.0 code. When authentication is enabled, I am unable to run mongostat. I get "error:
      >

      { errmsg: "need to login", ok: 0.0 }

      " even when using a correct username/password for an admin account. That is, I can login to admin db with the mongo cli with a given set of credentials but can not run mongostat with the same credentials.

      If I turn off authentication, I'm able to run mongostat.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: