Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6520

Can't backup Front Page Settings course

$
0
0
by David Rogers.  

Hello,

All my other courses backup just fine,  but I'm unable to backup my Front Page Settings course (either manually or via automated backup).  With debugging turned on, I get the following error:

1. Initial settings / ? 2. Schema settings / ? 3. Confirmation and review / ? 4. Perform backup / ? 5. Complete

412.49 sec
 5.7%

Error reading from database

More information about this error
Debug info: MySQL server has gone away
SELECT COUNT('x') FROM mdl_backup_ids_temp WHERE backupid = ? AND itemname = ?
[array (
0 => '897858a1bec1eced6caf3d6d403f6ec1',
1 => 'user',
)]
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 1655 of /lib/dml/moodle_database.php: call to moodle_database->count_records_sql()
    line 1638 of /lib/dml/moodle_database.php: call to moodle_database->count_records_select()
    line 163 of /backup/util/dbops/backup_structure_dbops.class.php: call to moodle_database->count_records()
    line 1481 of /backup/moodle2/backup_stepslib.php: call to backup_structure_dbops::annotations_exist()
    line 88 of /backup/util/plan/backup_structure_step.class.php: call to backup_inforef_structure_step->define_structure()
    line 181 of /backup/util/plan/base_task.class.php: call to backup_structure_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()


I've looked into some other threads and verified that my Moodle database user has all permissions to my Moodle database, including CREATE TEMPORARY TABLES.

Files are being created successfully in the my /moodledata/temp/backup directory, and my .LOG file is empty which I believe indicates there are no errors.  The whole backup of this course is only about 19MB.  I've attached a couple screenshots showing those directories.

It's also strange that the backup outputs 412.49 seconds, but only about 25 seconds are elapsing from when I click "Perform Backup" until the error screen appears.  Adjusting my PHP max_execution_time from 30 to 60 seconds doesn't help, and the error still appears after about 25 seconds.

Any ideas what I can do to enable this one course to backup successfully?

Thanks!

David


Viewing all articles
Browse latest Browse all 6520

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>