Moodle 4.1 Upgrade Timeout

Moodle 4.1 Upgrade Timeout

by Ahmed Al Kahky -
Number of replies: 3

Hello All,

I am trying to upgrade Moodle 3.10.11 to Moodle 4.1, I put the system in maintenance mode and unzipped the files in the designated directory then copied the old config.php to the Moodle 4.1 and tried to access the UI to start the upgrade process, the system takes a couple of minutes then a message appears indicating that "stream timeout", I tried to visit the same page from the command line and the error appears there is "504 Gateway Timeout".


Have you faced any similar issues during Moodle upgrade and how did you solve it?

Average of ratings: -
In reply to Ahmed Al Kahky

Re: Moodle 4.1 Upgrade Timeout

by Ken Task -
Picture of Particularly helpful Moodlers

That error suggest you have something in front of the moodle server/code.  mod_security/cloudflare?   Something ...

If you have ssh access to your server you can upgrade via command line with the scripts in code/admin/cli/.   Advantage is that it's just php and DB talking ... web service and whatever is in front is taken out of the loop.

'SoS', Ken


In reply to Ahmed Al Kahky

Re: Moodle 4.1 Upgrade Timeout

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Did you follow https://docs.moodle.org/401/en/Upgrading to the dot?
In reply to Visvanath Ratnaweera

Re: Moodle 4.1 Upgrade Timeout

by Ahmed Al Kahky -
yes, I followed the upgrade steps yet using the GUI upgrade always times out while it was completed successfully using the command line upgrade, thanks a lot Ken and Visvanath
Average of ratings: Useful (1)