Author Topic: Upgrade from 201 to 21rc2 DB failure  (Read 6245 times)

guenni21

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Upgrade from 201 to 21rc2 DB failure
« on: July 04, 2012, 09:05:45 am »
Hi,
I have done the upgrade from 175 to 201 and it works.
Now I want to upgrade to 21rc2

I have the following problem after running the upgrade script in .../puplic/upgrade folder.

Failed to execute DB schema transformations. MySQL said: Duplicate column name 'archived_by_id'
Error upgrading to version 2.1-rc2

Any suggestions?

Tx

moorezilla

  • Freshman
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Upgrade from 201 to 21rc2 DB failure
« Reply #1 on: July 09, 2012, 10:35:04 am »
I'm getting this same error when trying to upgrade from 2.0.x to 2.1. Not sure how to proceed; seeing if there are some notes about this elsewhere.

I followed procedure here:

/web/wiki/doku.php/migration

shodgman

  • Freshman
  • *
  • Posts: 27
    • View Profile
Re: Upgrade from 201 to 21rc2 DB failure
« Reply #2 on: July 14, 2012, 10:08:41 am »
I am having the same problem.
I have upgraded from 1.7.4  to 1.7.4 then proceeded with the instructions for upgrading 1.x to 2.x.
After upgrading to 2.0.1 I tested the login and the GUI says I am still using version 1.7.5.  This is despite the "installed_version.php" file in the config folder saying the version is 2.0.1.

I have done Ctrl - F5 to reset cache and still seems to be the same

When I ran the public/upgrade page to go from 2.0.1 to 2.1 then it gives this duplicate record error.

So, is there a solution to this problem of  upgrading to 2.1 ?
Thanks,

guenni21

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Upgrade from 201 to 21rc2 DB failure
« Reply #3 on: July 14, 2012, 04:33:41 pm »
@morezilla: I have done exactly this before I have started the post.
But it does not work!

Any other solution?

Tx

sinbad

  • Freshman
  • *
  • Posts: 31
    • View Profile
Re: Upgrade from 201 to 21rc2 DB failure
« Reply #4 on: July 18, 2012, 08:23:18 pm »
me too. seeing all these forum post one can only ask if anyone was able to actually upgrade?

shodgman

  • Freshman
  • *
  • Posts: 27
    • View Profile
Re: Upgrade from 201 to 21rc2 DB failure
« Reply #5 on: July 18, 2012, 09:31:58 pm »
Not me!  No reply as yet and the bug reported about this issue has not yet been acknowledged yet.

So, I can only assume that people have NOT been able to upgrade from 1.7.5 to 2.1
---
Steve

sinbad

  • Freshman
  • *
  • Posts: 31
    • View Profile
Re: Upgrade from 201 to 21rc2 DB failure
« Reply #6 on: July 19, 2012, 10:56:22 am »
I hope someday soon the devs will find a time to tell us how to fix all those broken upgrades. It was never easy to update OG but this upgrade looks like a real disaster.

moorezilla

  • Freshman
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Upgrade from 201 to 21rc2 DB failure
« Reply #7 on: July 19, 2012, 03:08:42 pm »
Quote
@morezilla: I have done exactly this before I have started the post.
But it does not work!

Any other solution?

Tx

Just to clarify, guenni21, I followed the instructions on the wiki, but I was not able to get the upgrade process to complete. I was not suggesting that you try the instructions, but merely documenting that I had.

conrado

  • Administrator
  • Hero Member
  • *****
  • Posts: 998
  • Conrado
    • View Profile
    • Feng Office
    • Email
Re: Upgrade from 201 to 21rc2 DB failure
« Reply #8 on: July 24, 2012, 04:01:04 pm »
Hi everyone. We will be looking into this today.

Are problems still occurring with Feng 2.1 final?
Get Official Support for your Feng Office. Support the development team. Sign up for a Free Trial here.

jron

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Upgrade from 201 to 21rc2 DB failure
« Reply #9 on: July 27, 2012, 02:48:28 pm »
I still have this exact same problem with going from 2.0.1 to 2.1 final after upgrading from 1.7.5.

franponce87

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
    • Email
Re: Upgrade from 201 to 21rc2 DB failure
« Reply #10 on: July 27, 2012, 07:34:59 pm »
Hello everyone,
We have found out what the issue is, and its solution, which will be published for next release, and then yes, NO MORE problems when upgrading from 1.7.5 to 2.X IF you follow the instructions of course. Eventually it will become more user friendly though :)

Here is the fix:
Change all of the content of the file at FENG_ROOT/public/upgrade/templates/db_migration/2_1_molleja.php for the following one:

Code: [Select]
-- <?php echo $table_prefix ?> fo_
-- <?php echo $default_charset ?> DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
-- <?php echo $default_collation ?> collate utf8_unicode_ci
-- <?php echo $engine ?> InnoDB

INSERT INTO `<?php echo $table_prefix ?>file_types` (`id` ,`extension` ,`icon` ,`is_searchable` ,`is_image`) VALUES
 ('34', 'odt', 'doc.png', '1', '0'), ('35', 'fodt', 'doc.png', '1', '0')
ON DUPLICATE KEY UPDATE id=id;
UPDATE `<?php echo $table_prefix ?>permission_groups` SET `type` = 'roles' WHERE `id` <= 13;
UPDATE `<?php echo $table_prefix ?>permission_groups` SET `type` = 'permission_groups' WHERE `contact_id` > 0;
UPDATE `<?php echo $table_prefix ?>permission_groups` SET `type` = 'user_groups' WHERE `type` = '' OR `type` IS NULL;


The difference here is that there no longer are ALTER statements, which were actually already ran in the first process so as to keep your archived items.

Once you make this change, go to your browser and then:
FENG_ROOT/public/upgrade
Select the 2.1 version and voilá!!

We are sorry for this issue, and we thank you for patience and comprehension.

Should anyone find any further problem, please let us know about it so that we can solve it for the 2.1.1 beta version.

Best regards,
Francisco
Would you like to install Feng Office Professional or Enterprise Edition in your servers? No problem! Read this article!