Moodle

Cannot restore course that contains groups

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9.2
  • Component/s: Backup, Groups
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

I created a backup of a course, originally created in v. 1.8.4 and then ported to 1.9. When I attempted to restore the course, it stalled on the groups/grouping step. When I removed the groups from the course and created a new backup, it reinstalled (in a new course) without any problem.

  1. screenshot-1.jpg
    50 kB
    27/Jun/08 12:44 AM

Activity

Hide
Wen Hao Chuang added a comment -

Hmm.. I can't reproduce this issue on the latest 1.9.1+ code (build as of 20080611). I tried to backup the course on 1.5.4+ then restore on 1.9.1+, but the GROUPS works. Attached is the backup course file that I used. Maybe it's the 1.8.4 backup code that had some problems?

Show
Wen Hao Chuang added a comment - Hmm.. I can't reproduce this issue on the latest 1.9.1+ code (build as of 20080611). I tried to backup the course on 1.5.4+ then restore on 1.9.1+, but the GROUPS works. Attached is the backup course file that I used. Maybe it's the 1.8.4 backup code that had some problems?
Hide
Helen Foster added a comment -

You may be right Wen, as I've reproduced this problem with a 1.8 course backup which failed to restore to the latest 1.9.1+. (Backup file sent to Petr.)

Show
Helen Foster added a comment - You may be right Wen, as I've reproduced this problem with a 1.8 course backup which failed to restore to the latest 1.9.1+. (Backup file sent to Petr.)
Hide
Helen Foster added a comment -

The 1.8 course backup mentioned in my previous comment came from a Moodle version 2007021520 site.

Here is another report of this issue: http://moodle.org/mod/forum/discuss.php?d=99882

Show
Helen Foster added a comment - The 1.8 course backup mentioned in my previous comment came from a Moodle version 2007021520 site. Here is another report of this issue: http://moodle.org/mod/forum/discuss.php?d=99882
Hide
Helen Foster added a comment -
Show
Helen Foster added a comment - Yet another report: http://moodle.org/mod/forum/discuss.php?d=100176
Hide
Kimball Findlay added a comment -

Cannot restore course backed up in 1.8 to 1.9, have been successful with 15 courses but this one willnot restore.

Show
Kimball Findlay added a comment - Cannot restore course backed up in 1.8 to 1.9, have been successful with 15 courses but this one willnot restore.
Hide
Helen Foster added a comment -

Just to note that a 1.8.4 course backup containing groups, from a Moodle version 2007021540 site, restored successfully!

Show
Helen Foster added a comment - Just to note that a 1.8.4 course backup containing groups, from a Moodle version 2007021540 site, restored successfully!
Hide
Petr Škoda (skodak) added a comment -

hmm, the problem is that there is a group membership of user that does not exist in the backup file

Show
Petr Škoda (skodak) added a comment - hmm, the problem is that there is a group membership of user that does not exist in the backup file
Hide
Petr Škoda (skodak) added a comment -

should be fixed in cvs,
we do need the cleanup scripts for group membership table - I hope we can get to that at least in 2.0

thanks for the report, please reopen if needed

Show
Petr Škoda (skodak) added a comment - should be fixed in cvs, we do need the cleanup scripts for group membership table - I hope we can get to that at least in 2.0 thanks for the report, please reopen if needed
Hide
Helen Foster added a comment -

1.8 course backup from Moodle version 2007021520 site now restores fine.

Thomas, thanks for reporting this issue and Petr, thanks for fixing it

Show
Helen Foster added a comment - 1.8 course backup from Moodle version 2007021520 site now restores fine. Thomas, thanks for reporting this issue and Petr, thanks for fixing it
Hide
Konrad Lorinczi added a comment -

Unfortunately, it seems, that the bug was not fixed in v1.9.x branch.
I imported a course backup from Moodle v1.9.9 to Moodle v1.9.13 and the bug still appears:

Could not restore groups!

This bug should be reopened...

Show
Konrad Lorinczi added a comment - Unfortunately, it seems, that the bug was not fixed in v1.9.x branch. I imported a course backup from Moodle v1.9.9 to Moodle v1.9.13 and the bug still appears: Could not restore groups! This bug should be reopened...

Dates

  • Created:
    Updated:
    Resolved: