Questions tagged [drush]

Use it for questions about the command line shell and Unix scripting interface for Drupal (a.k.a. Drush).

405 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
1k views

How to fix drush issue “Could not bootstrap at phase 5”?

I installed drush via Composer. I am using drush 9.5.2 with Drupal 8.6.4. I mention that everything is fine on local. However, in a docker instance in GitLab CI, when I execute vendor/bin/drush ...
0
votes
0answers
38 views

Do we need any init steps in this scenario?

In Order to install Drupal Core using Code deploy, I follow these steps. Download drupal-7.x.zip /usr/bin/unzip -o /tmp/drupal.zip /bin/mv /var/www/drupal-7.x /var/www/drupal Similar steps to ...
0
votes
1answer
51 views

Drush Feature Update removing t() and l() function usages

I have a feature that currently has things like this: 'body' => '<h3>' . t('Welcome back') . '<span class="fname">%user:field_first_name</span>!</h3>', However, using ...
0
votes
1answer
45 views

drush language importing untranslated strings

I am having 2 environments. A staging and a production one. I want all string to sync the strings, so that whenever a new string comes to staging it is available for translation in production. For ...
0
votes
0answers
87 views

How to set drush alias for remote site behind jump server?

Drupal 8 site (8.5.3) with drush 8 (8.1.16) both equal on local and remote. Connection to remote is through jump server - log in to jump (ssh -L 2004:remote.com:22 -l username jump.server.com), in ...
0
votes
1answer
270 views

sql:sync not working

I'm using drush 9 on a remote server and I'm trying to perform a sql:sync. This is my alias: live: host: www.mysite.com paths: drush-script: '/home/wodby/drush-wrapper.sh' files: files ...
0
votes
1answer
113 views

Drush command from contrib module not recognized

I have installed a new module called S3fs using Composer. When I try to execute /root/.composer/vendor/bin/drush drush_s3fs_copy_local, it shows the following error. Command "drush_s3fs_copy_local" ...
0
votes
0answers
192 views

Error on drush command: In ThemeHandler.php The theme does not exist

I manage to broke the default theme in development and now could not access the administration interface nor could I change the theme via drush. The way I broke the default theme is by changing the ...
0
votes
2answers
71 views

'drush' is appended to each path breaking its commands

I don't normally use Drush on Windows, but tried it and noticed that it appends drush as a kind of root directory for any action, thus breaking said action. For example, drush dd gives: The ...
0
votes
0answers
93 views

Drush 9 colors does not work

I have the following Drush command: /** * @command mycommand */ public function myCommand() { $this->io()->success('MY TEST'); } If I type in CLI: drush mycommand -> Formatted,...
0
votes
1answer
149 views

Drush upwd Changes Database Hash but Login Fails

I have a weird one. I have a site that was abandoned for a while and we need to get access to it again. So I tried to use drush to reset the admin password, but it's not working. I'm using Drush 8.1....
0
votes
1answer
10 views

Drush hangs out on dl commerce_kickstart

in recent days new version of Commerce Kickstart 2 was introduced (v2.55). I tried upgrading my current installation (v2.54) using drush: drush --debug dl commerce_kickstart unfortunately after this ...
0
votes
1answer
258 views

Drush not connecting to site's settings.php

When I run drush --debug status in the docroot of my Drupal site, I get the following message: [user@computer]$ drush --debug status Phar detected. Proceeding to drush_main(). Loading drushrc "/home/...
0
votes
1answer
321 views

How to pipe output of “drush sql-dump” without warnings

When I do: drush sql-dump > somewhere/database.sql if there will be any warnings printed by Drush, they will be included at the beginning of the created database.sql file. Can we avoid it somehow? ...
0
votes
1answer
38 views

CSV Article Migration giving random errors

I've been working on a personal test site for a while and wanted to set up another one for someone else. This just involves running a migration to import all the articles from a CSV file. It's worked ...
0
votes
1answer
103 views

How to use drush locally with Acquia Dev Desktop2 and upgrade core

I just a new project in Drupal 8 and it's hosted on Acquias cloud using Dev Desktop 2 (DD later on). Now the project is working fine, but i can't use drush at all, as the settings.php is generated by ...
0
votes
1answer
68 views

Drush tries to export config for modules I deleted months ago

I'm using Drush 9.3 and when I export config it wants to create config files for modules that have been gone for months. One of those is plupload which is nice because it's easy to search the code ...
0
votes
0answers
1k views

Drush commands failing with remote database and no local MySQL

I am attempting to run cron via crontab on a server that has a remote database, as such there is no mysql isntance installed locally. When attempting to run the command drush core-cron i received the ...
0
votes
0answers
283 views

Composer Drush installation issue

I'm setting up multiple drush folders to run for older versions of Drupal. I run composer require "drush/drush:dev-master" and I get this error: [InvalidArgumentException] Package drush/drush at ...
0
votes
1answer
21 views

urol executed via bash throws exception error if role has a space in it

Role name "teaching assistant" command executed is: drush @comply-all urol "teaching assistant" sdf --y if I copy and paste this it works fine. if the following command is called from a bash script ...
0
votes
0answers
311 views

Drush site aliases empty within project folder but showing out of the project

I've got a project that was built using drupal composer project and have a number of drush alias files that site in ~/.drush/sites. Using a globally installed drush, it appears to pick up the site ...
0
votes
0answers
250 views

Drush silently fails to update core drupal 7 installation - why?

For some reason, drush is reporting successful upgrade of a core Drupal installation from version 7.56 to 7.58, however it is only partially doing the job! See below. Only updates a few files, should ...
0
votes
1answer
31 views

Custom Module Remote Fails Checksum with Drush

Background I have several proprietary Drupal modules that my company uses. We want to update these across all our sites. To that end, I've built an endpoint that produces code according to the (ill-...
0
votes
1answer
58 views

Synchronize with only published nodes

We are going to have a "staging" server where all edits will be made. We are going to push to the cloud production server with Drush sync. I know there is a way to exclude tables, but is there a way ...
0
votes
1answer
229 views

“drush cron” doesn't work anymore after moving the site to a new server

After moving a site to a new server, drush cron stopped working and now I am getting the following error: [Symfony\Component\Console\Exception\CommandNotFound] Command "cron" is not defined. ...
0
votes
1answer
73 views

Can't install drush8, having drush6

I installed drush, and when I do "drush status" it says that my drush version is 6.6.0. I want to have drush7 instead, so I downloaded it from github, and did following commands: chmod +x drush.phar ...
0
votes
1answer
267 views

How to manage multiple drupal 7/8 sites with multiple drush versions

We manage a bunch of Drupal 7 sites and a few Drupal 8 sites. I have been trying to workout the change to Drush 9 on the Drupal 8 sites and I have hit a roadblock. For some reason when I try to use a ...
0
votes
1answer
40 views

Change target site

I installed Drupal 7 manually and later installed Drush 5. That works fine. When I use command drush config it shows the path to my site. Now I have installed a second instance of Drupal 7 in another ...
0
votes
0answers
111 views

Drush sql-drop gives “No Tables” error

I use Site-Install to quickly setup a Drupal Site for Profile Installation Development, but I use phpMyAdmin to drop the database. I figured I might as well use Drush since it would properly be faster ...
0
votes
1answer
34 views

Migrating a site with a module that doesn't have a version for latest core version

I'm working on migrating a site from Drupal 7 to Drupal 8. All content and other things are migrated successfully excepts a module (the Field collection module) that is available for Drupal 7, but not ...
0
votes
0answers
1k views

Could not open input file: drush.php

I have installed drush usnig composer by using following command in my windows 10 machine: composer global require drush/drush After that if I run below command in my drupal project folder using ...
0
votes
0answers
590 views

drush sql-sync: “The external command could not be executed due to an application error.”

When I execute drush sql-sync @production @local -d to get a database from the server to local, I get the following error after login with ssh: The external command could not be executed due to an ...
0
votes
1answer
127 views

Moving drush installed directory to production site?

I am installing Open Social on Drupal 8 on my own Ubuntu Linux instance with Nginx, MySQL and PHP 7. Got the "Quick install" instructions using composer and drush completed successfully. As a ...
0
votes
1answer
205 views

Drush 8x working from directories above web root, but not in web root

I need some help trouble shooting Drush. I'm on a shared server, Hostgator, running Linux and PHP 5.6.3. My install looks something like home/public_html/websites/MyDrupal I have installed Composer ...
0
votes
0answers
364 views

How to configure Drush launcher on mac sierra?

I´ve installed drush on my mac sierra following the instructions from http://docs.drush.org/en/master/install/ but when i try run a command drush, this indicate the next instruction: The Drush ...
0
votes
0answers
494 views

Command “webform-libraries-download” is not defined

Suddenly the command in the title decided to stop working. [Symfony\Component\Console\Exception\CommandNotFoundException] Command "webform-libraries-download" is not defined. I'm on Drupal 8.4.2 ...
0
votes
1answer
88 views

Drush cannot rr or en a module

I have a Drupal 7 dev-site hosted on pantheon. Using git bash and composer I installed drush on my windows 10 machine and I thought I did so globally. When I run composer --version and drush status I ...
0
votes
1answer
865 views

Drush command terminated abnormally

I'm using https://github.com/drupal-composer/drupal-project and get an error when starting drush: [~/public_html/drupal]# alias drush="~/.composer/vendor/bin/drush" [~/public_html/drupal]# drush [...
0
votes
0answers
169 views

Update breaks Drush

When running composer update on the latest Drupal 8.4 rc1 Drush breaks. I get the following error: \Drush\Drupal\Commands\core\Array is not a valid Fqsen. What do I need to do?
0
votes
0answers
447 views

Drush update using composer STUCK

I included drush in the composer.json file, when I try to run any drush command, an error comes up saying drush must be version 8 to work and the current version is 7. when I run composer update OR ...
0
votes
2answers
555 views

Cannot install core in the root of site

I am going absolutely insane. I have been up for several hours scouring the internet, installing, removing, installing, removing, and I CANNOT get Drupal (7 or 8) to install at the root of a site (...
0
votes
1answer
235 views

Updated drush, but status shows old version

I have a D7 site running in a Vagrant VM. I was getting the following error when attempting to run drush updb from the site folder: Command updatedb needs a higher bootstrap level to run - you ...
0
votes
1answer
35 views

Module(s) doesn't enable properly with Drush

I have installed Acquia's DevDesktop 2 to create local sites and while testing D8.3.6 I have found an interesting issue. When I enable various modules with drush (drush en paragraphs (example)) drush ...
0
votes
0answers
49 views

delete all drush installations

I've built a Drupal 8 site without using Drush because I was couldn't figure out how to uninstall, or upgrade, the 5.7-drush on my computer. I can't remember which method I installed Drush by in the ...
0
votes
0answers
442 views

Drupal Commerce 2 Installation

I tried to install drupal commerce using following command as described in http://docs.drupalcommerce.org/v2/getting-started/install.html composer create-project drupalcommerce/project-base mystore --...
0
votes
0answers
110 views

Drush command with Url::fromRoute PHP Fatal error: Allowed memory size of

If i create a custom drush command than run a method than exec a loop than 2000 items. For each item i call a Url::fromRoute method: $url = Url::fromRoute('route.custom', [ 't' => 'text, ...
0
votes
1answer
51 views

Drush Installation

I have a Drupal 8 site that was installed manually. I would like to install Drush to ease Core Updates/etc. Is there anything that I need be concerned about doing this, since the site wasn't ...
0
votes
1answer
24 views

Drush set block setting only working for one value

If I disable the powered by block, and use drush to enable it, the block shows back up again. I use: root@vagrant-ubuntu-trusty-64:/var/www/drupal# drush config-get block.block.bootstrap_powered ...
0
votes
3answers
24 views

Find the password for user admin from a replicated old version of site

I have access to a copy of an old version of a production site on a dev server, but the owner of the website on prod has lost his credentials to admin and doesn't know his ssh login credentials. The ...
0
votes
1answer
1k views

“PHP Fatal error: Call to undefined method Consolidation\AnnotatedCommand\Hooks\HookManager::getHookOptions()”

I just installed drush using "composer require drush/drush". It ran correctly and when it completes a navigate to vendor/drush/drush/ directory where the drush.php file is located Then I run the ...

1
5
6
7 8 9