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

Will mongooplog tool work against servers that require authentication?

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • 2.2.0
    • None
    • Tools
    • None

    Description

      Ive been trying to use the mongooplog tool to replay operations from a live running replica set we have into a local db.

      However it keeps failing with:

      Wed Sep 5 07:39:27 creating new connection to:127.0.0.1:27017
      Wed Sep 5 07:39:27 BackgroundJob starting: ConnectBG
      Wed Sep 5 07:39:27 connected connection!
      connected to: 127.0.0.1
      Wed Sep 5 07:39:27 [oplogreplay] going to connect
      Wed Sep 5 07:39:27 BackgroundJob starting: ConnectBG
      Wed Sep 5 07:39:27 [oplogreplay] connected
      Wed Sep 5 07:39:27 [oplogreplay] starting from Sep 4 07:39:27:0
      Wed Sep 5 07:39:27 [oplogreplay] repl: local.oplog.rs.find({ ts:

      { $gte: new Date(5784331245513080832) }

      })
      Wed Sep 5 07:39:27 [oplogreplay]

      { $err: "unauthorized db:local ns:local.oplog.rs lock type:0 client:80.169.144.162", code: 10057 }

      Wed Sep 5 07:39:27 [oplogreplay] error getting oplog
      Wed Sep 5 07:39:27 [oplogreplay]

      { $err: "unauthorized db:local ns:local.oplog.rs lock type:0 client:80.169.144.162", code: 10057 }

      I then realised looking back at the documentation for mongooplog (http://docs.mongodb.org/manual/reference/mongooplog/) that

      If the mongod instance specified by the --from argument is running with authentication, then mongooplog will not be able to copy oplog entries.

      Firstly just to be sure: is this the reason why its failing for me?

      Secondly is this likely to be changed in the future? so that you can use it against a mongod instance that requires authentication?

      Thanks
      Nadeem

      Attachments

        Issue Links

          Activity

            People

              mikeo@mongodb.com Michael O'Brien
              kiyanwang Nadeem Shabir
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: