Mongo shell throws exception when connecting to a server with --auth

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.3.1
    • Component/s: Shell
    • None
    • Environment:
      ubuntu 12 64bit
    • ALL
    • Hide

      1. Start mongod with --auth.
      2. Connect with mongo shell (also reproducible when done from the same machine).

      Show
      1. Start mongod with --auth. 2. Connect with mongo shell (also reproducible when done from the same machine).
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      MongoDB shell version: 2.3.2-pre-
      connecting to: test
      Mon Jan  7 12:06:38.011 javascript execution failed src/mongo/shell/utils.js:1595 don't know how to show [startupWarnings]
      throw "don't know how to show [" + what + "]";
                                              ^
      

      The shell session will still continue, but the error can be confusing. This is what showed up in the server logs:

      Mon Jan  7 12:06:38.010 [conn1] command denied: { getLog: "startupWarnings" }
      Mon Jan  7 12:06:38.011 [conn1] command denied: { replSetGetStatus: 1.0, forShell: 1.0 }
      

              Assignee:
              Spencer Brody (Inactive)
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: