by Wilder Ferney Quintero Vanegas.
Hello
i have the same error. Please i need your help, with a course lees than 1gb work well but if is more than 1Gb aprox apears this error
server: Linux centox
Moodle: 3.2.2
var max:Allow_pocket: 536000010
max_execution_time: 1000
Warning: Error while sending QUERY packet. PID=10658 in /home/****/public_html/lib/dml/mysqli_native_moodle_database.phpon line 1174
Error al leer de la base de datos
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 => 'fa039f76d89dc6152d9ba2ef521edaa8',
)]
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 => 'fa039f76d89dc6152d9ba2ef521edaa8',
)]
Error code: dmlreadexception
Stack trace:
Fatal error: Uncaught exception 'ddl_change_structure_exception' with message 'Error de ejecución DDL sql' in /home/***/public_html/lib/dml/moodle_database.php:485 Stack trace: #0 /home/***/public_html/lib/dml/mysqli_native_moodle_database.php(1000): moodle_database->query_end(false) #1 /home***/public_html/lib/ddl/database_manager.php(77): mysqli_native_moodle_database->change_database_structure(Array, Array) #2 /home/****/public_html/lib/ddl/database_manager.php(332): database_manager->execute_sql_arr(Array, Array) #3 /home/****/public_html/lib/dml/moodle_temptables.php(140): database_manager->drop_table(Object(xmldb_table)) #4 /home/*****/public_html/lib/dml/moodle_database.php(398): moodle_temptables->dispose() #5 /home/*****/public_html/lib/dml/mysqli_native_moodle_database.php(565): moodle_database->dispose() #6 /home/****/public_html/lib/dml/moodle_database.php(157): mysqli_native_moodle_database->dispose() #7 [intern in /home/*****/public_html/lib/dml/moodle_database.php on line 485- line 479 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1175 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1551 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
- line 1624 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
- line 1834 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql()
- line 522 of /backup/util/dbops/backup_controller_dbops.class.php: call to moodle_database->count_records_sql()
- line 1981 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 322 of /backup/controller/backup_controller.class.php: call to backup_plan->execute()
- line 136 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()