Backup and restore

ERROR: relation "mdl_backup_ids_temp" does not exist

 
Picture of Shaun T
ERROR: relation "mdl_backup_ids_temp" does not exist
 

I'm getting this error when trying to restore a course from a manual backup. I'm on version 3.1.6 and using a PostgreSQL db. I believe its an issue with the question bank as when I exclude it from the back up it works. I'm just not able to identify the problem question(s). Any suggestions would be greatly appreciated. 


Debug info: ERROR: relation "mdl_backup_ids_temp" does not exist
LINE 1: INSERT INTO mdl_backup_ids_temp (backupid,itemname,itemid,ne...
^
INSERT INTO mdl_backup_ids_temp (backupid,itemname,itemid,newitemid,parentitemid,info) VALUES($1,$2,$3,$4,$5,$6) RETURNING id
[array (
'backupid' => '3e7a703f621c743a1ee3a637d28ae1cb',
'itemname' => 'fileref',
'itemid' => '27451047',
'newitemid' => 0,
'parentitemid' => NULL,
'info' => NULL,
)]
Error code: dmlwriteexception
×Stack trace:
  • line 482 of /lib/dml/moodle_database.php: dml_write_exception thrown
  • line 250 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
  • line 904 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
  • line 960 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->insert_record_raw()
  • line 286 of /backup/util/dbops/restore_dbops.class.php: call to pgsql_native_moodle_database->insert_record()
  • line 1669 of /backup/util/dbops/restore_dbops.class.php: call to restore_dbops::set_backup_ids_cached()
  • line 54 of /backup/util/helper/restore_inforef_parser_processor.class.php: call to restore_dbops::set_backup_ids_record()
  • line 178 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to restore_inforef_parser_processor->dispatch_chunk()
  • line 148 of /backup/util/xml/parser/processors/simplified_parser_processor.class.php: call to grouped_parser_processor->postprocess_chunk()
  • line 92 of /backup/util/xml/parser/processors/progressive_parser_processor.class.php: call to simplified_parser_processor->process_chunk()
  • line 190 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser_processor->receive_chunk()
  • line 278 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->publish()
  • line ? of unknownfile: call to progressive_parser->end_tag()
  • line 179 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse()
  • line 158 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->parse()
  • line 138 of /backup/util/dbops/restore_dbops.class.php: call to progressive_parser->process()
  • line 1020 of /backup/moodle2/restore_stepslib.php: call to restore_dbops::load_inforef_to_tempids()
  • line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_load_included_inforef_records->define_execution()
  • line 181 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
  • line 177 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
  • line 167 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
  • line 335 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
  • line 224 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
  • line 111 of /backup/restore.php: call to restore_ui->execute()

 
Average of ratings: -