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

Mongo shell authorization error at start-up

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.1
    • Component/s: Shell
    • None
    • ALL
    • Hide

      Nothing special, just connect to an existing MongoDB instance which runs version 3 of the authorization schema.

      Show
      Nothing special, just connect to an existing MongoDB instance which runs version 3 of the authorization schema.

      I'm using a local, single-process installation (i.e. without sharding or replication). After running the authorization schema upgrade, the former regular users became dbOwner on their databases. But if I try to connect to the MongoDB instance with such a user, I get

      MongoDB shell version: 2.6.1
      connecting to: xyz
      Error while trying to show server startup warnings: not authorized on admin to execute command { getLog: "startupWarnings" }

      The database process log reads:

      2014-05-17T19:11:03.724+0300 [conn3] Auth schema upgrade copying version 3 users from admin.system.new_users to admin.system.users
      2014-05-17T19:11:03.725+0300 [conn3] command admin.$cmd command: authSchemaUpgrade { authSchemaUpgrade: 1.0 } keyUpdates:0 numYields:0 locks(mi
      cros) R:49 r:83 reslen:44 188ms
      2014-05-17T19:49:10.067+0300 [conn4]  authenticate db: xyz { authenticate: 1, nonce: "xxx", user: "xyz", key: "xxx" }
      2014-05-17T19:49:10.069+0300 [conn4] Unauthorized not authorized on admin to execute command { getLog: "startupWarnings" }
      2014-05-17T19:49:10.070+0300 [conn4] Unauthorized not authorized on admin to execute command { replSetGetStatus: 1.0, forShell: 1.0 }

            Assignee:
            Unassigned Unassigned
            Reporter:
            amare A Mare
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: