by Miha Osojnik.
Hello moodlers.
I have a problem with creating backup of one of our courses. Proces of selecting what to backup goes OK, but proces stops at 96.38% and gives me this error info:
Debug info:MySQL server has gone away
SELECT count(r.repositoryid)
FROM mdl_files f
LEFT JOIN mdl_files_reference r
ON r.id = f.referencefileid
JOIN mdl_backup_ids_temp bi
ON f.id = bi.itemid
WHERE bi.backupid = ?
AND bi.itemname = 'filefinal'
[array (
0 => 'f61a2222557c5724f642bd63c961fdca',
)]
Error code: dmlreadexception
SELECT count(r.repositoryid)
FROM mdl_files f
LEFT JOIN mdl_files_reference r
ON r.id = f.referencefileid
JOIN mdl_backup_ids_temp bi
ON f.id = bi.itemid
WHERE bi.backupid = ?
AND bi.itemname = 'filefinal'
[array (
0 => 'f61a2222557c5724f642bd63c961fdca',
)]
Error code: dmlreadexception
Stack trace:
- line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 996 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1428 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
- line 1501 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
- line 1672 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql()
- line 524 of /backup/util/dbops/backup_controller_dbops.class.php: call to moodle_database->count_records_sql()
- line 1772 of /backup/moodle2/backup_stepslib.php: call to backup_controller_dbops::backup_includes_file_references()
- line 34 of /backup/util/plan/backup_execution_step.class.php: call to backup_store_backup_file->define_execution()
- line 181 of /backup/util/plan/base_task.class.php: call to backup_execution_step->execute()
- line 177 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
- line 120 of /backup/util/plan/backup_plan.class.php: call to base_plan->execute()
- line 320 of /backup/controller/backup_controller.class.php: call to backup_plan->execute()
- line 111 of /backup/util/ui/backup_ui.class.php: call to backup_controller->execute_plan()
- line 131 of /backup/backup.php: call to backup_ui->execute()
Can you help me please.