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

Mongostats not working with Authentication enabled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 2.1.0
    • Tools
    • Ubuntu 10.04 on Amazon EC2
    • 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

              eliot Eliot Horowitz (Inactive)
              djones Dave Jones
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: