-
Bug
-
Resolution: Fixed
-
Major
-
3.3.1
-
MOODLE_33_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
wip-
MDL-59561-master -
-
3.4 Sprint 2, 3.4 Sprint 3
I received the following stack trace when attempting to upgrade my development environment from Moodle 3.1.5 to Moodle 3.3.1:
Debug info: Index column size too large. The maximum column size is 767 bytes.
|
CREATE UNIQUE INDEX mdl_quescate_consta_uix ON mdl_question_categories (contextid, stamp)
|
Error code: ddlexecuteerror
|
Stack trace:
|
line 492 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
|
line 1000 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
|
line 77 of /lib/ddl/database_manager.php: call to mysqli_native_moodle_database->change_database_structure()
|
line 826 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
|
line 2165 of /lib/db/upgrade.php: call to database_manager->add_index()
|
line 1694 of /lib/upgradelib.php: call to xmldb_main_upgrade()
|
line 523 of /admin/index.php: call to upgrade_core()
|
The specific task it failed on was "Updating duplicate question category stamp - 9/9".
I had previously gone through the steps at https://docs.moodle.org/33/en/MySQL_full_unicode_support to convert the database to utf8mb4. My database server has required configuration:
innodb_file_per_table=1
|
innodb_file_format=barracuda
|
innodb_large_prefix=on
|
All the relevant environment checks passed prior to attempting the upgrade. This is what the script said about mdl_question_categories:
mdl_question_categories - CONVERTED
|
name - NO CHANGE
|
info - NO CHANGE
|
stamp - NO CHANGE
|
I'm running MariaDB 10.1.18.
- has been marked as being related by
-
MDL-63521 Moodle installer checks for innodb_file_per_table when it probably shouldn't
- Closed
- is a regression caused by
-
MDL-58729 Full unicode support conversion impractically slow
- Closed
- will help resolve
-
MDL-58949 Upgrade to 3.3 fails because of very long index in auth_oauth2_linked_login on MySQL in utf8mb4_general_ci
- Closed