Restore 3.1 to new installation 3.9

Restore 3.1 to new installation 3.9

by Alexander Pons -
Number of replies: 2

I was unable to resolve the upgrade issues I was having, so I am trying a new approach. I performed a new and refresh install of Moodle 3.9. Now, I have a backup from my previous version of 3.1.

I restored mysql database and copied the directories for my moodledata backup to the new /var/moodledata installation

But when I run moodle it goes to a current release information page where it indicate 

moodle   version 3.5 is required and you are running 3.1.7+ (20170720) and in status in red it says check

Can anyone provide me with instruction on how to proceed?


Many thanks


 

Average of ratings: -
In reply to Alexander Pons

Re: Restore 3.1 to new installation 3.9

by Ken Task -
Picture of Particularly helpful Moodlers

Can't upgrade from 3.1 -> 3.9 or 3.10 ... site must be 3.5.highest prior to next hop to 3.9.

Hopefully, you did a site backup - 3.1  code and the database for that version (moodledata/fildir) didn't change.   Restore your 3.1 and plan on upgrading to 3.5 as first hop .... then to 3.9.x.

After you get the 3.1 back up and running do an environment check of site ... see what other issues there might be in upgrading - PHP version / MySQL version might come into play.

See: http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases

Now path of least resistence in getting to 3.9 might be to backup all your courses.   Install a fresh 3.9.   Restore those backups.

That probably best done with a test system first cause you could have other catch  22's with addons, etc.

'SoS', Ken

In reply to Alexander Pons

Re: Restore 3.1 to new installation 3.9

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

The history of the case is generally helpful for the helpers. In this case:
- https://moodle.org/mod/forum/discuss.php?d=415000
- https://moodle.org/mod/forum/discuss.php?d=415104

As Ken has already pointed out, a straight upgrade from 3.1 to 3.9 is not supported. Also note the differences in the system software requirements, they also have restrictions on the highest supported version. See the table mentioned, http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases, for a summary.