Backup fails (automatic/manual)

Backup fails (automatic/manual)

by Christian Stehle -
Number of replies: 1

Hello,

it seems that our automatic backup process (also if using the cli backup.php for a specific course) is not saving big courses. We have failed backups in the temp/backup dir which fills up our server. (Moodle 2.8)

The backup process fails with "Mysql Server has gone away".

All php.ini settings seem ok:

max_execution_time = 600
mysql.connect_timeout = 600
max_input_time = 600
memory_limit = 256M
mysqli.reconnect = On

in Moodle-Config: Extra PHP memory limit 2048M

I don't think it's a timeout problem, a backup with 8GB Data fails after 7 Min, a course with 2GB after 2 Min.

We're hosting the database on a dedicated server with HAproxy, the timeouts are also long enough.

Maybe I did miss a setting?

Any help would be great!

Christian



Average of ratings: -
In reply to Christian Stehle

Re: Backup fails (automatic/manual)

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

What version of Moodle?  Have you tried the new backup format?  That sometimes makes it easier for larger courses to backup.