Deleting large courses results in "Internal Server Error"

Deleting large courses results in "Internal Server Error"

by Niels Frederickx -
Number of replies: 2

Does anyone know how to troubleshoot this problem? It occurs whenever a course is too large when I want to delete it. If I delete parts of it manually the complete deletion of the trimmed course will work.

Maybe a PHP setting to wait longer before a deletion job finishes?

Any advice is appreciated!


Average of ratings: -
In reply to Niels Frederickx

Re: Deleting large courses results in "Internal Server Error"

by Colin Fraser -
Picture of Documentation writers Picture of Testers

Hi Neils, sorry, but you should have had a reply before this... the only thing I can think of that might help here is to edit the php.ini file and increase the max_execution_time from 240 to 480. This may or may not have any impact, never tried it myself. Empty the moodlecache first though. 

As a general rule, I do not delete any recent courses. Never know, but this does not mean we have a hoarder mentality. Things happen and in education, what goes around comes around and if you stand still long enough, they will catch up to you, what's old is new again, and any number of platitudes and other justifications...wink What I am doing is to reset courses, stripping out anything other than the materials of the course, then archive it to its year of use. This year, the last archive is 2012, the 2011 archive is to be deleted, Courses that qualify for archiving are courses where the key instructor has left and no-one indicates they will be using the course, or courses that instructors inform me that they are no longer going to use a particular course. As a further safeguard, instructors already have a reset backup of a course they teach in their personal storage, and I imagine that there are some courses that date back to v1.8 or so.  

Every year, I usually archive only about 5 or 6 courses, and we have ongoing backups of course, so the archive is not new. I am not sure how far back out backups go now, some materials were damaged during recent storms, but we should have stored backups on retrievable media going back to when I first started with Moodle, in 2008. 

 

In reply to Niels Frederickx

Re: Deleting large courses results in "Internal Server Error"

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I KNOW I can't seem to say anything else... but there's not much point guessing. Switch on Debugging reproduce the problem and look for messages displayed in the browser and also check your web server's error log. This should give you/us a clue.