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
0
votes
2answers
2k views

What is the right way of installing?

The http://docs.drush.org/en/master/install page states: Drush 9 only supports one install method. It requires that your Drupal 8 site be built with Composer and Drush be listed as a dependency. ...
1
vote
1answer
531 views

Unable to run database updates via Drush - Call to undefined function batch_get()

Having some difficulty running database updates via drush after updating modules in the codebase. This is the error that is being reported: Error: Call to undefined function batch_get() in /root/....
0
votes
1answer
55 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
190 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
63 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 ...
1
vote
1answer
414 views

Configuration management and site specific configuration

I have different site environments for my site; dev, test and live site. On dev (local develop) my solr settings are different then on my live environment. How do I configure site-specific solr ...
0
votes
1answer
223 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
2k views

How do I install Drush 9 on Windows 7 with Composer?

Should I globally install Drush and use it locally, or should I use install and use it locally? I globally installed it with Composer, then added C:\Users\Md. Shafiq Hossain\AppData\Roaming\Composer\...
0
votes
1answer
669 views

Localhost Drupal Install on Linux shows file and not site

I am trying to set up a local Drupal install on my Linux 16.04 laptop install for learning/exploring Drupal. I have made it through this install guide , completing all steps, but when launching my ...
2
votes
2answers
1k views

Running Drush Launcher on Windows

When I run Drush in the command line on my Windows 10 computer or Windows Server 2016 servers, I get the following error: drush : The term 'drush' is not recognized as the name of a cmdlet, function, ...
0
votes
1answer
459 views

Too few arguments to function drush_migrate_tools_migrate_messages()

I'm in the middle of a D7->D8 migration and tried running the command drush migrate-messages but got the following error: ArgumentCountError: Too few arguments to function ...
1
vote
0answers
644 views

Drush version doesn't update and cannot get local Drupal 8 site install to work on Linux

I am having trouble completing a local install of Drupal 8 on my Linux laptop. I am following this Guide/Blog I am running Xubuntu Linux 16.04.3 LTS Composer is installed: $ which composer /usr/...
1
vote
1answer
257 views

Update Drush in Docker4drupal

I have to upgrade Drupal core to 8.4 with Composer. Drush version is 8.1.12. I use Docker4drupal for my local development environment. How do I update Drush to 9 within my docker container setup, so ...
2
votes
2answers
4k 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
29 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
83 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
430 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
123 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
680 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
472 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
88 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
42 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
87 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
48 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
1answer
63 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
519 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
924 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
181 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
131 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
656 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
48 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
387 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
449 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
606 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
97 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
893 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
494 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
975 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
111 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
153 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
888 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 ...