During a site upgrade from 4.1.19 to 4.5.5 I keep on getting the error, "This next upgrade step may take some time to complete, your site has 15649211 SCORM track records that need to be migrated to the new table structure, please be patient as a progress bar is not able to be displayed." After a long delay it throws the error quoted below. Once I click on "Continue" it repeats.
The question is whether the script will keep on converting the records and will finish or it always start from the beginning and will never finish. The serer, a beefy dedicated server, doesn't lack in power.
mod_scorm
This next upgrade step may take some time to complete, your site has 15649211 SCORM track records that need to be migrated to the new table structure, please be patient as a progress bar is not able to be displayed.
Debug-Info: Lock wait timeout exceeded; try restarting transaction
INSERT INTO mdl_scorm_scoes_value (attemptid, scoid, elementid, value, timemodified)
SELECT a.id as attemptid, t.scoid as scoid, e.id as elementid, t.value as value, t.timemodified
FROM mdl_scorm_scoes_track t
JOIN mdl_scorm_element e ON e.element = t.element
JOIN mdl_scorm_attempt a ON (t.userid = a.userid AND t.scormid = a.scormid AND a.attempt = t.attempt)
[array (
)]
Error code: dmlwriteexception
Stack trace:
- line 500 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
- line 1258 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
- line 141 of /mod/scorm/db/upgrade.php: call to mysqli_native_moodle_database->execute()
- line 908 of /lib/upgradelib.php: call to xmldb_scorm_upgrade()
- line 651 of /lib/upgradelib.php: call to upgrade_plugins_modules()
- line 1937 of /lib/upgradelib.php: call to upgrade_plugins()
- line 719 of /admin/index.php: call to upgrade_noncore()