Course Backup: Error 500

Course Backup: Error 500

by Cesar Harata -
Number of replies: 2

Hi there !

Please, i try to course backup in backup/backup.php, but happens this error:

<moodle address> is currently unable to handle this request.

HTTP ERROR 500

My moodle is 3.4. Please help me..

Regards,
Average of ratings: -
In reply to Cesar Harata

Re: Course Backup: Error 500

by Ken Task -
Picture of Particularly helpful Moodlers

Suggest checking server error logs for entries just before the 500's in the log.

And, try turning on debugging and then try backing up the same course.

Unfortunately, error 500's don't have one specific reason.  Not only that, but depending upon how one is hosted, protective services on your server could be the reason for the error.   Those protective services (like mod_secure) report back to apache a 'false error' rather than disclose the real reason.

It could be you just have under-powered hosting ... those really cheapo accounts on some systems.

Got linux?  Have ssh access into the moodle?

If so, one can backup a course via a backup.php file in moodlecode/admin/cli/

While that does take apache out of the loop, those hidden protective services might be disclosed.

If you could provide a little more on setup ... operating system, where hosted and how hosted, etc.

'spirit of sharing', Ken