Course restore large zip files - possible problem

Course restore large zip files - possible problem

by HJWUCGA INC. -
Number of replies: 7
Hello,


A few questions.

  1. Is there a way or tool that we can run via command line to test the integrity of a course zip file before we actually restore it? If not, maybe I'll request it as an enhancement for a future release.
  2. What happens when a course that is backed up has 3rd-party plugins and restored to a Moodle environment that does not contain these plugins? Would it give us an restore failed message or just restore it without the plugins?
  3. Has anyone restored a large zip file .. > 45 MB and gotten a gateway timeout error because it too so long for the server to respond?
Moodle 1.9.2
Apache 2
MySQL 5.0.26
Suse Linux Enterprise Sever 10
PHP 5.1.2

Thanks


Average of ratings: -
In reply to HJWUCGA INC.

Re: Course restore large zip files - possible problem

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
In answer to question 3: yes I have on a (basic) siteground Moodle - in the end I unzipped it offline, split it up into chunks and uploaded it bit by bit via ftp.
In reply to Mary Cooch

Re: Course restore large zip files - possible problem

by HJWUCGA INC. -
Hi Mary,

Could you give me specific details on the tools and steps you use to break them off and "combined/appended" them.

i suspect you can use the upload feature in Moodle to do the file transfer and not necessarily need FTP I think.

thanks
In reply to HJWUCGA INC.

Re: Course restore large zip files - possible problem

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
I don't have any bright ideas, sorry. Basically the big courses I've had are full of stuff like multimedia files - sometimes bigger than the file upload limit within Moodle, hence the need to ftp.( Not my preference but they weren't my courses.) I took out the course files and uploaded them separately a few at a time. I can't remember if I then restored the rest of the course successfully; I suspect I might even have just rebuilt it on the page manually sad
In reply to HJWUCGA INC.

Re: Course restore large zip files - possible problem

by D. S. -

I am having a problem similar to your number 3.  My backup exceeds the upload limit.  I have uploaded via ftp to the site files directory but I see the following errors when I navigate to there in Moodle.

<>Warning: filetype() [function.filetype]: Lstat failed for /var/www/moodle/data/1//temp/chembackup.zip in /var/www/moodle/web/lib/moodlelib.php on line 4997

Warning: filesize() [function.filesize]: stat failed for /var/www/moodle/data/1//temp/chembackup.zip in /var/www/moodle/web/lib/moodlelib.php on line 5000

When I try to restore it says it cannot find the file chembackup.zip.


File not exists (/var/www/moodle/data/1/temp/chembackup.zip)

(Moodle's bad grammar not mine)

Finally, as a warning to anybody.  Do not restore a regular course into your Frontpage (delete and restore option).  You will not like the result. I did this by mistake and was unable to get my Frontpage working properly again.

Do I need to do something else with this file chembackup.zip?  I already changed ownership to the www user.

Any help would be appreciated.

Doug

In reply to D. S.

Re: Course restore large zip files - possible problem

by Richard Enison -
DS,

I haven't fully researched this problem yet, but there is something in your post that stands out like a sore mouse button. The pathname in the ungrammatical Moodle error differs from that in the PHP warnings in that the latter have two slashes in a row between 1 and temp. I don't know if that has anything to do with the problem, but I can't help wondering how that extra slash got there in the first place.

Just thinking out loud.

RLE
In reply to HJWUCGA INC.

Re: Course restore large zip files - possible problem

by HJWUCGA INC. -
Hello folks,

I found the cause of our timeout errors. It's our security appliance from Novell called iChain. When we removed the site behind iChain, we don't get the timeout errors any more. There is a patch that mention getway timeouts and we have just installed it. I'll then do the backup / restore that is causing us problems and see if the patch solves our problems.

Another possible cause is that an instructor has probably imported about 60,000+ quizzes and I know it's not humanly possible to create that many in such a short time. I know that moodle has problems with quizzes too =)

I'll respond with the results of our test.
In reply to HJWUCGA INC.

Re: Course restore large zip files - possible problem

by Mark Grace -

I just restored a large moole course and it replaced some of the slashes with

$@SLASH@$ in stead of a /   

Oh well I'll try it again