I have a MongoDB version 2.4 that i wish to upgrade to 4.0. The official solution is to upgrade from 2.4 to 2.6, then to 3.0, and so on. I am attempting to upgrade from 2.6 to 3.0, and also to change the storage engine to WiredTiger .

To upgrade from 2.6 to 3.0 i changed the bin folder's name of the 2.6executables and then changed the 3.0 bin folder's name to bin (so i will have a seamless transition to 3.0). Then as This official MongoDB upgrade manual says, i am trying to change the storage engine to WiredTiger by using This manual.

However, when i run this command:

mongod --storageEngine wiredTiger --dbpath ../dataDb_WiredTiger

as suggested by the manual, i get an error:

SCRAM-SHA-1 authentication failed for MyAdminUser on admin ; UserNotFound Could not find user MyAdminUser@admin

Failed to authenticate MyAdminUser@admin with mechanism MONGODB-CR: AuthenticationFailed UserNotFound Could not find user MyAdminUser@admin

But using MongoVUE or shell, i am able to authenticate using the same user.

What am i missing here?

Thank you.

enter image description here

1 Answer 1


Ended up working by using a configuration file when running mongod. Don't know why.

  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
    – McNets
    Commented Jan 31, 2019 at 7:59
  • This is my post. By using a configuration file it 'probably' overrides any default configuration used, and then it doesnt try to auth with an unexisting user (because im using new database, how would it exist in the first place?). Commented Jan 31, 2019 at 8:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.