Hi,
For now we doing test for backuping and restoring course in //.
The courses are backuped from a Moodle 3.7.1+ (mysql) in CLI and restore in a Moodle 3.9.7+
They've five cli that backup and it's OK but we encounter error during restore with multiple Cli (With one CLI all is OK, it just take more time).
Infra (VM 16CPU, 32Gb, Debian 9, NFS 3.x mounted drives)
We've error like :
Potential coding error - active database transaction detected during request shutdown:
* line 259 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->start_delegated_transaction()
* line 44 of /admin/ucl_restore.php: call to pgsql_native_moodle_database->start_delegated_transaction()
Potential coding error - existing temptables found when disposing database. Must be dropped!
PHP Fatal error: Uncaught ddl_change_structure_exception: Erreur d'exécution DDL sql (ERROR: table "mdl_backup_ids_temp" does not exist
BEGIN ISOLATION LEVEL SERIALIZABLE;
DROP TABLE mdl_backup_ids_temp
; COMMIT) in /var/www/moodlecode/lib/dml/moodle_database.php:492
Stack trace:
#0 /var/www/moodlecode/lib/dml/pgsql_native_moodle_database.php(329): moodle_database->query_end()
#1 /var/www/moodlecode/lib/dml/pgsql_native_moodle_database.php(738): pgsql_native_moodle_database->query_end()
#2 /var/www/moodlecode/lib/ddl/database_manager.php(77): pgsql_native_moodle_database->change_database_structure()
#3 /var/www/moodlecode/lib/ddl/database_manager.php(332): database_manager->execute_sql_arr()
#4 /var/www/moodlecode/lib/dml/moodle_temptables.php(140): database_manager->drop_table()
#5 /var/www/moodlecode/lib/dml/moodle_database.php(405): moodle_temptables->dispose()
#6 /var/www/moodlecode/lib/dml/pgsql_native_moodle_database.php(240): moodle_database->dispose()
#7 /var/www/moodlecode/lib/dml/moodle_database.php(160): pgsql_na in /var/www/moodlecode/lib/dml/moodle_database.php on line 492
Fatal error: Uncaught ddl_change_structure_exception: Erreur d'exécution DDL sql (ERROR: table "mdl_backup_ids_temp" does not exist
If some have any idea, it would be greet. Or maybe it's not possible to do restore in // ?
They're also errors about duplicate keys, but maybe they've no link...
021-05-31 09:28:55 CEST [20017] moodle@myanydb ERROR: duplicate key value violates unique constraint "mdl_ltitypeconf_id_pk"
Thanks in advance.
Dominique.