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

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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.3.1
    • Component/s: Shell
    • Labels:
      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).

      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@mongodb.com Spencer Brody (Inactive)
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: