Maximum execution time of 30 seconds exceeded in CompressionFilter.php

Created on 13 February 2024, 10 months ago
Updated 23 February 2024, 10 months ago

With larger backups eg. with db over 1gb in size, php shows white screen of death

Increasing max_execution_time seems to help here

An example of error is

AH01071: Got error 'PHP message: PHP Fatal error: Maximum execution time of 30 seconds exceeded in httpdocs/web/modules/contrib/backup_migrate/src/Core/Filter/CompressionFilter.php on line 196', referer: https://www.mywebsite.co.uk/admin/config/development/backup_migrate/advanced

My feeling is that:

1. We could increase max execution time in back up and migrate. For me temporarily increasing from 30seconds fixed the problem.
2. We could update the message "It is recommended to not use the "Entire site" backup as it has a tendency of failing on anything but the tiniest of sites. Hopefully this will be fixed in a future release." to provide a some helpful suggestions such as try increasing max_execution time! Also using advanced backup provides option to skip certain tables and streamline the process somewhat.
3. As an alternative, we could even provide an option to backup in batches for larger sites where this is a danger of exceeded max execution time.

Batch api also has away of avoiding max time out. I think migrate UI uses this.

https://stackoverflow.com/questions/5638484/how-can-i-set-the-maximum-ex...
https://stackoverflow.com/questions/3829403/how-to-increase-the-executio...

🐛 Bug report
Status

Needs work

Version

5.0

Component

Code

Created by

🇬🇧United Kingdom 2dareis2do

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024