Moodle 4.1 Upgrade Timeout

Moodle 4.1 Upgrade Timeout

Ahmed Al Kahky -
回帖数: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?

回复Ahmed Al Kahky

Re: Moodle 4.1 Upgrade Timeout

Ken Task -
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


回复Ahmed Al Kahky

Re: Moodle 4.1 Upgrade Timeout

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
回复Visvanath Ratnaweera

Re: Moodle 4.1 Upgrade Timeout

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