Skip to content
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

[Bug] Matomo Database - waiting for table metadata lock #22319

Open
4 tasks done
nnhiep opened this issue Jun 18, 2024 · 0 comments
Open
4 tasks done

[Bug] Matomo Database - waiting for table metadata lock #22319

nnhiep opened this issue Jun 18, 2024 · 0 comments
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. triaged

Comments

@nnhiep
Copy link

nnhiep commented Jun 18, 2024

What happened?

Sometimes, I encounter issues with the database (waiting for table metadata lock). And data could not be written at the time the issue occurred, I had to restart the database service (MySQL). After investigation, it is related to the SQL query as below.
SELECT idaction , type , name FROM matomo_log_action WHERE ( hash = CRC32 ( ? ) AND name = ? AND type = ? ) OR ( hash = CRC32 ( ? ) AND name = ? AND type = ? ) OR ( hash = CRC32 ( ? ) AND name = ? AND type = ? ) OR ( hash = CRC32 ( ? ) AND name = ? AND type = ? )

What should happen?

What do I need to do to minimize the impact of this issue?

How can this be reproduced?

Run matomo 5.0.1

Matomo version

5.0.1

PHP version

8.3.6

Server operating system

CentOS7

What browsers are you seeing the problem on?

No response

Computer operating system

No response

Relevant log output

No response

Validations

@nnhiep nnhiep added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Jun 18, 2024
@randy-innocraft randy-innocraft added triaged and removed To Triage An issue awaiting triage by a Matomo core team member labels Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. triaged
Projects
None yet
Development

No branches or pull requests

2 participants