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

Mongostats not working with Authentication enabled

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.1, 2.1.0
    • Affects Version/s: 2.0.0
    • Component/s: Tools
    • Environment:
      Ubuntu 10.04 on Amazon EC2
    • Linux

      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.

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

              Created:
              Updated:
              Resolved: