db.runCommand({serverStatus : 1, repl : 2}) FAILS with authentication

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Blocker - P1
    • 1.7.5
    • Affects Version/s: 1.6.3
    • Component/s: Admin
    • None
    • Environment:
      mongo-stable-20100930-mongodb_1, mongo-stable-server-20100930-mongodb_1, Centos 5.3 x86_64,
    • Linux
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We're trying to get lagSeconds out of
      db.runCommand(

      {serverStatus : 1, repl : 2}

      )
      or
      db._adminCommand(

      {serverStatus:1,repl:2}

      )
      or
      (python)
      serverStatus = db.command(bson.son.SON([('serverStatus', 1), ('repl', 2)]))

      getting the following error in the master's log
      assertion 10057 unauthorized db:local lock type:-1

      and this message is on the slave object (notice it doesn't list the sources at all)

      "repl" :

      { "ismaster" : false, "sources" : [ ] }

      ,
      "assertion" : "nextSafe():

      { $err: \"unauthorized db:local lock type:-1 client:10.0.0.27\", code: 10057 }

      ",
      "assertionCode" : 13106,
      "errmsg" : "db assertion failure",
      "ok" : 0

      I'm authenticating as the repl user, which exists on both master and slave, in the local db
      db.auth("repl", "...");

      I'm working on a authenticated nagios monitoring plugin..

            Assignee:
            Kristina Chodorow (Inactive)
            Reporter:
            Chas Wareing
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: