I decided that I would move up to Moodle 3.10 from version 3.9.1
I followed my standard process:
- Backup the site files and sql
- Move the site files to a backup location
- Unpack the new version of Moodle to the server and copy the site configuration into that directory
- Access the site through a web browser
- The server requirements all pass
- Upgrading begins with the standard warnings
- Upgrade process then eventually hangs and displays the errors below
- Moodle upgrade fails but the database is updated in part and the site code doesn't match
- Use the backups to restore the original SQL and site pages
- Upgrade to version 3.9.3 works
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 659 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
line 1922 of /lib/upgradelib.php: call to upgrade_plugins()
line 713 of /admin/index.php: call to upgrade_noncore()
Andrew