Restore hangs up - never completes

Restore hangs up - never completes

by John Schaub -
Number of replies: 7

I am trying to copy a course by taking a backup of the course, uploading that backup to a new course, then restoring it. I am using the latest version of Moodle as of 01-16-2006.

After uploading the zip file, I click on the word "restore" to the right of the file name. I go to a screen that begins: "You are about to start the restore process for:" and then lists my file. This screen has two buttons under the question "Do you want to continue?" Yes / No.

I click on the Yes botton, and the server never responds to me after that. The restore does not take place.

I have tried this several times and I have installed the latest release of Moodle as of today. Stil lI get this very same situation every time.

Can anyone suggest something I could try.

Thank you for your help.

John Schaub

In reply to John Schaub

Re: Restore hangs up - never completes

by Brian Koontz -
John, what's the file size of your backup file? 
In reply to Brian Koontz

Re: Restore hangs up - never completes

by John Schaub -
The file is 7.3KB.
In reply to John Schaub

Re: Restore hangs up - never completes

by Brian Koontz -
So it's not a file size issue.

Things I would be doing if it was my problem:

Have you checked your PHP logfile?  Errors should be logged there.

I'd try to narrow down the possibilities by copying the .zip file to my desktop, and verifying it was a valid .zip file (just open it in WinZip or whatever you happen to use for .zip files).  Then I would attempt to restore from that copy.  Also, check your data directory and make sure the .zip file exists.

Are directory permissions/file permissions set correctly on the .zip file?

Given the number of people using this release (including myself) who are not experiencing problems, I would suspect some sort of environment issue not related to Moodle...
In reply to Brian Koontz

Re: Restore hangs up - never completes

by Miro Babinsky -

Please help. I am facing the same problem in 1.5.3+ (2005060230) (Everything works fine in 152)
I checked the zip file... Is OK.
It is browser independent problem (restore is not working from other computers, with different zip files), but works with the same zip on moodle 152. Possible cause may be (I am just guessing) that 153 is a fresh installation on other server and some rights are not properly set. What sould I check?


In reply to Miro Babinsky

Re: Restore hangs up - never completes

by Brian Koontz -
The zip files (and the directories they are in) must be readable by the user under which the web server is running.  I have a Unix box, the server runs as "nobody," so the files (and directories) must be at least readable/writeable by nobody.  Check to make sure the zip files are being stored with read rights.
In reply to Brian Koontz

Re: Restore hangs up - never completes

by Miro Babinsky -

My  zip is somewhere like /moodle/moodledata/3/backupdata/ and has read, write and run rights by all users (owner included). All mention directories have the same rights just the top most moodle has write rights only for owner. This site is hosted and I do not know under which account is the server running.. 

Restore stops working without any notice on page like this..../moodle/backup/restore.php?id=3&file=3/backupdata/z_loha-prointegrasku-20060125-1724.zip

In reply to Miro Babinsky

Re: Restore hangs up - never completes

by Miro Babinsky -

The problem is not solved. Is there some limitation on restore between versions 1.5 and 1.4? I need to restore at least some parts of the course - at least users... Is there any security restriction? Is only admin allowed to backup and restore? Where can I find more info?

Thank for any help.