[Hidden-tech] Drupal question

David Korpiewski davidk at cs.umass.edu
Thu Feb 25 11:00:33 EST 2016


I have a two drupal 7 sites, one is a devel site that I use git to 
update the main site.   On the devel site drush works fine for updating 
the core:

drush @site pm-update

works fine

However when I try to update the master site, the pm-update can't 
"bootstrap" the database even though the site works fine.  (which means 
the settings.php file is fine)

*drush @site pm-update**
**Command pm-update needs a higher bootstrap level to run - you will 
need to invoke drush from a more functional Drupal environment to run 
this       [error]**
**command.**
**The drush command 'pm-update' could not be executed. [error]**
**Drush was not able to start (bootstrap) the Drupal database. [error]**
**Hint: This may occur when Drush is trying to:**
** * bootstrap a site that has not been installed or does not have a 
configured database. In this case you can select another site with a 
working**
**database setup by specifying the URI to use with the --uri parameter 
on the command line. See `drush topic docs-aliases` for details.**
** * connect the database through a socket. The socket file may be wrong 
or the php-cli may have no access to it in a jailed shell. See**
**http://drupal.org/node/1428638 for details.*

I have even gone so far as to exclusively put the database information 
into the aliases.drushrc.php file and still it gives me this error.

Any ideas why I can't bootstrap this database even though everything 
appears to be in complete order?

my aliases entry (with key information changed):
$aliases['site'] = array(
     'uri' => 'mysite.edu',
     'root' => '/usr/local/net/www/httpd/web/drupal7',
     'databases' =>
      array (
      'default' =>
       array(
       'default' =>
        array(
         'database' => 'dbforsite',
         'username' => 'usernameforsite',
         'password' => 'password',
         'host' => 'localhost',
         'port' => '',
         'driver' => 'mysql',
         'prefix' => '',
       ),
      ),
     ),
   );

Thank you in advance!
David


-- 

*David Korpiewski*
Software Specialist I
CSCF - Computer Science Computing Facility
University of Massachusetts Amherst
413-545-4319

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.hidden-tech.net/pipermail/hidden-discuss/attachments/20160225/d79036a4/attachment.html 


Google

More information about the Hidden-discuss mailing list