Questions tagged [drush]

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

371 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
23 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
47 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
122 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
57 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
1answer
29 views

Why is “drush make” installing a library in /sites/all/libraries instead of /libraries?

I am trying to allow prospective users to demo my module on simplytest.me, however, it requires an external javascript library. I recently created a drush make file for the D7 version of this module, ...
0
votes
0answers
253 views

This import is empty and if applied would delete all of your configurations

Customer bought a theme that has Commerce plugin installed with sample data. Anxious to get running and try out the new configuration system, I did what I do prior to Drupal 8.6. Commit everything but ...
0
votes
1answer
275 views

How to check for differences in config

Is there any way to check for differences with config in Drush? I checked the list of drush 8 config commands and I couldn't find anything. The reason I need this is that I have a site that runs ...
0
votes
0answers
137 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
55 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
1answer
92 views

How to set a multi line value from drush vset

I was trying to add a value to the drupal antibot antibot_form_ids variable. drush vget antibot_form_ids returns a string separated by /r/n Adding just a value to this string isn't just enough. If ...
0
votes
0answers
53 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
74 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
103 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
0answers
297 views

Drush installation problem on windows 10

I have problems running Drush on windows 10 with aquia desktop. The problem. I have folder structure c:\www\arlande.nl c:\www\itjobcoach Going into arlande.nl\web running drush is good : report is: ...
0
votes
1answer
185 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
2answers
235 views

The missing modules don't get installed after updating with Composer

To update a site locally, I cloned the code base with git to my local computer and imported the database, then ran "composer update --with-dependencies", there were no errors, then I went to /web ...
0
votes
1answer
20 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
0answers
48 views

Road map for migrations order

Do exist a road map to give indications about drupal migration order ? Because, if migrate module give the list of migration, it doesn't give indication about the migration order except when ...
0
votes
1answer
71 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
28 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
2answers
66 views

Remove Configuration Management Destination

I'm using drush cex or drush cim to export and import configuration on D8 site. Every time I run those commands, I get asked a question to select option for cancel, sync or staging, which is quiet ...
0
votes
1answer
208 views

Call to undefined function variable_get()

I have an ansible script that transfers a production database to my devel server, then runs a few Drush commands to prepare it (e.g. updating the filesystem settings, clearing the cache). A more ...
0
votes
0answers
910 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
150 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
16 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
2answers
309 views

How to install drush on a shared hosting without SSH and without composer?

I would like to install Drush on my shared hosting account in order to let a cronjob call a specific module to this installation. I have NO SSH access and NO Composer access on this shared hosting ...
0
votes
0answers
220 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
192 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
26 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
52 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
177 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
62 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
210 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
327 views

Move blocks programmatically in Drupal 8

I'm migrating a Drupal 7 site to Drupal 8. The old site uses drush block_configure (available in drush_extras) to put blocks in regions while deploying, as well as drush block-disable to remove ...
0
votes
1answer
28 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
1answer
394 views

Error consolidation/annotated-command

Trying to install Drush using Composer, i get an error concerning consolidation/annotated-command. What does it mean "locked at 2.0.3" and "requires 2.8.1"? This is the error: Your requirements ...
0
votes
0answers
80 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
501 views

How to get the drush command defined in migrate tools to work?

I have a D8 site since some months. Today I realised that I needed drush in order to migrate some contents (using the migrate tools module). Composer was not installed, so I installed it. Then I ...
0
votes
1answer
31 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
2answers
360 views

How to handle multiple URLs in Drupal migrations

I have a drupal migration that also uses migrate plus from a feed URL that can be queried. For example the migration can work for a single response from the feed at source: plugin: url ...
0
votes
0answers
838 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
456 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
103 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
129 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
335 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
378 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
76 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
619 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
159 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?