Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-48179

Backup progress: Can time out when compressing large backup

    XMLWordPrintable

Details

    • MOODLE_27_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MDL-48179-master
    • Hide

      NOTE: It is not feasible to reproduce the actual problem (I can't supply the 16GB backup). These tests only confirm that the zip stage of the backup process is not broken.

      1. In server settings, set 'enabletgzbackup' to off (default).
      2. Go to any course and do a backup using default settings.
      3. Restore the backup to a new course.
      EXPECTED: Backup/restore completes without error.

      4. In server settings, set 'enabletgzbackup' to on
      5. Go to any course and do a backup using default settings.
      6. Restore the backup to a new course.
      EXPECTED: Backup/restore completes without error.

      Show
      NOTE: It is not feasible to reproduce the actual problem (I can't supply the 16GB backup). These tests only confirm that the zip stage of the backup process is not broken. 1. In server settings, set 'enabletgzbackup' to off (default). 2. Go to any course and do a backup using default settings. 3. Restore the backup to a new course. EXPECTED: Backup/restore completes without error. 4. In server settings, set 'enabletgzbackup' to on 5. Go to any course and do a backup using default settings. 6. Restore the backup to a new course. EXPECTED: Backup/restore completes without error.

    Description

      I'm currently investigating failures with a ~16GB backup file. In our system, anything which pauses without displaying progress for more than about 5 minutes will cause a timeout. This also applies to Firefox users regardless of installation details; Firefox has a 5 minute timeout.

      The step backup_zip_contents calls backup_general_helper::get_backup_information_from_mbz which takes over five minutes (with the tgz packer) and does not display progress.

      The underlying function this calls does provide progress information so it should be easy to add progress reporting to this step and avoid the timeout. I hope!

      Attachments

        Activity

          People

            quen Sam Marshall
            quen Sam Marshall
            Tim Hunt Tim Hunt
            Sam Hemelryk Sam Hemelryk
            Adrian Greeve Adrian Greeve
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/Jan/15