Report this

What is the reason for this report?

Error using Drush with new Drupal installation of Drupal 8

Posted on December 30, 2016

I created a new server with Drupal 8 preinstalled. It already had Drush installed but whenever I run drush with a command in the working drupal directory I get the following error:

Command needs a higher bootstrap level to run-- you will need ot invoke drush from a more functional Drupal enviroment ot run this command.

I haven’t been able to get drush to work at all with this Drupal 8 install. I have used Drush regularly on Drupal 7 install with no problems.

Full message below: Command pm-update needs a higher bootstrap level to run - you will [error] need to invoke drush from a more functional Drupal environment to run this 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.

Drush was attempting to connect to: Drupal version : 8.2.4 Site URI : http://default Database driver : mysql Database hostname : 127.0.0.1 Database port : Database username : drupal Database name : drupal PHP configuration : /etc/php5/cli/php.ini PHP OS : Linux Drush script : /usr/local/bin/drush Drush version : 8.1.2 Drush temp directory : /tmp Drush configuration : Drush alias files : Drupal root : /var/www/html/drupal Drupal Settings File : sites/default/settings.php Site path : sites/default Sync config path : sites/default/files/config_zHcDrPgGJYeXy 3dKR7o7v4Wq1ri3InXTfQqf-Esa47nOYgxjayXJ9 AMLKafTtmgdzS-JkIJ_Ow/sync

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.