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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.2, 2.5.0
    • Affects Version/s: 2.4.0
    • Component/s: Security, Usability
    • Labels:
      None
    • ALL

      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
      

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            adam@comerford.net Adam Comerford
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: