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) »
  • Unable to run/upgrade
Pages: [1] 2

Author Topic: Unable to run/upgrade  (Read 3152 times)

dlucas

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5.1.61
  • PHP version: 5.3.6
Unable to run/upgrade
March 21, 2012, 09:23:48 am
Hi I hope somebody can help me debug this stange error.

I can not seem to get to the upgrade page. Every time I enter /upgrade I get sent back to the main drupal site and the logged in users dashboard.
The admin page tells me I have new code base and should visit the upgrade page.
I was having errors with the webhost, in that the upgrade script was segfaulting php, but they have now fixed that.  I still can not for some reason get the actual page to display.
I have installed a test drupal site on the same server and civicrm can run the upgrade script fine from that site. 

The only difference is that one is in /drupal the other in /drupal_testing but /drupal is called using a rewrite .htaccess so that I can serve it from a sub directory.

Any assistance would be appreciated.



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: Unable to run/upgrade
March 21, 2012, 01:13:20 pm
I hope you are following instructions mentioned here: http://wiki.civicrm.org/confluence/display/CRMDOC41/Installation+and+Upgrades

Kurund
Found this reply helpful? Support CiviCRM

dlucas

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5.1.61
  • PHP version: 5.3.6
Re: Unable to run/upgrade
March 22, 2012, 05:02:43 am
Hi,

Yes I am following the instructions as far I can see.

Let me give you an example of the problem

If I visit mysite/civicrm/upgrade?reset=1 I get sent to mysite/users/<username>

I have on the same server a test installation of drupal that I am in the process of cloning the main site to.  On that installation, when I enter mysite/drupal_testing/civicrm/upgrade?reset=1 I get a green screen saying that my database has already been upgraded.

The only difference between these two sites is that the primary drupal installation is in /drupal but is rewritten with the following .htaccess rule:

# Serve Drupal 7 from sub directory in web root

RewriteRule ^$ drupal/index.php [L]
RewriteCond %{DOCUMENT_ROOT}/drupal%{REQUEST_URI} -f
RewriteRule .* drupal/$0 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* drupal/index.php?q=$0 [QSA]

Could this be the source of the problem?

Thanks

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Unable to run/upgrade
March 22, 2012, 07:26:53 am
Visit

mysite/index.php?q=civicrm/upgrade?reset=1

and see if it works.
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.

dlucas

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5.1.61
  • PHP version: 5.3.6
Re: Unable to run/upgrade
March 22, 2012, 07:42:34 am
Hi
Nope no go.

index.php?q=civicrm/upgrade?reset=1 sends me back to users/<username>


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: Unable to run/upgrade
March 22, 2012, 10:50:56 am
I hope you have not disabled CiviCRM module.

Kurund
Found this reply helpful? Support CiviCRM

dlucas

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5.1.61
  • PHP version: 5.3.6
Re: Unable to run/upgrade
March 22, 2012, 11:37:08 am
No
civicrm is the only module enabled in the civicrm group

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Unable to run/upgrade
March 22, 2012, 12:57:44 pm
I think some odd server configuration is causing this. Can you check with your host?
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.

dlucas

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5.1.61
  • PHP version: 5.3.6
Re: Unable to run/upgrade
March 22, 2012, 06:41:47 pm
The odd thing is that the other site works correctly, and it is running on the same server but just in a different directory.
Either this issue is being caused by some strange problem with .htaccess rules, a module such a clean urls & pathauto or problems with the settings.php base urls becuase of the sub directory issue.
Do you think it would be worth changing the directory of drual from public_html/druapl to just public_html and calling directly from the web root instead of using rewite in .htaccess?
The script was segfaulting php before and would simply die as soon as mysite/civicrm/upgrade?reset=1 was typed into the browser.  They had to turn off Zend & Suhosin.
I will dump a copy of the primary site database to my secondary site on the same server, to ensure that all config settings are the same and see if the error occurs on that installation as well.
Is it possible to call the upgrade script directly from the filesystem or is it part of a function?
I tried to get drush to run but I am hitting a memory error issue that has been reported before (out of memory errors even though php has assigned 256mb)
If I get in touch with the host what errors am I looking for?  I already have php error logging defined but nothing is being logged to the file. 
In the apache log it shows a 302 status code :
 "GET /civicrm/upgrade HTTP/1.1" 302 707 "-" "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0"

followed by:

"GET /users/webmaster HTTP/1.1" 200 10323 "-" "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0"


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: Unable to run/upgrade
March 22, 2012, 07:45:55 pm

You can run the upgrade via drush, which is the command line option for drupal. but seems like u r hitting the memory error there also :(

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

dlucas

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5.1.61
  • PHP version: 5.3.6
Re: Unable to run/upgrade
March 23, 2012, 04:57:52 am
Could this be a problem caused by another module?

Whilst I think I have all of the same ones enabled on my test install, they may not be configured the same.

Would It be worth disabling  all non core modules except civicrm and see if that has any effect?

Thanks

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Unable to run/upgrade
March 23, 2012, 05:07:01 am
Quote from: dlucas on March 23, 2012, 04:57:52 am
Would It be worth disabling  all non core modules except civicrm and see if that has any effect?

Absolutely.
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.

dlucas

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5.1.61
  • PHP version: 5.3.6
Re: Unable to run/upgrade
March 23, 2012, 08:54:03 am
Hi ,

Ok I have disabled all of the contrib modules except civicrm, moved the site from its /drupal directory to /

I have deleted my .htaccess file and am using the defualt from drupal

I have also disabled civicrm then uninstalled it (but not deleted install folder) from drupal admin panel

Then reinstalled it and deleted civicrm folder from files and allowed it be created again.

I can get the /civicrm/dashboard but not the upgrade page.  Every time /civicrm/upgrade is called I get a 302 redirect.

What locations get files installed to so that I can perform a full cleanup of all civicrm code?
Are entries added to the drupal database aswell as the civicrm one?

I have opened a support request with my host, incase it is a cpanel config problem.

Thanks
« Last Edit: March 23, 2012, 08:59:18 am by dlucas »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Unable to run/upgrade
March 24, 2012, 01:08:30 pm
> What locations get files installed to so that I can perform a full cleanup of all civicrm code?

Perhaps replace your entire CiviCRM codebase.... To make sure it's all correct.
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.

dlucas

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7
  • MySQL version: 5.1.61
  • PHP version: 5.3.6
Re: Unable to run/upgrade
March 24, 2012, 04:37:30 pm
I am thinking about doing a full reinstall of the entire drupal codebase aswell


Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Unable to run/upgrade

This forum was archived on 2017-11-26.