G'day,
I've got a vanilla moodle 3.8.x (just upgraded to 3.8.4, no problems with that upgrade via CLI) on a CentOS 8.2 with MariaDB 10.5.4 and all the up to date InnoDB settings. PHP 7.4.3
It upgraded from 3.8.2 to 3.8.4 with no problems.
3.8.4 (and, 3.8.2, I tried that too) is failing at upgrade time :
This is the error
sudo -u apache /usr/local/apache/2.4/bin/php admin/cli/upgrade.php
.
.
.
CREATE TABLE mdl_h5pactivity_attempts_results (
id BIGINT(10) NOT NULL auto_increment,
attemptid BIGINT(10) NOT NULL,
subcontent VARCHAR(128) COLLATE utf8mb4_unicode_ci,
timecreated BIGINT(10) NOT NULL,
interactiontype VARCHAR(128) COLLATE utf8mb4_unicode_ci,
description LONGTEXT COLLATE utf8mb4_unicode_ci,
correctpattern LONGTEXT COLLATE utf8mb4_unicode_ci,
response LONGTEXT COLLATE utf8mb4_unicode_ci NOT NULL,
additionals LONGTEXT COLLATE utf8mb4_unicode_ci,
rawscore BIGINT(10) NOT NULL DEFAULT 0,
maxscore BIGINT(10) NOT NULL DEFAULT 0,
duration BIGINT(10) DEFAULT 0,
completion TINYINT(1),
success TINYINT(1),
CONSTRAINT PRIMARY KEY (id)
, KEY mdl_h5paatteresu_atttim2_ix (attemptid, timecreated)
, KEY mdl_h5paatteresu_att2_ix (attemptid)
)
ENGINE = InnoDB
DEFAULT COLLATE = utf8mb4_unicode_ci ROW_FORMAT=Compressed
COMMENT='H5Pactivities_attempts tracking info'
Error code: ddlexecuteerror !!
!! Stack trace: * line 492 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
* line 1098 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 427 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
* line 372 of /lib/ddl/database_manager.php: call to database_manager->install_from_xmldb_structure()
* line 830 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
* line 565 of /lib/upgradelib.php: call to upgrade_plugins_modules()
* line 1917 of /lib/upgradelib.php: call to upgrade_plugins()
* line 193 of /admin/cli/upgrade.php: call to upgrade_noncore()
!!
any suggestions? The particular instance of Moodle has no extra plugins, and as above, it upgraded from 3.8.2 to 3.8.4 with no problems. I've backed it back out to 3.8.4 for now.