Error when bootstrapping 2.1.x with auth from localhost

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.1.0, 2.1.1
    • Component/s: Security
    • None
    • Environment:
      osx-x86_64, linux-x86_64
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As of 2.1.0, when bootstrapping a server that is running with --auth, I get an error when adding the first admin user. The user does get added but an error is thrown:

      > db.addUser('aaa' , 'aaa')
      {
      "user" : "aaa",
      "readOnly" : false,
      "pwd" : "23f8b034fedbdf7c2f1c184fbc5452c0",
      "_id" : ObjectId("4fd92e5aee90c3265d5ff41d")
      }
      Wed Jun 13 17:20:42 uncaught exception: getlasterror failed:

      { "errmsg" : "need to login", "ok" : 0 }

              Assignee:
              Spencer Brody (Inactive)
              Reporter:
              Abdul Alkhatib
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: