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) »
  • unrecoverable error: Error on rename of /civicrm_group_organization
Pages: [1]

Author Topic: unrecoverable error: Error on rename of /civicrm_group_organization  (Read 6314 times)

arlind

  • Guest
unrecoverable error: Error on rename of /civicrm_group_organization
October 02, 2009, 07:08:17 am

Hi,

I'm impressed with CiviCRM and was looking forward to 3.0 - but I get this error when I run the update script.

:-) Bo

Code: [Select]
Upgrade CiviCRM to Version 3.0.0

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

    DB Error: a515ac9c2796ca0e23adbe92c68fc9fc

    Database Error Code: Error on rename of './sik_live_crm/civicrm_group_organization' to './sik_live_crm/#sql2-43c1-43f06' (errno: 152), 1025

    Return to home page.

Error Details:

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

    [code] => 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 './sik_live_crm/civicrm_group_organization' to './sik_live_crm/#sql2-43c1-43f06' (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 './sik_live_crm/civicrm_group_organization' to './sik_live_crm/#sql2-43c1-43f06' (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 './sik_live_crm/civicrm_group_organization' to './sik_live_crm/#sql2-43c1-43f06' (errno: 152)]"]
)
[/code]

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: unrecoverable error: Error on rename of /civicrm_group_organization
October 02, 2009, 08:11:27 am

1. what version of mysql are you using

2. also if you are familiar with mysql, can you run the following:

 ALTER TABLE `civicrm_group_organization`
        DROP FOREIGN KEY `FK_civicrm_group_organization_group_id`,
        DROP FOREIGN KEY `FK_civicrm_group_organization_organization_id`

and see if that works

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

arlind

  • Guest
Re: unrecoverable error: Error on rename of /civicrm_group_organization
October 02, 2009, 08:31:58 am
Hi Lobo

Thanks for helping me out, but I still get the an error.

MySQL: 5.0.32

Error:
#1025 - Error on rename of './sik_live_crm/civicrm_group_organization' to './sik_live_crm/#sql2-43c1-44190' (errno: 152)

I dont know whether the database is correct updated from 2.2.7 to 2.2.8, since the update script stopped - see issue:
http://forum.civicrm.org/index.php/topic,9374.msg40471.html#msg40471

thanks Bo :-)

Code: [Select]
-- phpMyAdmin SQL Dump
-- version 2.8.2.4
-- http://www.phpmyadmin.net
--
-- Vært: localhost:3306
-- Genereringstid: 02/10 2009 kl. 17:34:53
-- Serverversion: 5.0.32
-- PHP version: 5.2.6
--

-- --------------------------------------------------------

--
-- Struktur-dump for tabellen `civicrm_group_organization`
--
-- Oprettelse: 02/10 2009 kl. 16:12:50
--

CREATE TABLE `civicrm_group_organization` (
  `id` int(10) unsigned NOT NULL auto_increment COMMENT 'Relationship ID',
  `group_id` int(10) unsigned NOT NULL COMMENT 'ID of the group',
  `organization_id` int(10) unsigned NOT NULL COMMENT 'ID of the Organization Contact',
  PRIMARY KEY  (`id`),
  KEY `FK_civicrm_group_organization_group_id` (`group_id`),
  KEY `FK_civicrm_group_organization_organization_id` (`organization_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Data dump for tabellen `civicrm_group_organization`
--
(none)
« Last Edit: October 02, 2009, 08:40:02 am by arlind »

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: unrecoverable error: Error on rename of /civicrm_group_organization
October 02, 2009, 09:42:48 am

Did u try the alter statement and that did not work?

What are the contents of the group_organization table?

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

arlind

  • Guest
Re: unrecoverable error: Error on rename of /civicrm_group_organization
October 02, 2009, 10:23:48 am

I deleted the two index, but still got an error when updating.

The update script for 3.0 says the database is not updated to 2.2.8 - only 2.2.7 even though I use 2.2.8. When trying to update to 2.2.8 I get same non-existent-error:
http://forum.civicrm.org/index.php/topic,9374.msg40471.html#msg40471

The table contains no data.

:-) Bo

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: unrecoverable error: Error on rename of /civicrm_group_organization
October 02, 2009, 10:45:07 am

can u email your database to deepak at webaccess dot co dot in

We'll take a look and get back 2 u

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

Blake

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 5
    • LinkedIn Profile
Re: unrecoverable error: Error on rename of /civicrm_group_organization
October 19, 2009, 02:08:04 pm
Was there any resolution to this error? I got the exact same error with same error details when updating from 2.2.9 w/ drupal 6.14.

Should I also email my database to deepak? ???

arlind

  • Guest
Re: unrecoverable error: Error on rename of /civicrm_group_organization
October 21, 2009, 06:45:33 am
Hi Lobo and Donald

I was greatfull for the help offered by Lobo, but I think, it would be against local danish law to mail a member-database of a political party to outsiders.

Thus my problem is not solved, but I am sure that it would have been could I use the help provided.

:-) Bo

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: unrecoverable error: Error on rename of /civicrm_group_organization
October 21, 2009, 07:55:12 am

hey blake:

can u please email you db to deepak

thanx

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

Blake

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 5
    • LinkedIn Profile
Re: unrecoverable error: Error on rename of /civicrm_group_organization
October 21, 2009, 02:48:12 pm
I emailed Deepak earlier in the day and look forward to figuring this thing out!  ;)

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: unrecoverable error: Error on rename of /civicrm_group_organization
October 23, 2009, 01:07:21 am
Blake,

We found that your database is missing Foreign Key Constraints in all the tables. One of the reason could be change of storage engine (probably from MyISAM to InnoDB).

Try correcting the schema by following the steps documented here - http://wiki.civicrm.org/confluence/display/CRMDOC/Ensuring+Schema+Integrity+on+Upgrades and then go for upgrade.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

jeffw

  • I post occasionally
  • **
  • Posts: 32
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.77
  • PHP version: 5.3.3
Re: unrecoverable error: Error on rename of /civicrm_group_organization
November 12, 2009, 08:07:52 pm
Getting exact same thing here on 2.2.5 to 3.0.2.  I'll look at the thing on the last post.

Blake

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 5
    • LinkedIn Profile
Re: unrecoverable error: Error on rename of /civicrm_group_organization
November 13, 2009, 05:24:01 am
What Deepak recommended did work, however it was a really pain in the butt to do. You are best off avoiding phpmyadmin altogether if you hit a timeout (which will probably happen unless you have a small database).

Here are some shell commands I used on MediaTemple. Most hosts require less:
import from backup: mysql -u [username] -p[password] -t [database-name] -h [hostname]  <  [file-to-import].sql
data only dump: mysqldump --no-create-info -u [username] -h [hostname] -p[password] [database-name] > [name-of-new-data-file].sql
table only dump: mysqldump --no-data -u [username] -h [hostname] -p[password] [database-name] > [name-of-new-table-file].sql

Good luck.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • unrecoverable error: Error on rename of /civicrm_group_organization

This forum was archived on 2017-11-26.