Level 3
@luisya14 It's due to a database lock. Please go visit https://laravel.com/docs/7.x/database#database-transactions and read about deadlocks and transcations
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm using Laravel Queues for some processes in my Laravel app. For information, my app is hosted in Digital Ocean and is using a Managed Database.
This is what the log says: (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded;
This happens when the app try to insert a job and because of this, the job is not inserted. This does not occur always.
How can I solve this? Do I need to provide more info?
Please or to participate in this conversation.