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) »
  • Database Upgrade Issue from 2.2.6 to 3.0
Pages: [1]

Author Topic: Database Upgrade Issue from 2.2.6 to 3.0  (Read 2173 times)

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Database Upgrade Issue from 2.2.6 to 3.0
October 02, 2009, 03:36:00 pm
I get this error when I attempt to upgrade the database:

Sorry. A non-recoverable error has occurred.
DB Error: already exists

Database Error Code: Duplicate entry 'report_template' for key 2, 1062

Return to home page.

Error Details:

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

       
Code: [Select]
=> -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_option_group
        (name, description, is_reserved, is_active )
    VALUES
        ('report_template', 'Report Template', 0, 1 ) [nativecode=1062 ** Duplicate entry 'report_template' for key 2]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_option_group
        (name, description, is_reserved, is_active )
    VALUES
        ('report_template', 'Report Template', 0, 1 ) [nativecode=1062 ** Duplicate entry 'report_template' for key 2]
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_option_group
        (name, description, is_reserved, is_active )
    VALUES
        ('report_template', 'Report Template', 0, 1 ) [nativecode=1062 ** Duplicate entry 'report_template' for key 2]"]
)

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Database Upgrade Issue from 2.2.6 to 3.0
October 02, 2009, 04:21:18 pm
Filed an issue for this: http://issues.civicrm.org/jira/browse/CRM-5168, we will fix it before next release.

For now you can try 2.2.6 to 2.2.9 upgrade and then upgrade 2.2.9 to 3.0.0

thanks

Kurund
Found this reply helpful? Support CiviCRM

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Re: Database Upgrade Issue from 2.2.6 to 3.0
October 03, 2009, 04:36:01 pm
I'm trying to upgrade from 2.2.6 to 2.2.9 and still get the same error when upgrading the database.

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Re: Database Upgrade Issue from 2.2.6 to 3.0
October 04, 2009, 07:45:47 am
Any ideas?  I'm stuck in the middle of an upgrade right now.

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: Database Upgrade Issue from 2.2.6 to 3.0
October 04, 2009, 08:00:41 am

i'd roll back to 2.2.6 till we figure this out

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

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: Database Upgrade Issue from 2.2.6 to 3.0
October 06, 2009, 12:32:41 am
Hi,
CiviReport released with v2.2.7

For Upgrade
Code: [Select]
INSERT INTO civicrm_option_group
        (name, description, is_reserved, is_active )
 VALUES
        ('report_template', 'Report Template', 0, 1 )

Handled in CRM/Upgrade/Incremental/sql/2.2.7.mysql.tpl File

Can you verify that report_template is not exist in your DB with following SQL
Code: [Select]
SELECT * FROM civicrm_option_group WHERE name LIKE 'report_template'
report_template should be present v2.2.7 onwards.

Hth

Sunil



The community around a product more important than the product itself?

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Re: Database Upgrade Issue from 2.2.6 to 3.0
October 12, 2009, 10:59:35 am
I get this:

50   report_template   NULL   Report Template   0   1

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Re: Database Upgrade Issue from 2.2.6 to 3.0
October 14, 2009, 09:25:30 pm
Anyone?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Database Upgrade Issue from 2.2.6 to 3.0
October 26, 2009, 02:04:51 am
Quote
50   report_template   NULL   Report Template   0   1

You should not get above result, since it was added in 2.2.7.  So I would suggest you should try upgrading from your original 2.2.6 database.

Also before your upgrade, can you confirm that in civicrm_domain table civicrm version is "2.2.6".

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Database Upgrade Issue from 2.2.6 to 3.0

This forum was archived on 2017-11-26.