Probleme beim Löschen eines Kurses - dmlreadexeption

Probleme beim Löschen eines Kurses - dmlreadexeption

von Roland Klosa -
Anzahl Antworten: 1

Hallo,

ich erhalte beim Versuch einen Kurs zu löschen folgende Rückmeldung (debugger hierfür aktiviert):

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 => 'a20339ae2032e7dbdff7dbaa5c9e2691',
)]
Error code: dmlreadexception
Stapelverfolgung: 
  • line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
  • line 1247 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1587 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
  • line 1660 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
  • line 1870 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 2058 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 178 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
  • line 119 of /backup/util/plan/backup_plan.class.php: call to base_plan->execute()
  • line 375 of /backup/controller/backup_controller.class.php: call to backup_plan->execute()
  • line 132 of /admin/tool/recyclebin/classes/category_bin.php: call to backup_controller->execute_plan()
  • line 185 of /admin/tool/recyclebin/lib.php: call to tool_recyclebin\category_bin->store_item()
  • line 5071 of /lib/moodlelib.php: call to tool_recyclebin_pre_course_delete()
  • line 68 of /course/delete.php: call to delete_course()

Das Löschen anderer Kurse funktioniert problemfrei.

Hat vielleicht jemand eine Idee?

Bevor jemand fragt, die Instanz liegt auf einem gehosteten Webserver, der ssh-Zugang ist nur eingeschränkt möglich.

Im Voraus vielen Dank

Roland

Mittelwert:  -
Als Antwort auf Roland Klosa

Re: Probleme beim Löschen eines Kurses - dmlreadexeption

von Roland Klosa -
Meine Lösung (vielleicht hilft es ja jemandem):
Im Kurs bearbeiten aktiviert
Händisch alle Teilnehmenden, Aktivitäten Dateien etc gelöscht bis der Kurs "leer" war.
Dann in der Administration Kurs gelöscht --> Alles geklappt