Moodle 2.6 restore never finishes

Moodle 2.6 restore never finishes

by Gerald Grow -
Number of replies: 8

When I attempt to restore a master course into a new installation of Moodle 2.6, it gets to 99+% and goes on for more than an hour. It hangs.

If I close the page then and return to Moodle, I find my course there. But is it complete? Can it be trusted? How would I find out?

This course contains many Quizzes (200+) but it is only 1.8MB. so size alone is not the problem.

The restored course was backed up on Moodle 2.5.4. It has no users.

Has anyone solved this problem of the Moodle 2.6 restore hanging?

Average of ratings: -
In reply to Gerald Grow

Re: Moodle 2.6 restore never finishes

by Kyle Belcher -

I just ran into the exact same problem on my fresh 2.6 install and my backup file is even smaller than yours. My env. is as follows:

Server 2012 R2 (IIS 8)

SQL Express 2012

PHP 5.4 (since there aren't any MS SQL drivers for 5.5 yet)

 

I would get to the point to where I would click the 'perform restore' button and it would chug away for a while until it would finally time out. After the time out, I would go back to the home page and the course would be there. I have a few documents and hyperlinks in the primary module of the course and then also had 7 'topics'. The topics each have a quiz in them. The topics showed up but were titled Topic 1, Topic 2 etc with no quizzes in them. So then I decided to try backing up just the quizzes and restoring them using the 'merge' restore function and VIOLA! Worked like a charm and only took 15 seconds or so.

Not exactly sure what is going on in 2.6+ but I've read several posts now about problems with restoring courses. Hope this helps you out.

In reply to Kyle Belcher

Re: Moodle 2.6 restore never finishes

by Gerald Grow -

Thanks for the suggestion. However, I restore more than three dozen courses, so I can't use a workaround.

I'll have to stay with Moodle 2.5 until this problem gets fixed.

In reply to Gerald Grow

Re: Moodle 2.6 restore never finishes

by Zac Mussatt -

I am suspecting that the issue has to do with how 2.6 imports question banks.  I have noticed that the worst courses to bring in are the ones with large amounts of quizzes and question banks.

Perhaps also it deals in having to change the question context.

Gerald:  As you try to import that course, do you get warnings about changing the context of question banks?

 

In reply to Zac Mussatt

Re: Moodle 2.6 restore never finishes

by Gerald Grow -

Zac: I do not get any warnings.

My course with many quizzes hangs at 99+ %.

If I stop it (after an hour sometimes), I find that the gradebook categories do not get imported, and those are crucial to what we do.

I will need to restore up to 50 courses, and I cannot rebuild the gradebook for each one -- that process is very slow and mechanical.

I have tested this restore on 2.7 and get the same problem.


In reply to Gerald Grow

Re: Moodle 2.6 restore never finishes

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Turn full debugging on and it should point you in the right direction.  As the "proud" owner of a huge system level quiz bank, I have had so many issues with restoring that I am about to rebuild and get rid of my system level bank in favor on course level quiz banks.

I had the same issues with restores - I found a few corrupted questions were the culprit.  Sometimes turning on debugging would actually allow the restore to complete (my theory is that the process of writing out the errors kept the process alive long enough to complete) without further interaction but on a few, I was able to trace the questions that were causing the errors through the debug output, fix them and then was able to get them to restore.

In reply to Gerald Grow

Re: Moodle 2.6 restore never finishes

by Debbie Unterseher -

Was planning to upgrade to 2.6 this summer.  But maybe I shouldn't!! 

In reply to Debbie Unterseher

Re: Moodle 2.6 restore never finishes

by Gerald Grow -

Try 2.6 first to make sure your courses will restore properly.

In reply to Gerald Grow

Re: Moodle 2.6 restore never finishes

by Becky Lane -

We are having the same issue, did you ever find a solution?