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) »
  • upgrading from 3.2.5, "database already exists"
Pages: [1]

Author Topic: upgrading from 3.2.5, "database already exists"  (Read 581 times)

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
upgrading from 3.2.5, "database already exists"
May 10, 2012, 07:31:11 am
I've tried a clean upgrade from backup several times, trying to go from 3.2.4 to 3.2.5, 3.3.0, or 3.4.0. upgrade to 3.2.5 works, but anything after that gives me this:

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

specifics are:

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

       
Code: [Select]
=> -5
    [message] => DB Error: already exists
    [mode] => 16


anyone have any history with this kind of thing? I'll keep searching around.


~ross

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: upgrading from 3.2.5, "database already exists"
May 10, 2012, 07:42:56 am
http://forum.civicrm.org/index.php?topic=17728.0

this seems helpful, but I'm confused as each time I get the 'db already exists' error, I've reinstalled a backup database and directory structure to 3.2.4, so rollback wouldn't fix. But i'll try the table removing...

~ross

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: upgrading from 3.2.5, "database already exists"
May 11, 2012, 06:26:15 am
Well, this ended up being the best advice, but I followed it poorly. :)

When I backed up to the previous database, I forgot to drop the data, so it was just overwriting, and leaving the superfluous tables. Once I fixed that with another proper backup, I dropped the tables:

drop civicrm_campaign_group;
drop civicrm_campaign;
drop civicrm_survey;
drop civicrm_batch;
drop civicrm_entity_batch;
drop civicrm_dedupe_exception;
drop civicrm_price_field_value;

and the install went fine. Solved!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: upgrading from 3.2.5, "database already exists"
May 11, 2012, 06:46:20 am
Quote from: rchapman on May 10, 2012, 07:42:56 am
I'm confused as each time I get the 'db already exists' error

You can turn on debugging in later versions of CiviCRM and see more of an error message that way. That message often means that a record can't be INSERTed into the DB due to a unique key restraint.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • upgrading from 3.2.5, "database already exists"

This forum was archived on 2017-11-26.