Hi
When trying to upgrade to Moodle 4.0 it comes up with the error below and then reverts back to the Upgrade Plugins page -
Upgrading to new version
block_myoverview
Error writing to database
More information about this error
×Debug
info: Lock wait timeout exceeded; try restarting
transaction
DELETE mysql_deltable FROM mdl_user_preferences mysql_deltable JOIN ( SELECT p.id
AS pid
FROM mdl_user_preferences p
JOIN mdl_block_instances bi ON p.name IN (CONCAT('block', bi.id, 'hidden'),
CONCAT('docked_block_instance_', bi.id))
WHERE blockname = ?
AND pagetypepattern = ?
AND subpagepattern = ?) mysql_subquery ON mysql_subquery.pid = mysql_deltable.id
[array (
0 => 'myoverview',
1 => 'my-index',
2 => '2',
)]
Error code: dmlwriteexception
×Stack trace:
- line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1167 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1704 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->execute()
- line 1451 of /lib/db/upgradelib.php: call to mysqli_native_moodle_database->delete_records_subquery()
- line 1479 of /lib/db/upgradelib.php: call to {closure}()
- line 88 of /blocks/myoverview/db/upgrade.php: call to upgrade_block_delete_instances()
- line 1082 of /lib/upgradelib.php: call to xmldb_block_myoverview_upgrade()
- line 584 of /lib/upgradelib.php: call to upgrade_plugins_blocks()
- line 1935 of /lib/upgradelib.php: call to upgrade_plugins()
- line 719 of /admin/index.php: call to upgrade_noncore()
Thanks