Quantcast
Viewing all articles
Browse latest Browse all 2052

Cannot Upgrade Moodle (Database) to 2.5

Hi guys, I could really use your help on this one! (Sorry it's a long one)

I've developed a Moodle site using the Moodle stack 2.3.3-0. I'd now like to update the Moodle version and migrate the site to the new 2.5-1 version. I've been through the migration process many times in the past, so I've created the following backup files:

  • moodledata
  • backup.sql
  • (and I have the correct password salt for config.php)

Now the upgrade process I've been following is:

  1. Stop current servers
  2. Uninstall current installation version (e.g. 2.3.3-0)
  3. Install new version (2.5-1)
  4. Replace new moodledata with backup moodledata folder
  5. Restore the database using backup.sql
  6. Restore the correct password salt in the new config.php file
  7. Restart servers

With that done, I then access Moodle via the address "localhost/moodle". The first page I land at prompts me to update the Moodle database from 2.x to 2.5. I follow the upgrade prompts until I reach the "Plugins check" page which shows all the plugins to be upgraded. At the bottom of the page I select "Upgrade Moodle database now". The plugins begin updating, but they reach an error which reads:

qtype_match
Table "question_match" already exists
More information about this error
Debug info: can not rename table 
Error code: ddltablealreadyexists
Stack trace:
  • line 505 of \lib\ddl\database_manager.php: ddl_exception thrown
  • line 53 of \question\type\match\db\upgrade.php: call to database_manager->rename_table()
  • line 501 of \lib\upgradelib.php: call to xmldb_qtype_match_upgrade()
  • line 1586 of \lib\upgradelib.php: call to upgrade_plugins()
  • line 386 of \admin\index.php: call to upgrade_noncore()

My only option is "Continue", which lands me at the front page of my Moodle site. If I attempt to login (with the admin account), it sends me back to the "Plugins check" page and the erroneous loop begins again.

Instead of going straight to 2.5-1, I've attempted to upgrade from 2.3.3-0 to 2.4.3-0 and it was completely successful. I even created a database backup file with 2.4.3-0 and attempted to upgrade to 2.5-1 from that and I still received the error detailed above. I've also tried this whole update process using a WAMP Moodle module, instead of a stack, with the very same problem. I even re-downloaded my installers. Tried everything at least twice - can't get past it.

This problem is killing me! Any ideas??

(As a workaround for the moment,


Viewing all articles
Browse latest Browse all 2052

Trending Articles