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) »
  • Cannot run upgrade script, keep getting site under maintenance message
Pages: [1]

Author Topic: Cannot run upgrade script, keep getting site under maintenance message  (Read 557 times)

firstglance

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.15
  • MySQL version: 5.x
  • PHP version: 5.x
Cannot run upgrade script, keep getting site under maintenance message
May 23, 2014, 09:19:37 pm
when i go to the link to upgrade (using clean urls but tried both), i get the maintenance message.  i do have a themed page, but i didn't do it.  there is no maintenance-page.tpl.php file in our theme folder.  i've just upgraded drupal to the latest version 7.28.  now trying to take civicrm from 4.3.3 to 4.4.5.  i've tried copying a couple different maintenance-page.tpl.php files into our theme directory to no avail.  i've cleared the cache occasionally.  for some reason the update page is not running on top of the maintenance page.  should i take the site out of maintenance and try it?  is the themed maintenance page the issue here?  any tips on temporary changing it back to the default as suggested in the upgrade manual?  thanks in advance. 

firstglance

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.15
  • MySQL version: 5.x
  • PHP version: 5.x
Re: Cannot run upgrade script, keep getting site under maintenance message
May 24, 2014, 05:19:38 am
i even tried setting the theme back to the default and could not get it to work.  i'm thinking it really has nothing to do with the theme.

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Cannot run upgrade script, keep getting site under maintenance message
May 24, 2014, 04:28:19 pm
Are you sure you're logged in? If you visit /user you should be able to log in as an admin and bypass the maintenance warning?

If you're having trouble accessing your site via the web, Drush may give you command-line access. (You'll need to be comfortable on the commandline for that, but it's good to be able to bypass the web interface sometimes.)
@xurizaemon ● www.fuzion.co.nz

firstglance

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.15
  • MySQL version: 5.x
  • PHP version: 5.x
Re: Cannot run upgrade script, keep getting site under maintenance message
May 24, 2014, 07:40:03 pm
pretty sure i was logged in cause i could get to the configuration areas.  i don't think i would be able to otherwise.  i'm fairly comfortable on command line.  i did the whole install in ssh.  don't have time to try again for a while.  just wanted to see if anyone else had this issue and what they did to get it to work.

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Cannot run upgrade script, keep getting site under maintenance message
May 24, 2014, 08:19:55 pm
To run DB updates without maintenance page, you can use Drush:

Code: [Select]
drush updatedb - Apply any database updates required (as with running update.php).

Code: [Select]
drush civicrm-upgrade-db - Execute the civicrm/upgrade?reset=1 process from the command line.

NB: CiviCRM often throws a lot of errors about filesystem permissions when doing updates via Drush (we should probably make it not save templates to templates_c when in Drush?). You may need to chmod the CiviCRM disk cache so you can write to it, and chown it back to www-data (or equivalent) when finished.
@xurizaemon ● www.fuzion.co.nz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Cannot run upgrade script, keep getting site under maintenance message

This forum was archived on 2017-11-26.