Questions tagged [drush]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
3k views

Boostrap failing with Drush 9.1.0

I had Drush 9 working before it got upgraded to 9.1.0 and am a little bit at my wits end why Bootstrap is failing and why I get "Bootstrap failed" or "! [NOTE] Drupal root not found. Pass --root or a @...
0
votes
1answer
2k views

Drush not recognized and internal or external command

When I update Drush to Drush 9.1.0, the following error now appears: 'drush' is not recognized as an internal or external command, operable program or batch file. This issue has occurred on three ...
0
votes
1answer
38 views

How to change search_api_server options via CLI

I'm using drupalvm to create my local dev environment, and am writing scripts to automate importing an existing site's db and changing other settings so that it's more like our actual server-hosted ...
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
57 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
420 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
111 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
1answer
602 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
397 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
41 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
81 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
45 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
54 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
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
1k 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
2k 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 ...
1
vote
1answer
817 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
1answer
152 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
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 ...
-1
votes
1answer
124 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
588 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 ...
3
votes
1answer
2k 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
45 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 ...
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
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 ...
1
vote
1answer
384 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
542 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
23 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
88 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
841 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 ...
1
vote
0answers
941 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) ...
5
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
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 ...
1
vote
1answer
141 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
760 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
36 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
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 ...
2
votes
2answers
3k 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
338 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
2answers
250 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
391 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
245 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
337 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 ...
6
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 ...
15
votes
1answer
3k 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 ...
1
vote
0answers
503 views

Drush does not get upgraded using composer [duplicate]

I got the following in composer.json: "name": "drupal/drupal", "description": "Drupal is an open source content management platform powering millions of websites and applications.", "type": "project",...
0
votes
1answer
37 views

Drush not working on Multisite with Shared User Table

I have a Drupal 7 Multisite Environment with sub-directories. (E.g): mainsite.com mainsite.com/multisite1 mainsite.com/multisite2 mainsite.com/multisite3 etc. Each website has its own Database and ...
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 ...