Moodle
  1. Moodle
  2. MDL-29704

Can't restore a course backup (Moodle 2.1.1+ 20111007)

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
      None
    • Environment:
      Linux 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64 GNU/Linux
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      We can't restore from a backup course file into a new course. Here is the stack from the debugger:

      Incorrect pool file content da39a3ee5e6b4b0d3255bfef95601890afd80709.

      Més informació d'aquest error
      Stack trace:

      line 1062 of /lib/filestorage/file_storage.php: file_pool_content_exception thrown
      line 810 of /lib/filestorage/file_storage.php: call to file_storage->add_file_to_pool()
      line 720 of /backup/util/dbops/restore_dbops.class.php: call to file_storage->create_file_from_pathname()
      line 222 of /backup/util/plan/restore_structure_step.class.php: call to restore_dbops::send_files_to_pool()
      line 1197 of /backup/moodle2/restore_stepslib.php: call to restore_structure_step->add_related_files()
      line 359 of /backup/util/plan/restore_structure_step.class.php: call to restore_course_structure_step->after_execute()
      line 108 of /backup/util/plan/restore_structure_step.class.php: call to restore_structure_step->launch_after_execute_methods()
      line 153 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()
      line 148 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
      line 157 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
      line 302 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
      line 144 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
      line 45 of /backup/restore.php: call to restore_ui->execute()

      Output buffer: Notice: Uninitialized string offset: 0 in /var/www/mtest/backup/util/helper/backup_file_manager.class.php on line 54 Notice: Uninitialized string offset: 1 in /var/www/mtest/backup/util/helper/backup_file_manager.class.php on line 54

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            Jonathan Newman added a comment -

            +1 We are having the same issue and are facing the daunting task of rebuilding courses on a fresh installation.

            In the backup that is created you may notice the file.xml does not have the hash for file names.

            Show
            Jonathan Newman added a comment - +1 We are having the same issue and are facing the daunting task of rebuilding courses on a fresh installation. In the backup that is created you may notice the file.xml does not have the hash for file names.
            Hide
            stefan essl-pokorny added a comment -

            Hello,
            we also have this problem: after i've found this thread, i now also know the module/plugin which causes this problem in our case:
            "Anonymizable Forum" is in our case the reason, because there is no working class 'backup_

            {module}

            _activity_task' ....( maybe there is one but this module has a yui 2 or so issue, so it doesn't work)...
            So what is the solution for now?

            • we can remove the "faulty" "Anonymizable Forum"...then we have backups again...
            • maybe it ist enough to write a dummy class backup_anonforum_activity_task ...? or maybe better
              setting FEATURE_BACKUP_MOODLE2 FALSE will do?
              ...before I start trying, maybe some else did and found for this case an easy solution?
            • just deactivating seems not to work as Eloy Lafuente (stronk7) said in: MDL-34930
              "Note: the ContentHash value is empty even if a faulty module is not being used in course"

            best regards
            stefan e.-p.

            Show
            stefan essl-pokorny added a comment - Hello, we also have this problem: after i've found this thread, i now also know the module/plugin which causes this problem in our case: "Anonymizable Forum" is in our case the reason, because there is no working class 'backup_ {module} _activity_task' ....( maybe there is one but this module has a yui 2 or so issue, so it doesn't work)... So what is the solution for now? we can remove the "faulty" "Anonymizable Forum"...then we have backups again... maybe it ist enough to write a dummy class backup_anonforum_activity_task ...? or maybe better setting FEATURE_BACKUP_MOODLE2 FALSE will do? ...before I start trying, maybe some else did and found for this case an easy solution? just deactivating seems not to work as Eloy Lafuente (stronk7) said in: MDL-34930 "Note: the ContentHash value is empty even if a faulty module is not being used in course" best regards stefan e.-p.
            Hide
            Eloy Lafuente (stronk7) added a comment -

            This issue was assigned to me automatically, however I will not be able to work on this issue in the immediate future. In order to create a truer sense of the state of this issue and to allow other developers to have chance to become involved, I am removing myself as the assignee of this issue.

            For more information, see http://docs.moodle.org/dev/Changes_to_issue_assignment

            Show
            Eloy Lafuente (stronk7) added a comment - This issue was assigned to me automatically, however I will not be able to work on this issue in the immediate future. In order to create a truer sense of the state of this issue and to allow other developers to have chance to become involved, I am removing myself as the assignee of this issue. For more information, see http://docs.moodle.org/dev/Changes_to_issue_assignment

              People

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

                Dates

                • Created:
                  Updated: