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 failure from 4.4.6 to 4.5.4
Pages: [1] 2

Author Topic: upgrade failure from 4.4.6 to 4.5.4  (Read 1876 times)

ldgpangeo

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: drupal-7.17
  • MySQL version: 5.5.23
  • PHP version: 5.3.13
upgrade failure from 4.4.6 to 4.5.4
November 22, 2014, 05:08:56 pm
I'm encountering an odd failure when I upgrade one site from 4.4.X to 4.5, even though I've done successful upgrades on 3 other sites.  This is a drupal 7 hosting.

After I replace the civicrm code in sites/all/modules, I can access the civicrm default page but any attempt to access the database upgrade page (http://<your_drupal_home>/civicrm/upgrade?reset=1) gets me thrown back to the drupal 7 home page.  Similarly, most menu commands do not work (e.g. can not search for a contact)

I've tried the usual fixes:
   cleared all caches, both civi and Drupal     
   reset the session
   use the non-clean url path instead
   Reset config_backend
   ...

I can set Civi into debug mode but it throws no visible errors nor logs anything to Drupal watchdog.

I can revert back to 4.4.6 and all works exactly as it should.

I get the same problem with 4.5.3 and 4.5.4.

Has anyone seen a problem like this?   What do I need to do to get 4.5 working?


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: upgrade failure from 4.4.6 to 4.5.4
November 23, 2014, 04:55:18 am
When you replace the code, do you also remove template caches?
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.

ldgpangeo

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: drupal-7.17
  • MySQL version: 5.5.23
  • PHP version: 5.3.13
Re: upgrade failure from 4.4.6 to 4.5.4
November 23, 2014, 07:32:17 am
I used both the clear caches gui command and deleted files/civicrm/templates_c/* and deleted
files/civicrm/ConfigAndLog/Config.IDS.ini per troubleshooting instructions in the upgrade docs.

Did I miss something?
Are you recommending I clear something else as well?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: upgrade failure from 4.4.6 to 4.5.4
November 23, 2014, 07:36:54 am
Hard to know. I once saw an issue like with where some JS code was redirecting the page. Perhaps disable any other modules you have enabled and try again.
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.

ldgpangeo

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: drupal-7.17
  • MySQL version: 5.5.23
  • PHP version: 5.3.13
Re: upgrade failure from 4.4.6 to 4.5.4
November 23, 2014, 05:29:13 pm
I recollect disabling all extensions and other modules. 

I just retried it doing the following:
   1.  place drupal in maintenance mode
   2.  backup the dbs.
   3.  disable all civicrm-related extensions
           remainder is standard drupal
   4.  clear drupal and civicrm caches
   5.  install 4.5.4 code
   6.  Try to go to upgrade url.
             Problem reappears...  redirected to drupal home page
   7.  Clear files/civicrm/templates_c/en_US and  ConfigAndLog/Config.IDS.ini
   8.  Re-clear drupal cache
             Same problem... redirected to drupal home page
   9.  revert code back to 4.4.6
             Site behaves normally.

This is both bizarre and frustrating.   Suggestions anyone?

DaveFF

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 5
  • Developer at Future First
    • Future First
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.34
  • MySQL version: 5.5
  • PHP version: 5.3
Re: upgrade failure from 4.4.6 to 4.5.4
November 24, 2014, 01:00:21 am
Filesystem permissions? When you unpack the new code, does the webserver have read access?
Do Not Contact Until extension: https://civicrm.org/extensions/do-not-contact-until
Organisation Name De-duplicator extension: https://civicrm.org/extensions/organisation-name-de-duplicator

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: upgrade failure from 4.4.6 to 4.5.4
November 24, 2014, 05:04:56 am
What happens when you visit the upgrade URL with 4.4.6?

Or the CiviCRM home page with the 5.5.4 code?
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.

ldgpangeo

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: drupal-7.17
  • MySQL version: 5.5.23
  • PHP version: 5.3.13
Re: upgrade failure from 4.4.6 to 4.5.4
November 24, 2014, 07:13:55 am
File permissions is not the issue.   
   Old site is 0755
   new site is 0755

Unless the site needs to write to the civicrm code directories in the 4.5.4 edition all should be good.

--------------
>  What happens when you visit the upgrade URL with 4.4.6?

It reports that the database is already up to date -- which is the correct result.

> Or the CiviCRM home page with the 5.5.4 code?

the home page appears as expected, but all links fail.  For example. trying to search for a contact throws me back to Drupal home page.   (I'm replying to this one from memory since I can't keep the site broken for very long.  If needed, I can take it offline for further testing later in the day.)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: upgrade failure from 4.4.6 to 4.5.4
November 24, 2014, 07:18:35 am
I think you need to make a dev site to test this upgrade and debug it a bit more to figure out what is breaking it. If search for a contact also goes to the Home page, then hopefully we could debug it and see what's wrong.
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.

jeckblack

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
    • link
  • CiviCRM version: 4.5
  • CMS version: WordPress
  • MySQL version: 4.1
  • PHP version: 5.5
Re: upgrade failure from 4.4.6 to 4.5.4
November 25, 2014, 01:28:11 am
have to make backups any way... :'(
talk off...

ldgpangeo

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: drupal-7.17
  • MySQL version: 5.5.23
  • PHP version: 5.3.13
Re: upgrade failure from 4.4.6 to 4.5.4
November 26, 2014, 06:06:55 pm
To continue the mystery...

I used a sandbox on the same hosting service and upgraded Civi in the sandbox.  Everything went routine with no complications.  The upgraded sandbox site works as expected.

Same steps on same hosting in production still fails as described earlier.   

I've compared the sites/default/...settings.php files (both drupal and civi) and find no differences between the sandbox and production other than the expected database differences.  Looking at the db dumps, I don't see any difference in the database definitions.

I'm running low on ideas...



jrmatson

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4.10
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.32
  • PHP version: 5.3.29
Re: upgrade failure from 4.4.6 to 4.5.4
December 02, 2014, 09:51:57 pm
ldgpangeo,

I'm having exactly the same issue and it has me baffled.

Like you, I created a test site upon which everything worked fine but on my production site any attempt to run the upgrade script sends me back to the /user page of the Drupal site.

I've tried all the same things that you have.

jrmatson

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4.10
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.32
  • PHP version: 5.3.29
Re: upgrade failure from 4.4.6 to 4.5.4
December 02, 2014, 10:03:47 pm
Apologies that my profile info was out of date. It's corrected now.

Any help with this issue would be greatly appreciated.

vipul

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 2.x,3.x-4.x
  • CMS version: Drupal,Joomla
  • MySQL version: 5.1.3
  • PHP version: 5.3
Re: upgrade failure from 4.4.6 to 4.5.4
December 03, 2014, 03:39:21 am
I would suggest you to upgrade your civi step wise
i.e go from 1) 4.4.6 to 4.4.9
          next 2) 4.4.9 to 4.5.0
         lastly 3) 4.5.0 to 4.5.4 has needed.

One more step after upgrading at each level rebuild civicrm menu then move on to next.

jrmatson

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4.10
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.32
  • PHP version: 5.3.29
Re: upgrade failure from 4.4.6 to 4.5.4
December 03, 2014, 01:51:02 pm
At this point I am upgrading from 4.4.3 to 4.4.5 and plan to ultimately move to 4.4.10   As was mentioned earlier this exact approached worked just fine on a test copy of the site.

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

This forum was archived on 2017-11-26.