Mahara 19.10 upgrade fails due to set_time_limit 30 seconds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
When upgrading to 19.10.x (or higher), the hard-coded set_time_limit(30) in lib/db/upgrade.php is too short for one of the steps if you have a fair bit of data to get through:
[DBG] a4 (lib/db/
PHP Fatal error: Maximum execution time of 30 seconds exceeded in /path/to/
(We have database size 2.5GB, disk usage 351.4GB.)
The only way I could get this to complete was to either run cli upgrade.php repeatedly, or patch upgrade.php to set_time_
This part of the upgrade process should probably be put into some kind of batch counted loop to fit into 30 second chunks.
Changed in mahara: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
A bit more information is available at https:/ /mahara. org/interaction /forum/ topic.php? id=6295& offset= 0#post34720