Skip to content

SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (SQL: de... #1728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
marvinroman opened this issue May 31, 2023 · 5 comments · Fixed by #1782
Labels
help wanted Extra attention is needed infrastructure This issue is related to hosting and continuous deployment of the platform
Milestone

Comments

@marvinroman
Copy link
Contributor

Illuminate\Database\QueryException

SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction (SQL: delete from sessions where last_activity <= 1685150713)

🎯 Illuminate\Database\Connection::runQueryCallback
📄 /app/vendor/laravel/framework/src/Illuminate/Database/Connection.php

758  // lot more helpful to the developer instead of just the database's errors.
759  catch (Exception $e) {
760*     throw new QueryException(
761          $query, $this->prepareBindings($bindings), $e
762      );

Open in Flare

@marvinroman marvinroman self-assigned this May 31, 2023
@marvinroman marvinroman added help wanted Extra attention is needed infrastructure This issue is related to hosting and continuous deployment of the platform labels May 31, 2023
@marvinroman
Copy link
Contributor Author

Add slow logging to database to help determine what is causing deadlocks.

[mysqld]
slow_query_log=1
long_query_time=0.1
log_queries_not_using_indexes=1

@flare-error-tracker
Copy link

@jobara
Copy link
Collaborator

jobara commented Jun 13, 2023

The related PR (#1782) that closed this was to add additional logging to determine the cause, not a fix for the issue.

@jobara jobara reopened this Jun 13, 2023
@flare-error-tracker
Copy link

@jobara
Copy link
Collaborator

jobara commented Feb 12, 2024

Hasn't re-ocurred for a while.

@jobara jobara closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed infrastructure This issue is related to hosting and continuous deployment of the platform
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants