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

x2 duplicate doesn't delete temp folder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.1.1
    • Backup
    • WAMP Server, PHP 5.3.8 using FastCGI, MySQL 5.5.15, Wincache opcode accelerator
    • MySQL
    • MOODLE_21_STABLE

      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

            stronk7 Eloy Lafuente (stronk7)
            smithrn Ryan Smith
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.