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

Incomplete corrupt backups; Error opening/restoring backup file: Header does not have POSIX ustar magic string

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
    • Testing Instructions:
      Hide

      Unit test should be enough 'till we'll decide how to deal with the replication steps - just breaking (>  $backupfilename) a previous working backup file?

      The goal of the "fix" should be to allow a new different UX path:

      1. During automated backup, the broken file backup will be skipped and eventually rotated when required
      2. During a backup, the broken file will be reported
      Show
      Unit test should be enough 'till we'll decide how to deal with the replication steps - just breaking ( >  $backupfilename ) a previous working backup file? The goal of the "fix" should be to allow a new different UX path: During automated backup, the broken file backup will be skipped and eventually rotated when required During a backup, the broken file will be reported
    • Affected Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      m39_MDL-52516_Packer_Exception_Proper_Handling

      Description

      There is an error i faced while backuping a course.
      Please tell me if i setup something wrong.
      This error fires on backup every course i have in moodle.

      Debug info: Header does not have POSIX ustar magic string

      Error code: errorprocessingarchive
      Stack trace:

      line 290 of /lib/filestorage/tgz_extractor.php: moodle_exception thrown
      line 223 of /lib/filestorage/tgz_extractor.php: call to tgz_extractor->process_header()
      line 142 of /lib/filestorage/tgz_extractor.php: call to tgz_extractor->extract_or_list()
      line 645 of /lib/filestorage/tgz_packer.php: call to tgz_extractor->extract()
      line 104 of /lib/filestorage/mbz_packer.php: call to tgz_packer->extract_to_pathname()
      line 269 of /backup/util/helper/backup_general_helper.class.php: call to mbz_packer->extract_to_pathname()
      line 1796 of /backup/moodle2/backup_stepslib.php: call to backup_general_helper::get_backup_information_from_mbz()
      line 34 of /backup/util/plan/backup_execution_step.class.php: call to backup_zip_contents->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 320 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()
      

        Attachments

          Activity

            People

            Assignee:
            matteo Matteo Scaramuccia
            Reporter:
            Index Alexander Mamonov
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            3 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Created:
              Updated: