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
CommentFileSizeAuthor
#3 fb_autopost-1950594-3.patch1.21 KBRoSk0
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

e0ipso’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

RoSk0’s picture

Status: Closed (fixed) » Needs review
FileSize
1.21 KB

This 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.

  • e0ipso committed 8760cde on 7.x-1.x authored by RoSk0
    Issue #1950594 by RoSk0: Conflict with update.php and...
e0ipso’s picture

Status: Needs review » Fixed

This is now committed.

Thanks for your contribution!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.