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) »
  • Drupal 6.20 upgrade 2.2.6 -> 3.3.1 with drush fails at database upgrade.
Pages: [1]

Author Topic: Drupal 6.20 upgrade 2.2.6 -> 3.3.1 with drush fails at database upgrade.  (Read 1643 times)

coxn

  • Guest
Drupal 6.20 upgrade 2.2.6 -> 3.3.1 with drush fails at database upgrade.
December 23, 2010, 01:24:39 pm
Using the civicrm.drush.inc from 3.3 and drush from CVS (4.0-dev), I get "Aborting due to invalid call to domainID" when trying to upgrade CiviCRM from 2.2.6 to 3.3.1. Full paste here https://gist.github.com/753456 and below. I'm new to CiviCRM and Drupal, so please feel free to point me to standard debugging/troubleshooting documents that I may have missed.

Code: [Select]
The upgrade process involves -
1. Backing up current CiviCRM code as => /home/sfc/www/production/drupal6/../backup/modules/20101223194626/civicrm
2. Backing up database as => /home/sfc/www/production/drupal6/../backup/modules/20101223194626/civicrm.sql
3. Unpacking tarfile to => /home/sfc/www/production/drupal6/sites/all/modules/
4. Executing civicrm/upgrade?reset=1 just as a browser would.

Do you really want to continue? (y/n): y
                                                                                                                                                                 [ok]
1. Code backed up.
Database dump saved to /home/sfc/www/production/drupal6/../backup/modules/20101223194626/civicrm.sql [success]
2. Database backed up. [ok]
3. Tarfile unpacked. [ok]
4.
<p>Aborting due to invalid call to domainID</p><p><pre>/home/sfc/www/production/drupal6/sites/all/modules/civicrm/CRM/Core/Config.php, backtrace, 475
/home/sfc/www/production/drupal6/sites/all/modules/civicrm/CRM/Core/BAO/Domain.php, domainID, 93
/home/sfc/.drush/civicrm.drush.inc, version, 372
/home/sfc/.drush/civicrm.drush.inc, civicrm_upgrade_db, 515
, civicrm_upgrade,
/home/sfc/drush-HEAD/includes/command.inc, call_user_func_array, 196
/home/sfc/drush-HEAD/drush.php, drush_dispatch, 102
/home/sfc/drush-HEAD/drush.php, drush_main, 42</pre></p><p></p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <base href="http://www.[redacted].org/sites/all/modules/civicrm/" />
  <style type="text/css" media="screen">@import url(http://www.[redacted].org/sites/all/modules/civicrm/css/civicrm.css);</style>
  <style type="text/css" media="screen">@import url(http://www.[redacted].org/sites/all/modules/civicrm/css/extras.css);</style>
  <script type="text/javascript" src="http://www.[redacted].org/sites/all/modules/civicrm/js/jquery/jquery.crmaccordions.js"></script>
</head>
<body>
<div id="crm-container" lang="en" xml:lang="en">
<div class="messages status"> <div class="icon red-icon alert-icon"></div>
 <span class="status-fatal">Sorry. A non-recoverable error has occurred.</span>
    <div class="crm-section crm-error-message">We experienced an unexpected error. Please file an issue with the backtrace</div>
            <p><a href="http://www.[redacted].org/" title="Main Menu">Return to home page.</a></p>
</div>
</div>
<script type="text/javascript">
cj(function() {
   cj().crmaccordions();
});
</script>

</body>
</html>Drush command terminated abnormally due to an unrecoverable error. [error]


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: Drupal 6.20 upgrade 2.2.6 -> 3.3.1 with drush fails at database upgrade.
December 23, 2010, 06:07:03 pm

can you post an issue here:

http://issues.civicrm.org/

we'll investigate and fix for 3.3.2

thanx for the detailed report :)

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

coxn

  • Guest
Re: Drupal 6.20 upgrade 2.2.6 -> 3.3.1 with drush fails at database upgrade.
December 27, 2010, 08:53:27 am
Done! http://issues.civicrm.org/jira/browse/CRM-7278

Any other information I can provide or testing I can perform?

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: Drupal 6.20 upgrade 2.2.6 -> 3.3.1 with drush fails at database upgrade.
December 28, 2010, 12:30:13 am
we will get back here once issue is fixed and then you can retest.

Kurund
Found this reply helpful? Support CiviCRM

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Drupal 6.20 upgrade 2.2.6 -> 3.3.1 with drush fails at database upgrade.
December 29, 2010, 03:35:48 am
coxn,

apply the below patch  to you civicrm.drush.inc file and let us know if it works for you. Have tested and committed to svn.

Code: [Select]
Index: tools/drupal/drush/civicrm.drush.inc
===================================================================
--- tools/drupal/drush/civicrm.drush.inc (revision 362)
+++ tools/drupal/drush/civicrm.drush.inc (working copy)
@@ -363,6 +363,7 @@
     _civicrm_init();

+    $_GET['q'] = 'civicrm/upgrade';
     require_once 'CRM/Core/Config.php';
     require_once 'CRM/Core/Smarty.php';
     $template =& CRM_Core_Smarty::singleton( );


Rahul.
« Last Edit: December 29, 2010, 03:39:02 am by Rahul Bile »
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

coxn

  • Guest
Re: Drupal 6.20 upgrade 2.2.6 -> 3.3.1 with drush fails at database upgrade.
January 03, 2011, 11:33:10 am
As mentioned in IRC, I get the same errors after applying the patch. If you would like to suggest a time of day that is not between 05:00 UTC and 15:00 UTC, I would be happy to spend an hour or more trying troubleshooting steps with you via IRC.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Drupal 6.20 upgrade 2.2.6 -> 3.3.1 with drush fails at database upgrade.

This forum was archived on 2017-11-26.