Issues with AddUser after upgrade to 2.5

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.5.4
    • Component/s: Security
    • None
    • Environment:
      dev / Linux opensuse 12.2 x86-64
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > db.addUser(

      { user: "developer", ... pwd: "xxxx123", ... roles: [ "readWrite", "dbAdmin" ] ... }

      )
      WARNING: The 'addUser' shell helper is DEPRECATED. Please use 'createUser' instead
      2013-11-20T15:25:06.708-0600 Error: couldn't add user: User and role management commands require auth data to have schema version 3 but found 1 at src/mongo/shell/db.js:1016
      >

      What steps was missed when I just started the new engine ver 2.5.4 from
      2.4.5 with the old db file ,.
      Why is it complaining about schema ver 3 and 1 etc.

      Also I could not find the syntax in doc for createUser too to try fixing this.

            Assignee:
            Spencer Brody (Inactive)
            Reporter:
            Manojit Paul
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: