Schema settings page is blank on backup

Schema settings page is blank on backup

by Donna Hrynkiw -
Number of replies: 1

Moodle v2.2.1

I'm attempting to make a manual backup of a course containing many many URL links. The backup fails at the Schema settings page without an error message; the page is just blank.

At a rough guess, we're talking about 450+ URL links in the course. I'm guessing that we're running up against some sort of timeout or link/resource list maximum. Just to be clear, these are URL links to off-course, off-server resources which are not present within the course.

(A little later.) Ah yes, it's a timeout error. With debugging set to Minimal, the php.log is telling me: PHP Fatal error:  Maximum execution time of 30 seconds exceeded in (path trimmed)/moodle/lib/pear/HTML/QuickForm/static.php on line 164

A restore of the automated backup of this same course fails with "error/tmp_bcakup_directory_not_found". When I attempt to unpack the backup archive, I'm told that the zip file is corrupted. I'm suspecting this is part of the same issue.

I need some advice on what settings need to be adjusted to a) allow the automated backup process to run successfully, and b) will allow me to create an on-demand manual backup.

ETA: Found this on the Tracker: http://tracker.moodle.org/browse/MDL-27648


Hrynkiw
Kwantlen Polytechnic University

Average of ratings: -
In reply to Donna Hrynkiw

Re: Schema settings page is blank on backup

by Ken Task -
Picture of Particularly helpful Moodlers

Check php.ini file for max_execution_time and increase the value from '30' to something higher - say '90.  Restart apache.  Then try it again.

If it fails again with same error, increase to '120'.  Restart apache.  Then try it again.

Version 2 of Moodle is more resource intensive.  While you are at php.ini and tweaking consider increasing the following:

max_file_uploads
max_execution_time
max_input_time
max_input_vars
memory_limit

'spirit of sharing', Ken