CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown error
Pages: 1 [2]

Author Topic: Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown error  (Read 5986 times)

andrewg

  • Guest
Re: Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown error
October 06, 2009, 11:48:06 pm
Hi,

Would really like to get this sorted, as it seems it is not just an issue for me but also for others...

Please help.

Thanks,


Andrew

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown er
October 06, 2009, 11:51:52 pm
Andrew, i'm on irc right now (as deepaks).
« Last Edit: October 06, 2009, 11:54:34 pm by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown error
October 08, 2009, 05:13:44 pm
Looks like there was a bug with these symptoms which was fixed in the just-released 3.0.1 release:

http://issues.civicrm.org/jira/browse/CRM-5203
Protect your investment in CiviCRM by  becoming a Member!

andrewg

  • Guest
Re: Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown error
October 28, 2009, 11:01:22 pm
I tried the upgrade again to 3.0.1, and got the following error:

DB Error: unknown error

Database Error Code: Duplicate column name 'label_a_b', 1060


see full error attached.


What should we do to rectify this?


Thanks,



Andrew
« Last Edit: October 28, 2009, 11:03:27 pm by andrewg »

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown error
October 29, 2009, 09:46:32 am
Andrew,

Your database is corrupt (from what i remember) i.e the db is partially in 3.0 state.
This error is another proof for the same, since label_a_b column was added in 3.0 and can only result in duplicate error if your db is in partially upgraded state.

Please use the database (or dump) on which upgrade was never tried.
In case you don't have one you 'll need to manually revert effects of the queries in the file - /CRM/Upgrade/Incremental/sql/3.0.alpha1.mysql.tpl. If this is the case and you don't have mysql skills, you can contact http://civicrm.org/professional for the paid help.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

andrewg

  • Guest
Re: Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown error
October 29, 2009, 11:44:26 am
Hi Deepak,

This was on a 2.2.8 clean database, it is however the second time that I have tried 3.0.1 on this specific copy.

Some issues were resolved a couple of months ago after we experienced issues on a previous upgrade, this was done by one of the Civi team. Is there a possibility that this fix is causing us problems?

Thanks,


Andrew

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown error
October 29, 2009, 12:35:29 pm
Quote
Some issues were resolved a couple of months ago after we experienced issues on a previous upgrade, this was done by one of the Civi team. Is there a possibility that this fix is causing us problems?
I don't think so, since 3.0 came out on 1st of this month.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

andrewg

  • Guest
Re: Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown error
October 29, 2009, 03:14:02 pm
Deepak,

A slight misunderstanding here.... not saying that I had issues with 3.0.0 or 3.0.1 a couple of months ago, but rather with the 2.2.8 upgrade a couple of months ago... Check forum as I posted it...

So, what next?

Thanks,



Andrew

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown error
October 29, 2009, 04:30:00 pm

2 options:

a. you might want to start looking into the upgrade script and step thru it and figure out what is failing and why. If you narrow it down to a bug in the upgrade process, please report back. Reporting back with a patch will be even better

b. If you are not up to doing step a, you might want to hire someone else from the services listing to help you out with it

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Failed Upgrade v2.2.8 to v3.0 - Fatal Error /PEAR.php & DB Error: unknown error

This forum was archived on 2017-11-26.