|
This looks like another failed groups upgrade during 1.7.x->1.8.x
Could you please have a look into the upgrade logs stored in moodledata/upgradelogs/, try to find file with groups related upgrade 1.7.x -> 1.8.x and the one with the initial upgrade 1.8.5+ -> 1.9.1+ - this might give us a clue what happened.
Dear Lafuente, Dear Skoda,
we will also update to 1.9 but have the same problem. In the logfile i see follow (from 1.7.4 -> 1.8): ------------------------------------------------------------------------------------ <h2 class="main">group</h2><hr /> Now from 1.8 to 1.9 i got the same errors how Lafuente: ----------------------------------------------------------------------------- ADOConnection._Execute(ALTER TABLE mdl_groups MODIFY COLUMN password VARCHAR(50) NULL DEFAULT NULL after description, false) % line 891, file: adodb.inc.php The problem i see the password column in mdl_groups will change in a previous Update (i think from 1.7 -> 1.8) in a column called enrolmentkey. Now in 1.9. he will Alter the column Password, but this will not exist (it called enrollmentkey now). My solution was to change enrolmentkey in password again, but i dont now if it ok. Hello,
1.7 - groups->password the 1.9.x contains separate upgrade code for 1.7x and 1.8x there might be a problem with 'groups_groupings' table, which could be caused by incomplete 1.8 upgrade Hi Petr,
yes same code we found for 30 minutes but the question is why he will update the groups_groupings incomplete. We will look tomorrow, and give a status comment. Two other question Petr: 1. When we finished the update (1.7>1.8>1.9) we found a next problem. We canot create any groups in a course. When we look in the mdl_groups table we have found the problem. The column courseid was missing. After we create this column, groups crating will work fine. 2. After this problems, we decided to upgrade directly to 1.9 (from 1.7). When we update from 1.7 to 1.9 directly all functions shows very good. The installation will finished without problems. There are any problems when we update directly? What you mean? Thanks for help and we see us tomorrow Ah, yes this looks like a broken/incomplete groups upgrade in 1.8.x,
most probably the bug is not in 1.9.x i found the problem for that, i linked to my issue....
I would just like to update the status of this issue by saying that this problem still exists in the weekly builds from yesterday. I just updated a 1.5.4 site to 1.6.7+ -> 1.8.6+ -> 1.9.2+ and received the same error. Looking at the mdl_groups table structure, I see the 'enrolmentkey' column.
I can confirm Robert's point #1 that I do not have the courseid column in mdl_groups table anymore. I have DB backups & logs from every step of the upgrade if you would like them Another report of a groups related upgrade problem: http://moodle.org/mod/forum/discuss.php?d=104406
As a contributer to this issue, http://moodle.org/mod/forum/discuss.php?d=104406
I have noticed that a 1.7>1,8 upgrade rename password to enrolmentkey, Next, we end up with a missing courseid field in our upgraded mdl_groups (which is indexed) also the id and courseid are now bigint(10). I am in the process of repopulating the courseid field with the data from my 1.7 installation. I have put a workaround in the forum which worked for me. Cooments welcomed in case it will subtly hose the database of all who use it!
I also have access to the 1.7, 1.8 and 1.9 database dumps from my version of this upgrade problem if this is helpful to anyone. The workaround is at http://moodle.org/mod/forum/discuss.php?d=104406#p461485 The 1.8.x groups upgrade should be finally fixed, all I needed in order to replicate this was to see the "groups_members duplicate key" error from upgrade logs
Thanks go to Brian Lockwood for mentioning it on moodle.org forum. Description of the problem: Solution: Petr see my post here.
http://moodle.org/mod/forum/discuss.php?d=104724 I have actually fixed groups after a failed upgrade and I am pretty convinced in my own mind that the lack of autoincrement in the upgraded mdl-groups table is the culprit. Further to above, the lack of autoincrement apples to mdl_groups_members as well. I just add this here for completeness.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
That field (groups->password) is renamed to groups->enrolmentkey as part of the upgrade to 1.9... perhaps that's the cause of the errors (not finding the field), but only because it has been renamed in the first upgrade.
Can you go back to 1.8.x and re-run the upgrade again? And report the structure of all your group/grouping tables + the errors you get the first time the upgrade is executed?
Assigning this to Petr... thanks! Ciao