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) »
  • Upgrade 2.03 to 2.1 - Confusing Error
Pages: [1]

Author Topic: Upgrade 2.03 to 2.1 - Confusing Error  (Read 2550 times)

ryanpitt

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Upgrade 2.03 to 2.1 - Confusing Error
October 13, 2008, 07:30:32 am
Hi All,
I have tried a number of times to update my CiviCRM installation using the following steps.
1. Updated Drupal from 5.3 to 6.5 - Successful
2. Downloaded and copied CiviCRM 2.1 code and placed it in the correct folder in *Drupal*/sites/all/modules/civicrm - Successful
3. Ran the upgrade script sites/all/modules/civicrm/install/upgrade.php which runs for some time and then displays an error - Failed!
Here is the error message I get...

*****************************************

backTrace

/*path*/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 260
/*path*/sites/all/modules/civicrm/CRM/Upgrade/TwoOne/Page/Upgrade.php, fatal, 58
/*path*/sites/all/modules/civicrm/CRM/Upgrade/TwoOne/Page/Upgrade.php, runForm, 41
/*path*/sites/all/modules/civicrm/install/upgrade.php, run, 48
/*path*/sites/all/modules/civicrm/install/upgrade.php, run, 51

 Sorry. A non-recoverable error has occurred.
Corrupt / Partial Upgraded database found. Looks like upgrade wizard failed to complete all the required steps to convert your database to v2.1. Please fix any errors and start the upgrade process again with a clean v2.0 database.

*************************************

Does anyone have any ideas here?

Thanks for your help.
Ryan

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Upgrade 2.03 to 2.1 - Confusing Error
October 13, 2008, 08:43:27 pm
Quote
Corrupt / Partial Upgraded database found. Looks like upgrade wizard failed to complete all the required steps to convert your database to v2.1. Please fix any errors and start the upgrade process again with a clean v2.0 database.
Error indicates due to some reason the db couldn't be upgraded and when you trying to run the upgrade script again it shows you this error. It would have been helpful if you had caught the first-time error.
 
Import your 2.0 db back again and try re-run the upgrade script.
« Last Edit: October 13, 2008, 08:46:14 pm by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

ryanpitt

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Upgrade 2.03 to 2.1 - Confusing Error
October 14, 2008, 09:30:03 am
Hi Deepak,
Thanks for your reply.
I have tried to re-run the update script numerous times and I get the same error each time.  Each time this has happened, I have removed the corrupt db and restored the original 2.03 version of the db and re-run the update script.
Any other ideas?
Thanks
Ryan

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Upgrade 2.03 to 2.1 - Confusing Error
October 14, 2008, 09:39:39 am
Well then try resetting value of 'version' column of table 'civicrm_domain' table to "2.0" in the valid db just before running the upgrade script.   
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

ryanpitt

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Upgrade 2.03 to 2.1 - Confusing Error
October 14, 2008, 09:48:57 am
That field already shows 2.0

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Upgrade 2.03 to 2.1 - Confusing Error
October 14, 2008, 01:56:54 pm
Not possible. If you really get that error ('partial upgrade..') your db must have the value as 2.01/2.02/2.03 or you looking at wrong db.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

ryanpitt

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Upgrade 2.03 to 2.1 - Confusing Error
October 14, 2008, 06:34:48 pm
Since I am upgrading from 2.03, should that value read 2.03 or simply 2.0?
I just checked the current working database of our live version of CiviCRM and the version field in the domain table displays as 2.0.
Perhaps there was a previous upgrade step I missed?  We have been running on the current version for some time now without issue.
Thank for your help Deepak, it is much appreciated.

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Upgrade 2.03 to 2.1 - Confusing Error
October 14, 2008, 08:05:51 pm
Quote
Insert Quote
Since I am upgrading from 2.03, should that value read 2.03 or simply 2.0?
It should read 2.0. The file - CRM/Upgrade/TwoOne/Form/Step1.php could help you figure out whats going wrong.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

ryanpitt

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Upgrade 2.03 to 2.1 - Confusing Error
October 21, 2008, 08:07:51 am
Quote from: Deepak Srivastava on October 14, 2008, 08:05:51 pm
It should read 2.0. The file - CRM/Upgrade/TwoOne/Form/Step1.php could help you figure out whats going wrong.
Hi Deepak,
I got distracted from this upgrade for a while but now need to figure it out.  How would I use the above file to figure out where the upgrade process is going wrong?  I know I have the correct information in the version field so that is not the issue.
Thanks again for your help.
Ryan

ryanpitt

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Upgrade 2.03 to 2.1 - Confusing Error
October 21, 2008, 12:00:12 pm
I tried installing Drupal 5.6 and CiviCRM 2.1 on a local machine and this an error showed that I should make the field "config_backend" NULL in the domain table.  I did this and the upgrade was successful!  I do have another issue which I found but will post it in a separate thread.
Hope this helps someone else out.
Ryan

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade 2.03 to 2.1 - Confusing Error

This forum was archived on 2017-11-26.