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

Backup progress: Can time out when compressing large backup

    XMLWordPrintable

    Details

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-48179-master

      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

            Assignee:
            quen Sam Marshall
            Reporter:
            quen Sam Marshall
            Peer reviewer:
            Tim Hunt
            Integrator:
            Sam Hemelryk
            Tester:
            Adrian Greeve
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Jan/15