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

Moodle 3.8.1 IMS Cartridge backup fails

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MDL-67870-311
    • MDL-67870-master
    • Hide
      1. Login as Admin.
      2. Create a Course.
      3. Add a File resource into the Course.
      4. In the Course, click on 'Backup' from the settings menu.'
      5. In the backup page (Initial settings)
        • Enable 'IMS Common Cartridge 1.1.'
          Note: enabling this should lock some of the other settings including 'Include files'
        • Click on 'Jump to final step'
      6. Confirm the backup was successfully completed.
      7. Click on 'Continue'.
      8. Confirm that the backup file exists in the 'User private backup area'
      9. Restore the backup into a new course using default settings.
        • confirm that the backup has been successfully restored.
      10. Go to the restored course.
        • confirm that the course has been properly restored and all activities and resources are present.
      Show
      Login as Admin. Create a Course. Add a File resource into the Course. In the Course, click on 'Backup' from the settings menu.' In the backup page (Initial settings) Enable 'IMS Common Cartridge 1.1.' Note: enabling this should lock some of the other settings including 'Include files' Click on 'Jump to final step' Confirm the backup was successfully completed. Click on 'Continue'. Confirm that the backup file exists in the 'User private backup area' Restore the backup into a new course using default settings. confirm that the backup has been successfully restored. Go to the restored course. confirm that the course has been properly restored and all activities and resources are present.
    • 7
    • 4.0 Navigation blitz 2

    Description

      Moodle 3.8.1 on PHP-FPM

      Postgresql 10.6 DB on separate server

      1. Create a course and add a file resource

      2. Backup a course as IMS Common Cartridge (course settings -> backup -> click IMS Common Cartridge 1.1)

      3. Click Jump to final step

      After a few seconds, backup fails and php-fpm.log shows:

      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "NOTICE: PHP message: PHP Warning: copy(/mnt/moodledata/temp/backup/efaf8007d11640cddaf4a24c77fc207e/files/7b/7b0c9d064cda3b610347dc27c8588981a3c5c014): failed to open stream: No such file or directory in /opt/moodle/backup/cc/cc_lib/cc_utils.php on line 181"
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "NOTICE: PHP message: Default exception handler: Exception - Unable to copy files! Debug: "
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "Error code: generalexceptionmessage"
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "* line 182 of /backup/cc/cc_lib/cc_utils.php: RuntimeException thrown"
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "* line 218 of /backup/cc/cc_lib/cc_utils.php: call to cc_helpers::add_files()"
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "* line 40 of /backup/cc/cc_lib/cc_converter_resource.php: call to cc_helpers::handle_resource_content()"
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "* line 168 of /backup/cc/cc_lib/cc_convert_moodle2.php: call to cc_converter_resource->convert()"
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "* line 121 of /backup/cc/cc_lib/cc_convert_moodle2.php: call to cc_convert_moodle2::process_sequence()"
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "* line 146 of /backup/converter/imscc11/backuplib.php: call to cc_convert_moodle2::convert()"
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "* line 34 of /backup/util/plan/backup_execution_step.class.php: call to imscc11_backup_convert->define_execution()"
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "* line 181 of /backup/util/plan/base_task.class.php: call to backup_execution_step->execute()"
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "* line 178 of /backup/util/plan/base_plan.class.php: call to base_task->execute()"
      [04-Feb-2020 16:06:05] WARNING: [pool moodle] child 1432 said into stderr: "* line 119 of /backup/util/plan/backup_plan.class.php: cal..."
      [04-Feb-2020 16:06:06] WARNING: [pool moodle] child 1432 said into stderr: "NOTICE: PHP message: Potential coding error - existing temptables found when disposing database. Must be dropped!"

       

      I found a work-around at Step 2.

      3) Instead of clicking Jump to final step, click Next

      All the checkboxes down the left side are grey, but checked.  All of the icons down the right side are red x's and lock icons. Scroll to bottom.  Click Next.

      Screen with Filename and Backup settings - can't do anything here ... Click Previous.

      Click (Show type options).  For each line, click All (all checkboxes down left side are accessible and checked).  Scroll to bottom.  Click Next.

      Screen with Filename and Backup settings - all checkboxes on left are green.  Scroll to bottom and click Perform Backup.  

      Screen reports The backup file was successfully created.  Click Continue.

      One oddity:

      Under User private backup area, an .imscc file displays.  This backup is large ... 400+MB.

      Click Manage backup files.  Weirdly, the icon is the blue H5P icon.

      Also, the backup icon is H3P

      Attachments

        Issue Links

          Activity

            People

              Geshoski Mihail Geshoski
              mikedhowell Mike Howell
              Mathew May Mathew May
              Andrew Lyons Andrew Lyons
              Anna Carissa Sadia Anna Carissa Sadia
              Votes:
              3 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Mar/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours, 30 minutes
                  1d 4h 30m