[SERVER-2850] Error generated when using mongodump with --oplog and authentication Created: 28/Mar/11  Updated: 12/Jul/16  Resolved: 04/Apr/11

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 1.8.0
Fix Version/s: 1.8.2, 1.9.0

Type: Bug Priority: Minor - P4
Reporter: Neil Smith Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MongoDB 1.8.0 on localhost with --journal and authenticaiton enabled, running on 64bit Ubuntu 10.10.


Operating System: Linux
Participants:

 Description   

This works fine:
mongodump -u root -p

{password}

However this:
mongodump -u root -p {password}

--oplog

generates the following error:
assertion: 13106 nextSafe():

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

 Comments   
Comment by auto [ 03/May/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Make mongodump --oplog work with auth SERVER-2850
Branch: v1.8
https://github.com/mongodb/mongo/commit/9061285aaed453d6ae63f3ef96a9e4d09456cb98

Comment by auto [ 04/Apr/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Make mongodump --oplog work with auth SERVER-2850
Branch: master
https://github.com/mongodb/mongo/commit/64151ca41ac480805add7603320ca2a8adcba98c

Generated at Thu Feb 08 03:01:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.