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

Database error when trying to perform a backup #4

Closed
lmscloud-io opened this issue Mar 25, 2024 · 2 comments
Closed

Database error when trying to perform a backup #4

lmscloud-io opened this issue Mar 25, 2024 · 2 comments

Comments

@lmscloud-io
Copy link
Owner

During the "Database modification" pre-check a block_grade_me plugin throws exceptions (mysql):

Execute scheduled task: Vault - Site migration (tool_vault\task\cron_task)
... started 19:21:33. Current memory use 62.6MB.
[25/03/24, 19:21:35] [error] [pid 4012167] Operation failed: Coding error detected, it must be fixed by a programmer: Key primary collides with indexmdl_blocgradme_id_ix specified in table block_grade_me
[25/03/24, 19:21:36] [error] [pid 4012167] Operation failed: Coding error detected, it must be fixed by a programmer: Key primary collides with indexmdl_blocgradme_id_ix specified in table block_grade_me
@lmscloud-io
Copy link
Owner Author

This is actually caused by the DB schema not being correct in this block and there is already a PR trying to fix it in the block itslef remotelearner/moodle-block_grade_me#82

However, tool_vault, should not throw exceptions when things like this happen, it's not the only plugin with errors in the DB schema.

@lmscloud-io
Copy link
Owner Author

This has been fixed in v1.2 (2024032500)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant