root@moodle-main-debian:/var/www/html/moodle# sudo -u www-data /usr/bin/php admin/cli/backup.php --courseid=57
== Performing backup... ==
instantiating backup controller b813db954f06b4356e3df28b9a5a38c9
setting controller status to 100
loading controller plan
setting controller status to 300
applying plan defaults
setting controller status to 400
setting file inclusion to
checking plan security
setting controller status to 500
setting controller status to 700
saving controller to db
calculating controller checksum aa859f82c0294ca2d9ba6b1288a3179c
loading controller from db
setting file inclusion to 1
setting controller status to 800
saving controller to db
calculating controller checksum f39d324b957ebf6bfcb3fae8eb84da37
loading controller from db
Default exception handler: Si è verificato un errore durante la scrittura nel database Debug: ERROR: relation "mdl_backup_ids_temp" does not exist
LINE 1: INSERT INTO mdl_backup_ids_temp (backupid,itemname,itemid) V...
^
INSERT INTO mdl_backup_ids_temp (backupid,itemname,itemid) VALUES($1,$2,$3) RETURNING id
[array (
'backupid' => 'b813db954f06b4356e3df28b9a5a38c9',
'itemname' => 'user',
'itemid' => '64',
)]
Error code: dmlwriteexception
* line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
* line 329 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
* line 1025 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
* line 1073 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->insert_record_raw()
* line 104 of /backup/util/dbops/backup_structure_dbops.class.php: call to pgsql_native_moodle_database->insert_record()
* line 58 of /backup/util/structure/backup_final_element.class.php: call to backup_structure_dbops::insert_backup_ids_record()
* line 115 of /backup/util/structure/backup_structure_processor.class.php: call to backup_final_element->annotate()
* line 38 of /backup/util/structure/backup_final_element.class.php: call to backup_structure_processor->process_final_element()
* line 97 of /backup/util/structure/backup_nested_element.class.php: call to backup_final_element->process()
* line 107 of /backup/util/structure/backup_nested_element.class.php: call to backup_nested_element->process()
* line 107 of /backup/util/structure/backup_nested_element.class.php: call to backup_nested_element->process()
* line 107 of /backup/util/structure/backup_nested_element.class.php: call to backup_nested_element->process()
* line 107 of /backup/util/structure/backup_nested_element.class.php: call to backup_nested_element->process()
* line 97 of /backup/util/plan/backup_structure_step.class.php: call to backup_nested_element->process()
* line 181 of /backup/util/plan/base_task.class.php: call to backup_structure_step->execute()
* line 178 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
* line 145 of /backup/util/plan/backup_plan.class.php: call to base_plan->execute()
* line 410 of /backup/controller/backup_controller.class.php: call to backup_plan->execute()
* line 100 of /admin/cli/backup.php: call to backup_controller->execute_plan()
!!! Si è verificato un errore durante la scrittura nel database !!!
!! ERROR: relation "mdl_backup_ids_temp" does not exist
LINE 1: INSERT INTO mdl_backup_ids_temp (backupid,itemname,itemid) V...
^
INSERT INTO mdl_backup_ids_temp (backupid,itemname,itemid) VALUES($1,$2,$3) RETURNING id
[array (
'backupid' => 'b813db954f06b4356e3df28b9a5a38c9',
'itemname' => 'user',
'itemid' => '64',
)]
Error code: dmlwriteexception !!
!! Stack trace: * line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
* line 329 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
* line 1025 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
* line 1073 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->insert_record_raw()
* line 104 of /backup/util/dbops/backup_structure_dbops.class.php: call to pgsql_native_moodle_database->insert_record()
* line 58 of /backup/util/structure/backup_final_element.class.php: call to backup_structure_dbops::insert_backup_ids_record()
* line 115 of /backup/util/structure/backup_structure_processor.class.php: call to backup_final_element->annotate()
* line 38 of /backup/util/structure/backup_final_element.class.php: call to backup_structure_processor->process_final_element()
* line 97 of /backup/util/structure/backup_nested_element.class.php: call to backup_final_element->process()
* line 107 of /backup/util/structure/backup_nested_element.class.php: call to backup_nested_element->process()
* line 107 of /backup/util/structure/backup_nested_element.class.php: call to backup_nested_element->process()
* line 107 of /backup/util/structure/backup_nested_element.class.php: call to backup_nested_element->process()
* line 107 of /backup/util/structure/backup_nested_element.class.php: call to backup_nested_element->process()
* line 97 of /backup/util/plan/backup_structure_step.class.php: call to backup_nested_element->process()
* line 181 of /backup/util/plan/base_task.class.php: call to backup_structure_step->execute()
* line 178 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
* line 145 of /backup/util/plan/backup_plan.class.php: call to base_plan->execute()
* line 410 of /backup/controller/backup_controller.class.php: call to backup_plan->execute()
* line 100 of /admin/cli/backup.php: call to backup_controller->execute_plan()
!!
Potential coding error - existing temptables found when disposing database. Must be dropped!