Upgrading from 2.5.3 to 2.6 Errors

Upgrading from 2.5.3 to 2.6 Errors

by g k -
Number of replies: 6

I am doing an upgrade from Moodle 2.5.3 to 2.6.  I am running multiple add-ons. But they have all been copied over or upgraded.  The server requirements check out fine. But then I get an error message:

Table "question_multichoice" already exists

Debug info: can not rename table Error code: ddltablealreadyexists
Stack trace:
  • line 505 of /lib/ddl/database_manager.php: ddl_exception thrown
  • line 76 of /question/type/multichoice/db/upgrade.php: call to database_manager->rename_table()
  • line 510 of /lib/upgradelib.php: call to xmldb_qtype_multichoice_upgrade()
  • line 1580 of /lib/upgradelib.php: call to upgrade_plugins()
  • line 422 of /admin/index.php: call to upgrade_noncore()

Any help would be appreciated.

 

Average of ratings: -
In reply to g k

Re: Upgrading from 2.5.3 to 2.6 Errors

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 restore from a backup and do it again *without* all your addins - just plain Moodle. See if that makes any difference. If it works, you can then replace the addins (do you *really* need them?) one at a time. 

In reply to Howard Miller

Re: Upgrading from 2.5.3 to 2.6 Errors

by g k -

Completely stripping Moodle of all add-ons does not fix this issue unfortunately. 

 

In reply to g k

Re: Upgrading from 2.5.3 to 2.6 Errors

by Ivo Mynter -

Hi,

I had the same issue (after passing another). Restoring from backup helped finally after having setted plugins properly. See: https://moodle.org/mod/forum/discuss.php?d=244438

Hope, that it helps. Good Luck!

Ivo (keep moodling)

In reply to Ivo Mynter

Re: Upgrading from 2.5.3 to 2.6 Errors

by g k -

Thanks for the suggestions.  Unfortunately, none of these have worked. After completely stripping Moodle of all add-ons and attempting the upgrade, I got message saying that there was an error connecting to the database

In reply to Howard Miller

Re: Upgrading from 2.5.3 to 2.6 Errors

by Andrew Lowkis -

Hi had the same issues with the database error.  This was after updating all plugins (added ones).  One particular oddity was that the upgrade was asking for the 'melbourne' theme (it came up as missing from disk).  I have never used this previously and only causes errors when I try to upgrade to 2.6.  Any clues?

In reply to g k

Re: Upgrading from 2.5.3 to 2.6 Errors

by rohan edmeades -

For anyone that comes across this issue via Google.

I had been testing the upgrade process and hitting this, it was Roger's comment in the tracker which resolved it for me - drop and recreate your database, not just the tables.