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) »
  • Upgrade 2.1.4 to anything!!
Pages: [1]

Author Topic: Upgrade 2.1.4 to anything!!  (Read 814 times)

dcalp

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Upgrade 2.1.4 to anything!!
February 10, 2010, 01:15:07 pm
Hello:
I'm trying to upgrade my drupal civi to a newr version. My only success is from 2.1.4 to 2.1.6.
After that I'm trying to go to 2.2 and I receive this error:

Sorry. A non-recoverable error has occurred.

DB Error: a515ac9c2796ca0e23adbe92c68fc9fc

Database Error Code: Error on rename of './civicrm3/civicrm_participant' to './civicrm3/#sql2-6522-507' (errno: 152), 1025

The details

Code: [Select]
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => a515ac9c2796ca0e23adbe92c68fc9fc
    [message] => DB Error: a515ac9c2796ca0e23adbe92c68fc9fc
    [mode] => 16
    [debug_info] => ALTER TABLE `civicrm_participant`
   DROP FOREIGN KEY `FK_civicrm_participant_registered_by_id` [nativecode=1025 ** Error on rename of './civicrm3/civicrm_participant' to './civicrm3/#sql2-6522-507' (errno: 152)]
    [type] => DB_Error
    [user_info] => ALTER TABLE `civicrm_participant`
   DROP FOREIGN KEY `FK_civicrm_participant_registered_by_id` [nativecode=1025 ** Error on rename of './civicrm3/civicrm_participant' to './civicrm3/#sql2-6522-507' (errno: 152)]
    [to_string] => [db_error: message="DB Error: a515ac9c2796ca0e23adbe92c68fc9fc" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info="ALTER TABLE `civicrm_participant`
   DROP FOREIGN KEY `FK_civicrm_participant_registered_by_id` [nativecode=1025 ** Error on rename of './civicrm3/civicrm_participant' to './civicrm3/#sql2-6522-507' (errno: 152)]"]
)

Any guidance will be highly appreciated. I invested all the afternoon on this. A manual upgrade explanation is also good for me.

Thanks!

Diego[/code]

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Upgrade 2.1.4 to anything!!
February 10, 2010, 04:04:57 pm
Have you tried using the DB Tools package? Not 100% sure it works for 2.1.x - but worth a try:

http://wiki.civicrm.org/confluence/display/CRMDOC/Database+Troubleshooting+Tools
Protect your investment in CiviCRM by  becoming a Member!

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Upgrade 2.1.4 to anything!!
May 05, 2012, 04:32:24 pm
For anyone upgrading an old DB through 2.x series, I ran into this while consulting on an upgrade recently.

In the 2.1.6 DB which was being upgraded, a couple of keys were not *foreign* keys, so DROP FOREIGN KEY would fail.

I also found that fields which the upgrader tried to add to civicrm_event were already present.

This could easily be specific to the site which I was upgrading, but I've posted the diffed code for v2.2.9 for anyone who hits similar in future.

https://gist.github.com/2606281

(Also saw some other silly issues - duplicated tables preventing creation of FKs because the FK name was already assigned, and for some ungodly reason the DB version in civicrm_domain was 2.11 - a version of CiviCRM which never existed.)
@xurizaemon ● www.fuzion.co.nz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade 2.1.4 to anything!!

This forum was archived on 2017-11-26.