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

Duplicate users in system.users causes problem with 2.4.x upgrade

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.2, 2.5.0
    • Component/s: Security, Usability
    • Labels:
      None
    • Operating System:
      ALL

      Description

      If duplicate users exist then the upgrade process of creating a new unique index will fail. To fix this duplicate user problem you must start in the previous version and ensure that no duplicate users exist before upgrading; this will require removing those duplicate user documents.

      Orig Report
      Example from original thread on mongodb-user.

      After upgrading to 2.4 I have following errors:

      Wed Mar 20 10:38:42.006 [initandlisten] build index admin.system.users { user: 1, userSource: 1 }
      Wed Mar 20 10:38:42.007 [initandlisten] exception in initAndListen: 11000 E11000 duplicate key error index: admin.system.users.$user_1_userSource_1  dup key: { : "myuser", : null }, terminating

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: