Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In update.php...
PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction: DELETE FROM {semaphore} WHERE ... Backtrace:
PDOStatement->execute(Array) database.inc:2139
DatabaseStatementBase->execute(Array, Array) database.inc:664
DatabaseConnection->query('DELETE FROM {semaphore}
WHERE (name = :db_condition_placeholder_0) AND (value = :db_condition_placeholder_1) AND (expire <= :db_condition_placeholder_2) ', Array, Array) query.inc:857
DeleteQuery->execute() lock.inc:181
lock_may_be_available('menu_rebuild') lock.inc:230
lock_wait('menu_rebuild') menu.inc:2705
menu_rebuild() fb_autopost_entity.module:283
fb_autopost_entity_facebook_publication_type_update(Object)
call_user_func_array('fb_autopost_entity_facebook_publication_type_update', Array) module.inc:857
module_invoke_all('facebook_publication_type_update', Object) entity.controller.inc:893
EntityAPIControllerExportable->invoke('update', Object) entity.controller.inc:467
EntityAPIController->save(Object, NULL) entity.controller.inc:912
EntityAPIControllerExportable->save(Object) entity.inc:188
Entity->save() entity.module:187
entity_save('facebook_publication_type', Object) entity.module:833
_entity_defaults_rebuild('facebook_publication_type') entity.module:749
entity_defaults_rebuild() entity.module:955
entity_flush_caches()
call_user_func_array('entity_flush_caches', Array) module.inc:857
module_invoke_all('flush_caches') common.inc:7390
drupal_flush_all_caches() update.php:113
update_script_selection_form(Array, Array)
call_user_func_array('update_script_selection_form', Array) form.inc:798
drupal_retrieve_form('update_script_selection_form', Array) form.inc:339
drupal_build_form('update_script_selection_form', Array) form.inc:131
drupal_get_form('update_script_selection_form') update.php:32
update_selection_page() update.php:447
Comment | File | Size | Author |
---|---|---|---|
#3 | fb_autopost-1950594-3.patch | 1.21 KB | RoSk0 |
Comments
Comment #1
e0ipsoComment #3
RoSk0This issue is still active and I didn't found any commits relevant to it git so reopening.
Calling menu_rebuild() directly is very expensive and sometimes could lead to side effects. For the purpose of this module I think it's enough to just mark menu as dirty and needed to be be rebuilt.
Patch doing exactly this.
Comment #5
e0ipsoThis is now committed.
Thanks for your contribution!