Scheduled course backups failing

Scheduled course backups failing

by Ravishankar Somasundaram -
Number of replies: 2
I have scheduled course backups in my site, whreas when i view the logs from reports

it says



Last execution log

Course Time taken Status Next
Sony Vanilla LMS 15 May, 02:44 - 31 Dec, 16:00 Unfinished 14 May, 05:30
Course Fullname 101 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
pdp1010 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
E-Commerce001 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Revolutions in Telecommunications 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Web Technology 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Web Technology 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
.NET Cource 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Testing Coursr 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Testing Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Course Fullname 101 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Testing Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Testing Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
SAP Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
SAP Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
SAP Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
SAP Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
SAP Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
SAP Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
SAP Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
SAP Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
SAP Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
SAP Course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Cyber shot 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Automation Testing course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Automation QTP 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
OPEN SOURCE tool 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Curso 1 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Brazil 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Prueba de Curso con imagenes 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Novo curso 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Java1 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
curso de portuguese 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Selenium Tool Training 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Selenium Tool Training 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Español 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Brand new course 101 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
Testtest course 31 Dec, 16:00 - 31 Dec, 16:00 Error 14 May, 05:30
but if backedup manually everything is fine.

and i forgot to say this is a fresh installation of moodle v 1.9.04 if am right.
Average of ratings: -
In reply to Ravishankar Somasundaram

Re: Scheduled course backups failing

by Ravishankar Somasundaram -
Found the problem ,


writing here for people who face the same symptoms

1st thing i checked was the crontab, in my case it wasnt running properly for some reason so corrected it and

2ndly increase the max_execution_time in php.ini to 120 seconds (default is 30 secs)

as the name indicates this is a setting in php.ini to execute a script , as back up may take long time if data is huge increase it.
In reply to Ravishankar Somasundaram

Re: Scheduled course backups failing

by Ravishankar Somasundaram -
Besides the previous checks, Please ensure that no external zip,unzip applications are forced to work with the moodle installation , in case if it is ensure that they are working fine.

You can check it by going to Site Administration -> Server -> System path , Whereas check for a tick mark besides the text box for Path to zip and Path to unzip (Before the Text Default : Empty )

If theres a cross mark instead of a tick mark then you can find that the external zip and unzip application that you used is not working with you application good.

If you are on linux (I use debian) do a apt-get install zip and apt-get install unzip to install them if its not there previously.