Amit Baderia
Amit Baderia

Reputation: 4882

Getting exception on adding user in MongoDB admin

I am trying to add new user in MongoDb > admin table. This is what i done

use admin
db.addUser("test", "test123")

after executing command it displayed this

{
    "user" : "test",
    "readOnly" : false,
    "pwd" : "2ee6cd2e57f3a5829ed694d5c367bc48",
    "_id" : ObjectId("5076beeb87a1b34978829bc5")
}

Thu Oct 11 18:13:53 uncaught exception: timed out while waiting for user authentication to replicate - database will not be fully secured until replication finishes

What is the reason of this error?

And where can i see my new user.

Note: I am in network, is this related to any security policy ?

Upvotes: 1

Views: 798

Answers (1)

shelman
shelman

Reputation: 2699

It looks as if this is a filed bug that was fixed in 2.1.2. What version of MongoDB are you running?

If you are running a compatible version, are all of your secondaries alive and healthy? It looks like the propagation of the user auth info to a secondary timed out.

Upvotes: 1

Related Questions