I upgraded several sites thus far without issues, but somehow on the latest update I get this error:


The following updates returned messages

system module

Update #7053
Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'user-menu' for key 1: INSERT INTO {menu_custom} (menu_name, title, description) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => user-menu [:db_insert_placeholder_1] => User Menu [:db_insert_placeholder_2] => The User menu contains links related to the user's account, as well as the 'Log out' link. ) in system_update_7053() (line 2408 of /modules/system/system.install).

I checked the forums but couldn't really locate any solution, perhaps I missed something. Basically there are 19 updates left, the rest went fine.

Below the list of updates that needs to be done:

system module

7053 - Upgrade standard blocks and menus.
7054 - Remove {cache_}.headers columns.
7055 - Converts fields that store serialized variables from text to blob.
7057 - Increase the size of session-ids.
7058 - Remove cron semaphore variable.
7059 - Create the {file_usage} table.
7060 - Create fields in preparation for migrating upload.module to file.module.
7061 - Migrate upload.module data to the newly created file field.
7062 - Replace 'system_list' index with 'bootstrap' index on {system}.
7063 - Delete {menu_links} records for 'type' => MENU_CALLBACK which would not appear in a fresh install.
7064 - Remove block_callback field from {menu_router}.
7065 - Remove the default value for sid.
7066 - Migrate the 'file_directory_temp' variable.
7067 - Grant administrators permission to view the administration theme.
7068 - Update {url_alias}.language description.
7069 - Remove the obsolete 'site_offline' variable. @see update_fix_d7_requirements()
user module

7013 - Add user module file usage entries.
7014 - Rename the 'post comments without approval' permission. In Drupal 7, this permission has been renamed to 'skip comment approval'.
7015 - Change {users}.signature_format into varchar.

Comments

perebcn’s picture

The same error message and 19 updates left.

elmanytas’s picture

I needed those workarounds to migrate:

  1. In table block set visibility default value to 0.
  2. In table menu-custom I renamed user-menu to user-menu-old and management to management-old .

Then run update.php once more.

Have a nice day.