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
3
votes
1 answer

macOS DDEV drush command Permission denied (Experimental docker settings)

When I updated ddev version 1.19.0 then drush command doesn't work. $ ddev drush OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "/mnt/ddev_config/.global_commands/web/drush": permission denied:…
3
votes
1 answer

Drush status: unrecoverable error caused by drupal_goto() in hook_init()

I have a module with a drupal_goto() that redirects users if they don't pass the age requirements (wine site) in hook_init(). The module is set with a heavier weight so it loads last. On PHP 5.3, drush update fails. The same code and DB on a…
Coder1
  • 13,139
  • 15
  • 59
  • 89
3
votes
3 answers

"drush cache-rebuild" throwing driver not found error

I am getting [error] could not find driver for the command drush cache-rebuild Below is the Drush and Drupal Version Details, Appreciate any help. Thanks
Ramesh
  • 1,384
  • 2
  • 12
  • 19
3
votes
2 answers

How can I step-debug a drush command with ddev and PhpStorm?

I need to debug a drush command in a ddev project, but I don't know how to do it. In ddev v0.18.0, the PhpStorm debugger breaks at the beginning, but it can't find the associated code.
rfay
  • 9,963
  • 1
  • 47
  • 89
3
votes
0 answers

Makefile hangs when docker-compose -d is used and fails with code 129 without -d

for reference, my rule looks like this: aRule: docker-compose exec -d service /bin/bash -c "/path/to/drush -y drush-commmand" On Ubuntu 16.04 and 14.04, if I run a command such as docker-compose exec -d service /bin/bash -c "/path/to/drush -y…
osukhanso
  • 81
  • 3
3
votes
3 answers

Unable to find a matching SQL Class. Drush cannot find your database connection. error

I am new to XAMPP and Drush, Mysql doesnt appear in Drush at all. I have no clue what is going on. When I type mysql, I get the mysql command prompt. But when I try drush status command, I dont see mysql in there. # drush status PHP executable …
lambda8
  • 317
  • 1
  • 4
  • 17
3
votes
1 answer

Segmentation fault when trying to install Drush with Composer

I am trying to install Drush by using $ composer global require drush/drush:8.* through the Git-bash CLI, but I get a segmentation fault error: /c/ProgramData/ComposerSetup/bin/composer: line 18: 10444 Segmentation fault php "${dir}/composer.phar"…
domt
  • 43
  • 1
  • 5
3
votes
0 answers

Drush no longer works after Yosemite upgrade

On Mavericks, upgraded to Acquia DD2 (R Feb 10) and Drupal 7.34 for all sites - everything worked fine including Drush. Then upgraded to Yosemite. Everything works fine except Drush. Error I get is: dyld: Symbol not found:…
charly
  • 31
  • 3
3
votes
2 answers

Drush broke after upgrading to OS X Mavericks

After upgrading to OSX 10.9 (Mavericks) from OSX 10.8 (Mountain Lion), Drush broke. I've MAMP. The error message when I invoke drush: Could not open input file: /usr/lib/php/pear/drush/drush.php I've put the below in .bash_profile export…
Jessica K
  • 137
  • 7
3
votes
2 answers

How to access a private github repository from Aegir through Drush Make on AWS

I have an ec2 instance running on AWS. Aegir installed and drush make works perfect for installing new platforms except when I need to download a theme from a private github repository. drush make doesn't have access to the github private…
Jeremy Iglehart
  • 4,281
  • 5
  • 25
  • 38
3
votes
1 answer

Cron fails when running through Drush, and calling node_load()

I have a Drupal 6 site and I have a custom module that performs some maintenance operations on certain nodes when cron is run. My code is very simply: function mymodule_cron() { // get all the nodes that need maintenance $result =…
seismicmike
  • 103
  • 1
  • 9
2
votes
3 answers

Drush commands not executing using Paramiko

I've followed the steps here http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/ to connect to my server with ssh via Python. I can connect fine and send commands. When I run stderr.readlines(), however, it shows me…
Mike Ryan
  • 2,359
  • 2
  • 17
  • 24
2
votes
1 answer

Unknown Drush version on acquia-cli using ddev 1.21.3

The ddev pull command fails when configured to pull from Acquia environments. Only the current version of ddev 1.21.3 is affected. Older versions like 1.21.1 or 1.19.5 are not affected.s The error message: ❯ ddev pull acquia --skip-files You're…
JamesWilson
  • 3,833
  • 2
  • 30
  • 40
2
votes
2 answers

How do I update Drupal 9 from ssh command line on OVH server?

I installed Drupal in one click on a OVH server. First bad surprise: I discovered that the installed version 9.1.9 needs a security update to 9.2.9. Second bad surprise: drush was not installed by default. So I had to install first composer in order…
Pierre François
  • 5,850
  • 1
  • 17
  • 38
2
votes
1 answer

Why despite "drush" being installed via `composer global install` during image build, I cannot find the tool from within a running PHP script?

I am developing a PHP web application inside of a Docker container. Using volumes: inside of my docker-compose.yml file, I have specified a local directory so that any files generated are dumped and persist after the container is…
user658182
  • 2,148
  • 5
  • 21
  • 36
1 2
3
23 24