-
Improvement
-
Resolution: Deferred
-
Minor
-
None
-
2.2
-
Windows 2008 R2 Apache/PHP, OS X 10.6 MySQL
-
MySQL
-
MOODLE_22_STABLE
-
-
With a default out-of-box or a low php timeout setting and some large 1.x tables, such as log and backup_log, during the 2.x upgrade the ALTER TABLE statements can timeout the script. The installation page then hangs with no hint of progress or status. There isn't always an error, warning, or timeout message when this happens. Reloading the page will repeat the process in most ALTER cases and end up in the same place.
In /lib/db/upgrade.php, many of the add/change field ALTER TABLE operations have no upgrade_set_timeout().
Adding upgrade_set_timeout(60*40) or higher lets the alter statements complete. However this number varies on performance and table size. Maybe a better solution is to have a function checking the size of the working table and estimate a generous timeout value accordingly.
- has a non-specific relationship to
-
MDL-26580 Upgrading a 1.9.10+ site to 2.0.2+ site fails with a "Maximum execution time of 300 seconds exceeded error"
-
- Closed
-