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) »
  • Db script eror - upgrading from 2.2 to 3.1
Pages: [1]

Author Topic: Db script eror - upgrading from 2.2 to 3.1  (Read 1946 times)

lappies

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
  • CiviCRM version: 4.2.9
  • CMS version: Drupal 7.22
  • MySQL version: v5
  • PHP version: 5.3
Db script eror - upgrading from 2.2 to 3.1
January 31, 2010, 09:29:35 pm
I am getting this error repeatedly. Any pointers what to do from here?
Thanks for your time.

Background:
I am running this upgrade separately with the latest drupal 6 and civicrm in a new subdir. I have ensured that all the permissions are correct as civicrm module are enabled. I got the upgrade wizards green screen and also ensured that the old Db are checked and repaired by MySQL.
I receive this error repeatedly with each copy of the db upgrade i redo:

Upgrade CiviCRM to Version 3.1.1
Operating in off-line mode.

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

    DB Error: a515ac9c2796ca0e23adbe92c68fc9fc

    Database Error Code: Error on rename of './crosscon_menseV31/civicrm_group_organization' to './crosscon_menseV31/#sql2-4d9b-11d65' (errno: 152), 1025

    Return to home page.

Error Details:

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

        
Code: [Select]
=> a515ac9c2796ca0e23adbe92c68fc9fc
    [message] => DB Error: a515ac9c2796ca0e23adbe92c68fc9fc
    [mode] => 16
    [debug_info] => -- CRM-4610
    ALTER TABLE `civicrm_group_organization`
        DROP FOREIGN KEY `FK_civicrm_group_organization_group_id`,
        DROP FOREIGN KEY `FK_civicrm_group_organization_organization_id` [nativecode=1025 ** Error on rename of './crosscon_menseV31/civicrm_group_organization' to './crosscon_menseV31/#sql2-4d9b-11d65' (errno: 152)]
    [type] => DB_Error
    [user_info] => -- CRM-4610
    ALTER TABLE `civicrm_group_organization`
        DROP FOREIGN KEY `FK_civicrm_group_organization_group_id`,
        DROP FOREIGN KEY `FK_civicrm_group_organization_organization_id` [nativecode=1025 ** Error on rename of './crosscon_menseV31/civicrm_group_organization' to './crosscon_menseV31/#sql2-4d9b-11d65' (errno: 152)]
    [to_string] => [db_error: message="DB Error: a515ac9c2796ca0e23adbe92c68fc9fc" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info="-- CRM-4610
    ALTER TABLE `civicrm_group_organization`
        DROP FOREIGN KEY `FK_civicrm_group_organization_group_id`,
        DROP FOREIGN KEY `FK_civicrm_group_organization_organization_id` [nativecode=1025 ** Error on rename of './crosscon_menseV31/civicrm_group_organization' to './crosscon_menseV31/#sql2-4d9b-11d65' (errno: 152)]"]
)
[hr]
« Last Edit: January 31, 2010, 09:33:50 pm by lappies »

GingerFeet

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 3.4.6 / 3.4.7
  • CMS version: Drupal 6.22
  • MySQL version: 5.1
  • PHP version: 5.3.6
Re: Db script eror - upgrading from 2.2 to 3.1
February 03, 2010, 10:25:40 pm
http://wiki.civicrm.org/confluence/display/CRMDOC/Database+Troubleshooting+Tools

Blake

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 5
    • LinkedIn Profile
Re: Db script eror - upgrading from 2.2 to 3.1
February 15, 2010, 08:58:13 am
I'm in the same boat as lappies, but I can't get the dbtools to work.

I untar to a directory on my server, go in through command line, enter the command
Code: [Select]
php5 civicrm_db_integrity.php [-u username] -p[password] [-h hostname] databasename and get the following error:
Code: [Select]
"unrecognized arguments after database name"
Any suggestions?

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Db script eror - upgrading from 2.2 to 3.1
March 24, 2010, 06:07:32 pm
same issue.

vhlede

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
    • Chicago Veterinary Medical Association
  • CiviCRM version: CiviCRM 3.4.5
  • CMS version: Drupal 6.2.2
  • MySQL version: 5.2.17
  • PHP version: 5.0.91
Re: Db script eror - upgrading from 2.2 to 3.1
June 23, 2010, 01:31:53 pm
Hi,
I have the same problem: "unrecognized arguments after database name".
And there are no arguments after the db name.
Any suggestion?
Thanks :),
Vjeko
Coming together is a beginning. Keeping together is progress. Working together is success.
- Henry Ford

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Db script eror - upgrading from 2.2 to 3.1
June 23, 2010, 11:17:40 pm
Vjeko,

It is working fine for me.
Below is how i am running the command in terminal :
 
Code: [Select]
php5 civicrm_db_integrity.php -u root -proot -h localhost civicrm32_civicrm
Make sure you do not give space after -p . i.e  (-p[password] and not -p [password] )

Thanks,
Rahul.
« Last Edit: June 23, 2010, 11:20:52 pm by rahulbile »
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Db script eror - upgrading from 2.2 to 3.1
June 24, 2010, 12:39:58 am
Another way to fix such errors is - http://wiki.civicrm.org/confluence/display/CRMDOC/Ensuring+Schema+Integrity+on+Upgrades.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Db script eror - upgrading from 2.2 to 3.1

This forum was archived on 2017-11-26.