Closed (fixed)
Project:
Drush
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2009 at 22:56 UTC
Updated:
3 May 2010 at 21:22 UTC
my brand new default drupal install is throwing this error from drush. when i visit the site with my browser, logged in or not, i get the normal default drupal page, not the site off-line message that it's outputting below...
$ drush update
Refreshing update status information ...
Done.
Update information last refreshed: Mon, 08/17/2009 - 18:54
Update status information on all installed and enabled Drupal modules:
Name Installed version Proposed version Status
Drupal 6.13 6.13 Up to date
No code updates available. [ok]
Drush command could not be completed. [error]
<!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" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/misc/favicon.ico" type="image/x-icon" />
<title>Site off-line | Drupal</title>
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/maintenance.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/themes/garland/style.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/themes/garland/minnelli/minnelli.css?0" />
<link type="text/css" rel="stylesheet" media="print" href="/themes/garland/print.css?0" />
<!--[if lt IE 7]>
<link type="text/css" rel="stylesheet" media="all" href="/themes/garland/fix-ie.css" /> <![endif]-->
</head>
<body>
<!-- Layout -->
<div id="header-region" class="clear-block"></div>
<div id="wrapper">
<div id="container" class="clear-block">
<div id="header">
<div id="logo-floater">
<h1><a href="/" title="Drupal"><img src="/themes/garland/minnelli/logo.png" alt="Drupal" id="logo" /><span>Drupal</span></a></h1> </div>
</div> <!-- /header -->
<div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
<h2>Site off-line</h2> <div class="clear-block">
<p>The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.</p><hr /><p><small>If you are the maintainer of this site, please check your database settings in the <code>settings.phpfile and ensure that your hosting provider's database server is running. For more help, see the handbook, or contact your hosting provider.
An error occurred at function : drush_pm_post_update
Comments
Comment #1
jrefano commentedrealized debug dump would be more useful. also: default drupal 6.13 install. using MAMP w/ MAMP PRO restored to factory settings.
Comment #2
jrefano commentedI did some digging through the drush code and the script is failing in line 621 of environment.inc:
Does that help?
Comment #3
jrefano commentedFound the issue, which ended up being a local config thing.
My path needed to be updated so that drush was using the php that comes with MAMP (/Applications/MAMP/bin/php5/bin/php) instead of the one that comes with OSX (/usr/bin/php).
Doh.
Comment #4
ivansf commentedIt indeed works if I use /usr/bin/php instead of the one that comes with MAMP but then it can't connect to the database.
Comment #6
xjmI'm having the same problem as in #4 above.
* Mac OS 10.6
* Apache and PHP recompiled from source to use PHP 5.2.10
* MySQL and so on installed via macports as per http://drewish.com/node/110
My site works fine (no problems with database connectivity); it's just drush commands that fail with this error.
I don't think this is a bug in Drush; it seems like it's probably a missing configuration somewhere, but I am not sure what.
Edit: I opened a new issue for this: #726970: Drush bootstrap problem on OS X 10.6
Comment #8
aangel commentedThis (crossed-out) issue above has a solution when upgrading to MAMP/MAMP PRO 1.9...drush finds the wrong php.
http://drupal.org/node/726970#comment-2914148