My site is configured perfectly fine, and yet when I run drush head with the verbose flag I get these errors:

Drush bootstrap phase : _drush_bootstrap_drupal_root()                                                                          [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_site()                                                                          [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration()                                                                 [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database()                                                                      [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full()                                                                          [bootstrap]
Drush was not able to start (bootstrap) Drupal.                                                                                 [error]

Hint: This error can only occur once the database connection has already been succesfully initiated, therefor this error
generally points to a site configuration issue, and not a problem connecting to the database.

Then it lists my drupal root and database name and so forth - all of which are correct in the listing. Makes no difference which folder I run drush from, or the command line options (-l -r) or drushrc.php options.

Comments

dugh’s picture

Status: Active » Closed (fixed)

It's working now, I was just using 'drush pm install modulename' which apparently now no longer works.

'drush dl modulename' is how it works now.

I uninstalled drush_extras

adrian’s picture

Status: Closed (fixed) » Active

Do you still have the drush_extras module or an old version of drush 1.x in the directory.

It gets a namespace collision since the old functions are loaded too.

warmnoise’s picture

I was just investigating an issue with drush_extras on another thread in drush issues.

Just to confirm, it is no longer necessary to use the drush_extras project when using drush HEAD? I guess it was not totally apparent that drush pm was deprecated.

adrian’s picture

Status: Active » Fixed

Remove drush_extras wherever you find it. it will cause namespace conflicts if loaded alongside drush.

all that code has been integrated back into drush.

moshe weitzman’s picture

and don't put drush anywhere within your drupal site. delete any old copies you have in sites/all/modules or elsewhere.

Status: Fixed » Closed (fixed)

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