Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [drush]

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

0
votes
0answers
206 views

Drush site install multisite existing config

I am currently facing a problem that drush si for a new multisite is not possible: drush si --config-dir="/var/www/html/config" --sites-subdir="sub8.localhost" --db-url=mysql://root:root@mariadb/sub8 ...
0
votes
1answer
26 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
36 views

Why running cron tasks would hit a REST service endpoint?

I can't run cron jobs from a single module or from core anymore. Somehow Drush hits a REST service endpoint. I have configured some service endpoints for views, but why would cron jobs hit that? I ...
1
vote
2answers
348 views

Drush 9 can't find installed module, yields CommandNotFoundException

On my newly installed Drupal 8.4.4 sandbox installation, I've installed Drush 9 and the Devel module: composer require drush/drush:^9 composer require drupal/devel After running these commands, I ...
1
vote
1answer
65 views

“Codebase is assembled with Composer instead of Drush” (but it wasn't!) message

I'm using D7 and I'm seeing the following error message any time I try to use Drush to install a module: This codebase is assembled with Composer instead of Drush. Use composer update and composer ...
0
votes
0answers
105 views

Trying to fix drupal base path when migrating files from D7 to D8

I'm currently using drupal migration tools to try and migrate my files from Drupal 7 to Drupal 8. So far I've managed to install all necessary modules such Migrate Upgrade, Migrate Tools and Migrate ...
0
votes
1answer
314 views

How can i set site url dynamically in Drush-9?

In Drush 8 i had that neat little reusable drushrc.php: $options['l'] = getenv('MY_SITE_URL_VAR'); I know that i can hardcode my site URL in a drush.yml file, but that does not fit my configuration ...
0
votes
1answer
166 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
60 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
33 views

How do I convert a Drush make commit-level dependency into Composer?

I am remaking old project to use composer for building and I have a problem I cannot find solution to. Basically this is how library is defined in profile.make file: ; HybridAuth libraries[hybridauth]...
1
vote
3answers
58 views

Remotes: Can a local Drush 8 be used to send commands to a remote Drupal 8.4 site which includes Drush 9?

Let's say we have a dev-ops administrator who isn't a developer and doesn't want or (normally) need a local copy of the website. As of Drupal 8.4, Drush 9 is required, and Drush 9 doesn't have a way ...
1
vote
1answer
32 views

how to access $user from commandline?

I'd like to access $user from the commandline to see what properties are available on it. I could sdpm($user) in my code and go inspect it in my browser, but isn't there a way I can inspect it right ...
1
vote
0answers
46 views

Drush sql-dump with stored procedures

According to the current documentation I don't think this is possible, or is it? (drush sql-dump --routines doesn't work or anything like that) Aaaannndd... let's say it's not possible, and I want ...
0
votes
1answer
423 views

Drush 9 on Drupal 8

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
0answers
363 views

Command terminated abnormally due to an unrecoverable error

We can't run any Drush command, and we get these errors with drush cc all. array_multisort(): Argument #1 is expected to be an array or a sort flag menu.inc:3688 Error: Call to undefined ...
0
votes
2answers
592 views

Cache rebuild causes an error with missing plugin

On rebuilding the cache, a Drupal 8 website goes down and displays the message "The website encountered an unexpected error. Please try again later." I used drush cr to rebuild the cache, which shows ...
3
votes
1answer
738 views

Order of drush commands for automated deployment?

What order should the following drush commands be ran? config-import updatedb entity-updates Also, I see entity-updates fail a lot due to field_delete_data* tables existing. How can I delete them as ...
0
votes
1answer
408 views

Config import constantly showing configs to import

Recently after doing a config import via drush (drush cim sync), the config files don't seem to import properly, as the files are listed after a supposed successful import. (and doing a cex sync shows ...
0
votes
0answers
223 views

Drush Command “mecu” is not defined

I'm working through this media_entity upgrade as defined in FAQ - Transition from Media Entity to Media in core. The article 'strongly recommends' running the 'drush mecu' command. I'm using Lando ...
0
votes
1answer
58 views

How to process different URL page via Drush?

I'm testing the following Drush 8 command (using --uri parameter): drush --uri=https://www.example.com/custom/path ev 'var_dump(current_path());' however when printing current_path(), it always ...
0
votes
1answer
27 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 ...
-1
votes
1answer
111 views

Migrating content type with different translations/languages

I'm currently migrating a specific content type that has 16,000 nodes with different translations (english, french and spanish). After entering commands drush ms. It's only showing only half what is ...
0
votes
3answers
367 views

How to anonymise user names and emails?

The developer stages need their user names and email address anonymised. I did not find anything googling the subject matter. Maybe somebody developed a Drush extension for this? Any other suggestions ...
2
votes
1answer
777 views

Is there a “registry rebuild” command?

I just did a fresh Drush installation, and now I have version 8.1.15. When I run drush rr, I get the following error message. The drush command 'rr' could not be found. Run drush cache-clear ...
0
votes
1answer
34 views

drush not able to download and enable modules whenever executing drush en <module_name> on Windows OS

I keep getting this pop-up screen that tries to locate an app to open .launcher files whenever I try to execute drush en <Module_Name> commands to download and enable a module on Drupal 8. On ...
0
votes
0answers
56 views

Trying to solve a migration exception error using Drush

I 'm having some trouble trying to migrate my database using Drush. I'm getting this error whenever I'm trying to execute drush mim upgrade_d7_user. Migration failed with source plugin exception: ...
1
vote
0answers
16 views

What does the code status “build: error” signify for Drush 8?

On the install page for Drush 8, under the section "Drupal Compatibility", the code status is listed as "build: error". What are the consequences of this, if any?
0
votes
1answer
240 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 ...
1
vote
1answer
196 views

error on CLI when using drush config-import staging

I'm getting this error below whenever I try executing the commands drush config-import staging on the CLI. I'm basically in the process of migrating a drupal 7 DB to Drupal 8 and currently following ...
0
votes
1answer
364 views

Fatal error: Allowed Memory Size of (X Size) when running drush migrate-upgrade [duplicate]

I'm trying to use drupal migration module with drush to migrate a database. I'm getting this error below. Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in ...
0
votes
1answer
18 views

How to define alias dependent Drush extensions?

I have a stage and an anonymized instance of a project both managed under the same user (www-data). The anonymized instance is taken from production instance and has a drush extension that can have a ...
0
votes
1answer
65 views

Drush error when running dmu-analyze to update drupal modules

I'm using drupal module upgrader with drush to update the modules which are drupal 7 compatible at the moment. I'm getting this error when I try running drush dmu-analyze MODULE_NAME I can't seem to ...
0
votes
0answers
529 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
186 views

Drush command dmu-analyze not found

So I'm using drush in order to update or upgrade modules that are currently in Drupal 7 to Drupal 8. The command I'm using doesn't seem to be working as shown in this screenshot. I'm running the ...
0
votes
0answers
295 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 ...
1
vote
0answers
774 views

Drush 9 on Windows 10 — some Drush scripts not found — but other Drush commands work

My environment: UniServerZ XIII (a form of WAMP server), Drupal 8.4.3, Drush 9.x, Windows 10 Pro. Used Composer to install Drupal and also for Drush (as a site install). Windows PATH (for local user) ...
3
votes
1answer
1k views

Aliases stop working after composer install

We have added some drush aliases for a multi-site project, the aliases were converted from the previous syntax to the Drush 9 syntax (.yml files). I went over the documentation, and also saw the ...
0
votes
1answer
86 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 ...
1
vote
1answer
86 views

How to remove orphaned actions if you get not authorized access as uid1?

I get this error 1 orphaned actions (views_bulk_operations_archive_action) exist in the actions table. Remove orphaned actions But when I click Remove orphaned actions I get You are not authorized ...
2
votes
2answers
408 views

Remove import instance from list using Migrate Tools module

I'm trying to remove an rss reference of a migration. Once I put the yaml code into the Migrate module in the drupal admin interface, it creates a reference to that yaml code, but there is no one in ...
0
votes
1answer
35 views

drush for several drupal

I have drupal 7.54 that are placed in /var/www/html which I use as main site. Also I have drupal 8 (for testing) that are placed in /var/www/html/drupal8 where I have drush. And there is some ...
0
votes
1answer
102 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 ...
1
vote
2answers
2k views

PHP Fatal error: Uncaught Error: Call to undefined function cache_get()

I'm trying to get Drupal to work inside an Alpine Linux docker container but for some reason drush can't be used to manage the website. The website itselfactually works fine, drush just can't ...
1
vote
1answer
241 views

'Could not find the alias' error after installing drush alias for Pantheon

I'm attempting to get the drush alias to work with Pantheon, but when I try to run drush @pantheon.mysite.dev status I get Could not find the alias @pantheon.mysite.dev. I've already installed the ...
1
vote
1answer
132 views

Can't install drush with composer

When I run... composer global require drush/drush:dev-master ...I get... Your requirements could not be resolved to an installable set of packages. Problem 1 - Can only install one of: ...
2
votes
1answer
249 views

How to use another php version for drush 9?

On live server I use differents drush and php versions for drupal 8.4 and 7. I install drush 9 to ~/drush9 directory with composer require drush/drush:9.* command. On dev server and drupal 8.4 I use ...
1
vote
1answer
177 views

How to find where Drush is installed to include a file in my module?

I have installed the module Drush Help to see the module's Drush commands in the module help page. But when I go to see the help page of a module that use in the drush commands drush constants like ...
0
votes
0answers
283 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 ...
5
votes
2answers
1k views

Drush @sites not implemented in drush 9

Since drush 9 (drupal 8.4 requirement), alias @sites does not seem to be implemented anymore (or yet ?). $ drush @sites cr The alias @sites could not be found. Is this a way to get the same behavior ...
14
votes
1answer
2k views

Where is archive-dump for Drush 9?

I have drush 9 installed (current dev release). I can't find the archive-dump command, despite the docs suggesting it should be there. Executing it produces: The Drush command 'archive-dump' could ...