Questions tagged [drush]

drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

See http://drush.ws, the homepage for the drush project. It contains many important resources for drush users.

[A list of modules that include Drush integration.][3]

(drush is not a module)

[3]: http://A list of modules that include Drush integration.

346 questions
1
vote
2 answers

Cannot update Drupal 9 db and locale with Drush 10

I'm using drush locally without any problems, but on my hosting there is an error with locale and db update. I checked so many things and nothing. Strange is that commands like config import/export, sql:dump, drush status works fine, and there is a…
Daimos
  • 1,473
  • 10
  • 28
1
vote
0 answers

Exception: In BootstrapHook.php line 32, how can I consistently resolve this?

My build process is (mostly working), but sometimes when I swap out to a new project, I am winding up with an error which looks like the output below. I have found this error message extremely unhelpful in sorting out what my underlying issue might…
Hugh Esco
  • 67
  • 1
  • 6
1
vote
1 answer

Connection refused when trying to use drush migrate-upgrade with DDEV (Drupal 7 to 8 upgrade)

I'm trying to use DDEV to locally test an upgrade of my running clubs's Drubal 7 website. I've got one container with a copy of the website, result below is from the DDEV describe command: URLs ---- https://drupalTest.ddev.site:8003 …
Mark
  • 75
  • 1
  • 7
1
vote
0 answers

Memory size exhausted when I try to run drush cr

When I try to run drush cache-rebuild it show below error: PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in /usr/local/src/drush/vendor/composer/autoload_static.php on line 4129 I already set to…
Tony
  • 31
  • 3
1
vote
1 answer

Changing interpreter bash script

Is there any way for changing the interpreter in the middle of a bash script For instance start with: #!/bin/bash Later change to: #!$drush_location The reason is because I want to use bash to resolve the location of drush using bash and then pass…
Botto
  • 1,188
  • 4
  • 16
  • 29
1
vote
2 answers

parallel calls to menu_rebuild after drush updatedb

Anyone have any idea why multiple calls to menu_rebuild could be made after the site comes up after a successful drush database update? Before I jump down the rabbit hole? UPDATE: To clarify I am using Pressflow. Specifically when we run an update,…
buddhamagnet
  • 230
  • 2
  • 11
1
vote
0 answers

How to create custom drush command in 8.7?

I just tried this tutorial and it's not working. Could anybody knows or can find a drupal 8 drush 9 custom command tutotial or something? Please! https://www.droptica.com/blog/creating-custom-drush-9-commands-drupal-8/
Ming Fang
  • 11
  • 3
1
vote
0 answers

Codeship build failing attempting to install drush

We are using CodeShip to deploy our Drupal project to our staging and production servers but recently ran into a weird error that I can't quite figure out. After codeship clones our repo, it attempts to download drush (in the Test Setup Commands)…
BlondeSwan
  • 772
  • 5
  • 26
1
vote
0 answers

Is it risky to use drush command in your custom module?

I want to run SQL query using drush sqlq command in my custom module and want to export data in a csv file. drush sqlq “select nid, title from node_field_data” > test.csv This is working fine but is it risky to use on live project? Or can it be a…
Arti Singh
  • 906
  • 1
  • 6
  • 21
1
vote
0 answers

Unable to locate package drush

hello everyone i am trying to install drush on my local system Ubuntu , but i get this error every time E: "Unable to locate package drush" can anyone help me please to solve this problem
love coding
  • 59
  • 1
  • 1
  • 4
1
vote
2 answers

How to fix error "drush - command not found" for drupal8?

I Installed drush8 via composer for drupal 8. I have updated .bashsrc file with export PATH="$HOME/.composer/vendor/bin:$PATH". But still when I try to execute drush command, terminal is showing "command not found"
Max28
  • 11
  • 1
  • 3
1
vote
1 answer

Composer update fails with "drush/drush 9.6.0 requires symfony/yaml ^3.4 -> satisfiable by symfony/yaml[3.4.x-dev]"

I have a custom installation of Drupal that is managed by Composer. I executed composer outdated That displayed some outdated packages. (see below) I picked symfony/yaml and executed composer require symfony/yaml My question is this: How do I…
sea26.2
  • 376
  • 1
  • 5
  • 23
1
vote
1 answer

Vendor folder missing after using brew to install Composer

I am trying to install Composer and Drush on my Mac for my Drupal website, but am running into an issue whenever I try to actually run a Drush command. I followed these instructions to download and install composer and Drush, however, when I go to…
BlondeSwan
  • 772
  • 5
  • 26
1
vote
0 answers

Cannot update: “Failed to get available update data.”

I cannot update some of the modules and the Drupal core itself from the "Available Updates" menu. The error is "Failed to get available update data. ".
Zahid Hussain
  • 981
  • 2
  • 13
  • 28
1
vote
2 answers

Updating Drupal Core Using Drush Says It Updated Successfully But Does Not?

I am trying to update a clients Drupal site using Drush from 7.64 to 7.67. I go into my project folder using puTTy and run these commands: drush vset --exact maintenance_mode 1 drush cache-clear all drush pm-update drupal drush vset --exact…
user9664977
  • 789
  • 2
  • 15
  • 28