I have two separate Drupal sites (not multisite, separate full installations) on the same server, and one has no problem running drush commands, but the other one fails everytime with the HTML output of a Site off-line page that has a "due to technical problems" error message.


For the working site drush --verbose --debug status outputs:

Found command: core-status (commandfile=core) [0.05 sec, 3.8 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.05 sec, 3.81 MB] [bootstrap]
Initialized Drupal 6.17 root directory at /var/www/springboard.jacksonriverdev.com/public [0.06 sec, 4.6 MB] [notice]
Drupal version         :  6.17                                            
Default theme          :  garland                                         
Administration theme   :  garland                                         
PHP configuration      :  /etc/php.ini                                    
Drush version          :  3.1                                             
Drush configuration    :                                                  
Drupal root            :  /var/www/springboard.jacksonriverdev.com/public 

Command dispatch complete [0.06 sec, 4.59 MB] [notice]
Peak memory usage was 4.65 MB [0.06 sec, 4.59 MB]


For the non-working site drush --verbose --debug status outputs:

Found command: core-status (commandfile=core) [0.05 sec, 3.8 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.05 sec, 3.81 MB] [bootstrap]
Initialized Drupal 6.17 root directory at /var/www/bqo/httpdocs [0.06 sec, 4.62 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.06 sec, 4.62 MB] [bootstrap]
Initialized Drupal site default at sites/default [0.06 sec, 4.62 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.07 sec, 4.62 MB] [bootstrap]
PDO support available, but the mysql driver has not been installed. Assuming success. [0.07 sec, 4.63 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.07 sec, 4.63 MB] [bootstrap]
Successfully connected to the Drupal database. [0.07 sec, 4.63 MB] [bootstrap]
Function ereg() is deprecated file.inc:926 [0.09 sec, 7.19 MB] [notice]
Cannot modify header information - headers already sent by (output started at /usr/local/share/drush/includes/drush.inc:812) common.inc:148 [0.19 sec, 8.48 MB] [warning]
<!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">
...
</html>
Drush command could not be completed. [0.19 sec, 8.5 MB]


It seems to me that Drush is doing a full bootstrap instead of the short, one-function bootstrap that it does on the other site (which works properly). I have no idea how to troubleshoot this.


php -v outputs:

PHP 5.3.2 (cli) (built: Mar  5 2010 15:31:46) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies


Here's the output of drush up from my local instance to see what modules are installed:

Admin                           6.x-2.0-beta4      6.x-2.0-beta4     Up to date 
Admin Role                      6.x-1.2            6.x-1.2           Up to date 
Advanced help                   6.x-1.2            6.x-1.2           Up to date 
Backup and Migrate              6.x-2.2            6.x-2.2           Up to date 
Better Formats                  6.x-1.2            6.x-1.2           Up to date 
Drupal                          6.17               6.17              Up to date 
Boxes                           6.x-1.0-beta9      6.x-1.0-beta9     Up to date 
Check Heavy UI                  6.x-1.x-dev        6.x-1.x-dev       Up to date 
Checkbox Validate               6.x-2.1            6.x-2.1           Up to date 
Content Construction Kit (CCK)  6.x-2.7            6.x-2.7           Up to date 
Context                         6.x-3.0-beta5      6.x-3.0-beta5     Up to date 
Chaos tool suite                6.x-1.6            6.x-1.6           Up to date 
Date                            6.x-2.4            6.x-2.4           Up to date 
Devel                           6.x-1.20           6.x-1.20          Up to date 
Favicon                         6.x-1.0            6.x-1.0           Up to date 
Features extra                  6.x-1.x-dev        6.x-1.x-dev       Up to date 
Features                        6.x-1.0-beta8      6.x-1.0-beta8     Up to date 
FileField                       6.x-3.5            6.x-3.5           Up to date 
ImageAPI                        6.x-1.8            6.x-1.8           Up to date 
ImageCache                      6.x-2.0-beta10     6.x-2.0-beta10    Up to date 
ImageField                      6.x-3.3            6.x-3.3           Up to date 
jQuery UI                       6.x-1.3            6.x-1.3           Up to date 
Link                            6.x-2.9            6.x-2.9           Up to date 
LoginToboggan                   6.x-1.7            6.x-1.7           Up to date 
Nodequeue                       6.x-2.9            6.x-2.9           Up to date 
Node Reference URL Widget       6.x-1.6            6.x-1.6           Up to date 
Nodewords                       6.x-1.11           6.x-1.11          Up to date 
One page profile                6.x-1.9            6.x-1.9           Up to date 
Pathauto                        6.x-1.3            6.x-1.3           Up to date 
Profile permission              6.x-1.1            6.x-1.1           Up to date 
Reverse Node Reference          6.x-1.x-dev        6.x-1.x-dev       Up to date 
Semantic Views                  6.x-1.1            6.x-1.1           Up to date 
Strongarm                       6.x-2.0-rc1        6.x-2.0-rc1       Up to date 
Token                           6.x-1.13           6.x-1.13          Up to date 
Token Profile                   6.x-1.x-dev        6.x-1.x-dev       Up to date 
Transliteration                 6.x-2.1            6.x-2.1           Up to date 
URL Fill                        6.x-1.0            6.x-1.0           Up to date 
Vertical Tabs                   6.x-1.0-rc1        6.x-1.0-rc1       Up to date 
Views                           6.x-2.11           6.x-2.11          Up to date 
Views attach                    6.x-2.2            6.x-2.2           Up to date 
Views Group By                  6.x-1.0-rc2        6.x-1.0-rc2       Up to date 
Views Or                        6.x-1.x-dev        6.x-1.x-dev       Up to date 
Wysiwyg                         6.x-2.1            6.x-2.1           Up to date

Thanks for any and all help.

Comments

Korchkidu’s picture

I have the exact same problem. I am working on Windows.

Any help would be great.

Regards.

Korchkidu’s picture

Anyone has an idea of what we did wrong? Any help, comment, suggestion would be greatly appreciated.

Regards.
K.

Morgenstern’s picture

The same problem over here.
I'm also running Drupal on a Zend Environment / Ubuntu. Can this be the problem?

Korchkidu’s picture

Please, anyone has an idea? I am stuck with this and I really want/need to use Drush.

Thanks for any help.
Best regards.

jonhattan’s picture

Status: Active » Fixed

@drkdn the working site does not do a bootstrap to the site because it is in a subdirectory distinct to sites/default and you're not providing -l option.

the non-working site found sites/default/settings.php and I guess it 's a pristine copy of default.settings.php and the site has not been installed yet. So the $db_url may be not valid. Reopen if the non-working was already installed and the problem persist with drush 4.

Aditionally, this debug message is also present:

PDO support available, but the mysql driver has not been installed. Assuming success. [0.07 sec, 4.63 MB] [bootstrap]

I don't think the problem is around this because you said you have other drupal working in the same machine.

Lets also say in drush 4 we no longer assume success in that bootstrap phase. So the source of the error can be identified more easily.

@Korchkidu and @Morgenstern. Your problems may not be related to this. Try with drush 4 and open new issues with the command you are running and the output of --debug if you still have problems.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.