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) »
  • (Drupal) 2.1 Beta5 upgrade error
Pages: [1]

Author Topic: (Drupal) 2.1 Beta5 upgrade error  (Read 2118 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
(Drupal) 2.1 Beta5 upgrade error
September 19, 2008, 01:02:36 pm
Upgraded today to beta5 from CiviCRM 2.0.6 and drupal 5. Am on Drupal 6.4 with everything working, civi is the last thing.

Followed upgrade instructions and then went to sites/all/modules/civicrm/install/upgrade.php

and I get this error:

Code: [Select]
backTrace

/var/www/html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 138
, handle,
/var/www/html/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 912
/var/www/html/sites/all/modules/civicrm/packages/DB.php, PEAR_Error, 966
/var/www/html/sites/all/modules/civicrm/packages/PEAR.php, DB_Error, 574
/var/www/html/sites/all/modules/civicrm/packages/DB/common.php, raiseError, 1903
/var/www/html/sites/all/modules/civicrm/packages/DB/mysql.php, raiseError, 898
/var/www/html/sites/all/modules/civicrm/packages/DB/mysql.php, mysqlRaiseError, 327
/var/www/html/sites/all/modules/civicrm/packages/DB/common.php, simpleQuery, 1216
/var/www/html/sites/all/modules/civicrm/CRM/Utils/File.php, query, 225
/var/www/html/sites/all/modules/civicrm/CRM/Upgrade/Form.php, sourceSQLFile, 75
/var/www/html/sites/all/modules/civicrm/CRM/Upgrade/TwoOne/Form/Step1.php, source, 261
/var/www/html/sites/all/modules/civicrm/CRM/Upgrade/TwoOne/Page/Upgrade.php, upgrade, 65
/var/www/html/sites/all/modules/civicrm/CRM/Upgrade/TwoOne/Page/Upgrade.php, runForm, 41
/var/www/html/sites/all/modules/civicrm/install/upgrade.php, run, 48
/var/www/html/sites/all/modules/civicrm/install/upgrade.php, run, 51

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    DB Error: unknown error

    Database Error Code: Error on rename of './cctvcivicrm_v2/civicrm_acl' to './cctvcivicrm_v2/#sql2-6cb-c44b' (errno: 152), 1025

    Return to home page.

Error Details:

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

    [code] => -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => ALTER TABLE `civicrm_acl` DROP FOREIGN KEY `FK_civicrm_acl_domain_id` [nativecode=1025 ** Error on rename of './cctvcivicrm_v2/civicrm_acl' to './cctvcivicrm_v2/#sql2-6cb-c44b' (errno: 152)]
    [type] => DB_Error
    [user_info] => ALTER TABLE `civicrm_acl` DROP FOREIGN KEY `FK_civicrm_acl_domain_id` [nativecode=1025 ** Error on rename of './cctvcivicrm_v2/civicrm_acl' to './cctvcivicrm_v2/#sql2-6cb-c44b' (errno: 152)]
    [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="ALTER TABLE `civicrm_acl` DROP FOREIGN KEY `FK_civicrm_acl_domain_id` [nativecode=1025 ** Error on rename of './cctvcivicrm_v2/civicrm_acl' to './cctvcivicrm_v2/#sql2-6cb-c44b' (errno: 152)]"]
)

Ideas?[/code]

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: (Drupal) 2.1 Beta5 upgrade error
September 19, 2008, 01:03:40 pm
hmmm. I did not yet try this procedure: http://wiki.civicrm.org/confluence/display/CRMDOC/Ensuring+Schema+Integrity+on+Upgrades

I will give this a shot and report back.

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: (Drupal) 2.1 Beta5 upgrade error
September 19, 2008, 01:24:48 pm
Quote
hmmm. I did not yet try this procedure: http://wiki.civicrm.org/confluence/display/CRMDOC/Ensuring+Schema+Integrity+on+Upgrades
That procedure is to be used when upgrading from 1.8/1.9.

You problem looks same as this one - http://forum.civicrm.org/index.php/topic,4259.0.html. So might first wanna try some of the checks/solutions suggested there.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

aaronfulton

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
Re: (Drupal) 2.1 Beta5 upgrade error
January 13, 2009, 02:31:23 pm
I had this error too.  I logged into phpmyadmin and manually deleted the index then opened CRM\Upgrade\TwoOne\sql\domain_ids.mysql and commented out the offending lines.  the rest of the update ran well.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • (Drupal) 2.1 Beta5 upgrade error

This forum was archived on 2017-11-26.