unable to upgrade 3.9.7+ to 3.10.4

unable to upgrade 3.9.7+ to 3.10.4

by James Puppy -
Number of replies: 3

I tried to upgrade my Moodle site from 3.9.7+ to 3.10.4 / 3.10.4+.

I don't use git, I did it manually. I have upgraded this site many times from version 3.5 to 3.9.7 without a problem. Always manually.

However, now the procedure stops here:

I tried both with 3.10.4 and 3.10.4+.

Moodle upgrade error

My VPS specs:


Average of ratings: -
In reply to James Puppy

Re: unable to upgrade 3.9.7+ to 3.10.4

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I would enable Debugging in config.php and try again. I'm hoping that the problem causing this will be displayed.
In reply to James Puppy

Re: unable to upgrade 3.9.7+ to 3.10.4

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Maybe the PHP setting max_execution_time needs increasing to allow the upgrade to complete. If this is low, for example 60 (1 minute), then try changing it to 300 (5 minutes).

If you change max_execution_time you normally need to restart the service that runs PHP. This service might be called something like httpd, php-fpm or apache2 depending on your server, for example on my CentOS 8 server it's systemctl restart php-fpm to apply changes in php.ini.

Alternatively you can try performing the upgrade using the command line as max_execution_time doesn't apply. On my system this is done with:

$ cd /var/www/moodle
$ sudo -u apache php admin/cli/upgrade.php
Average of ratings: Useful (1)
In reply to Leon Stringer

Re: unable to upgrade 3.9.7+ to 3.10.4

by James Puppy -
max_execution_time was 360. I have changed to 480. but I don't think it has to do with that.

My version is 3.9.7 (build 20210511). However, I 've just managed to upgrade to 3.9.7 (build 20210520) without problems. But when I try to upgrade from 3.9.7 (build 20210520) to 3.10.4, it stops again.
So the problem is from 3.9 to 3.10
On the same server I had installed a second moodle site 3.10.4(build 20210511), I 've just upgraded this site without problems too (build 20210527).

I will make a few more attempts and I will install php 7.3 in order to upgrade to 3.11. I hope I have no problems