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

Error when bootstrapping 2.1.x with auth from localhost

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

      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@mongodb.com Spencer Brody (Inactive)
            Reporter:
            abdul Abdul Alkhatib
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: