Skip to content

Magento 2.2.5 - Cron Job Error. Sqlstate[40001]: Serialization failure: 1213 Deadlock #18409

Closed
@techguysourav

Description

@techguysourav

Summary

We are using Magento 2.2.5 and we are consistently receiving Cron Job Error. Sqlstate[40001]: Serialization failure: 1213 Deadlock.

Preconditions

  1. Magento 2.2.5
  2. PHP 7.1.13

Steps to Reproduce

  1. Setup cron job at server

Expected Result

  1. Cron Job Run Should be successfully
  2. No more pending jobs

Actual Result

[Magento\Framework\DB\Adapter\DeadlockException]
SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: DELETE FROM cron_schedule WHERE (status = 'missed') AND (job_code in ('indexer_reindex_all_invalid', 'indexer_update_all_views', 'indexer_clean_all_changelogs')) AND (created_at < '2018-09-28 18:32:28')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions