matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!

Home Page:https://matomo.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Matomo Database - waiting for table metadata lock

nnhiep opened this issue · comments

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