-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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] Serialization failure: 1213 Deadlock found when marking archives as invalid #21749
Comments
I guess this one might be very hard to reproduce. Looking through the code it seems the GA Importer plugin always did trigger a Looking at the stack trace (1) it seems the exception is thrown while marking some archives as invalidated. Maybe this is some sort of race condition when the GA Importer triggers the archiving while a normal archiving process is already running or similar. |
This issue has been mentioned on Matomo forums. There might be relevant details there: |
Hi, yes that forum post is mine. I'll quickly paste it over to here, and happily answer any questions about it. Hi, Matomo installation
Our Machine:
Since migrating to the new machine and upgrading to Matomo 5.0 (later 5.1) we get the error message below several times a day. Our cron job runs every 15 minutes, but is usually restricted to --concurrent-archivers 8. In the past we had no problems but now we get these deadlocks even with a maximum of 2 concurrent archivers.
We migrated the VM to faster hardware. We migrated the database to SSD-based storrage. We upped the Caching of MariaDB… but now we are running out of ideas, what else we could try. Any Ideas what goes wrong? Best |
Anything new in this regard? We are still on 2-4 failed cron jobs per day. |
Same in my setup, happens around 20 times a day since we upgraded from Matomo 4 to Matomo 5. We do not use GA Importer. I will try to investigate more. Update: Update 2:
VS
|
Agreed with Michael and Schwup. From my experience this can be solidly reproduced in a high concurrency environment. |
Since the update to version 5.2.0 I also receive the message. EDIT: Unfortunately, I have to correct myself. Now this error message also came to other segments. Here are the two lines from the archiving.
|
Since yesterday we’ve got the same problem. We’ve got errors like:
Our setting is: |
We now log the locks in the mysql-error log file, this is an example:
|
What happened?
Since Matomo 5 we're seeing 3-6 times per day below fatal errors. We're currently on 5.0.0-rc9. This did not happen in Matomo 4 or only very rarely. There must have been some change.
Stack trace 1
Stack trace 2
What should happen?
No fatal error
How can this be reproduced?
Unsure.
Executed command for stack trace 1 was:
Which seems to be triggered by GA Importer. Unsure if there was maybe any change in GA importer that this is being triggered more often? I don't know why GA Importer executes this command.
Executed command for stack trace 2 was:
Matomo version
5.0
PHP version
No response
Server operating system
No response
What browsers are you seeing the problem on?
No response
Computer operating system
No response
Relevant log output
No response
Validations
The text was updated successfully, but these errors were encountered: