Backup error within a course (courseid = 1)

Re: Backup error within a course (courseid = 1)

by Adrian Perez Rodriguez -
Number of replies: 0

Hello all

I've now found our solution for our moodle environment. The problem is/was, that the mdl_logstore_standard_log table is too huge (in our case ~10GB) and then the backup.php scripts exthaustes the PHP memory limit.

So we have done this two steps:

  1. Set loglifetime to an other value (1000days in our case), https://<your-fqdn>/admin/settings.php?section=logsettingstandard. So the standard_log table doesn't increases undless. 
  2. Set extramemorylimit to an higher value (2048MB in our case), https://<your-fqdn>/admin/settings.php?section=performance. This was necessary in due of the huge mdl_logstore_standard_log table.

I think, when we don't restrict the loglifetime, the extramemorylimit must be increased time by time. At the moment our moodle plattform is only 2.5years old and logging. We will see, what happen in future.

Thanks all who helped us in our behaviour!

Kind Regards
Adrian

PS: The error was only displayed when the backup process was done in the UX of moodle. The error was only logged when the backup took place in the UX. I've never found these errors logged by the automatic or manual backup in the CLI.

Attachment backup_error_phplimit.PNG
Average of ratings: Useful (1)