Moodle
  1. Moodle
  2. MDL-29357

x2 duplicate doesn't delete temp folder

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
    • Environment:
      WAMP Server, PHP 5.3.8 using FastCGI, MySQL 5.5.15, Wincache opcode accelerator
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_21_STABLE
    • Rank:
      19020

      Description

      When I try to duplicate (x2) an activity/resource, I get the following error message:

      error/cannot_empty_backup_temp_dir

      The duplication process does work. When I go back to the course I see the duplicated item.

      I've checked folder permissions, and it should be able to delete the temp folder.

      The Apache error log contains this:

      [Fri Sep 09 16:20:37 2011] [warn] [client x.x.x.x] mod_fcgid: stderr: Default exception handler: error/problem_deleting_old_backup_temp_dirs Debug: , referer: /moodle/course/mod.php?duplicate=102490&sesskey=dGZJhZvhEk&sr=0
      [Fri Sep 09 16:20:37 2011] [warn] [client x.x.x.x] mod_fcgid: stderr: * line 151 of \\backup\\util\\helper\\backup_helper.class.php: backup_helper_exception thrown, referer: /moodle/course/mod.php?duplicate=102490&sesskey=dGZJhZvhEk&sr=0
      [Fri Sep 09 16:20:37 2011] [warn] [client x.x.x.x] mod_fcgid: stderr: * line 38 of \\backup\\moodle2\\backup_stepslib.php: call to backup_helper::delete_old_backup_dirs(), referer: /moodle/course/mod.php?duplicate=102490&sesskey=dGZJhZvhEk&sr=0
      [Fri Sep 09 16:20:37 2011] [warn] [client x.x.x.x] mod_fcgid: stderr: * line 34 of \\backup\\util\\plan\\backup_execution_step.class.php: call to create_and_clean_temp_stuff->define_execution(), referer: /moodle/course/mod.php?duplicate=102490&sesskey=dGZJhZvhEk&sr=0
      [Fri Sep 09 16:20:37 2011] [warn] [client x.x.x.x] mod_fcgid: stderr: * line 153 of \\backup\\util\\plan\\base_task.class.php: call to backup_execution_step->execute(), referer: /moodle/course/mod.php?duplicate=102490&sesskey=dGZJhZvhEk&sr=0
      [Fri Sep 09 16:20:37 2011] [warn] [client x.x.x.x] mod_fcgid: stderr: * line 148 of \\backup\\util\\plan\\base_plan.class.php: call to base_task->execute(), referer: /moodle/course/mod.php?duplicate=102490&sesskey=dGZJhZvhEk&sr=0
      [Fri Sep 09 16:20:37 2011] [warn] [client x.x.x.x] mod_fcgid: stderr: * line 105 of \\backup\\util\\plan\\backup_plan.class.php: call to base_plan->execute(), referer: /moodle/course/mod.php?duplicate=102490&sesskey=dGZJhZvhEk&sr=0
      [Fri Sep 09 16:20:37 2011] [warn] [client x.x.x.x] mod_fcgid: stderr: * line 296 of \\backup\\controller\\backup_controller.class.php: call to backup_plan->execute(), referer: /moodle/course/mod.php?duplicate=102490&sesskey=dGZJhZvhEk&sr=0
      [Fri Sep 09 16:20:37 2011] [warn] [client x.x.x.x] mod_fcgid: stderr: * line 65 of \\course\\modduplicate.php: call to backup_controller->execute_plan(), referer: /moodle/course/mod.php?duplicate=102490&sesskey=dGZJhZvhEk&sr=0
      

      Replication steps:

      1. Create a resource
      2. Click the x2 icon
      3. error/cannot_empty_backup_temp_dir appears on the screen

      if you check /moodledata/temp/backup you'll see that it could not delete the temporary folder

        Issue Links

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: