Questions tagged [drush]

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

400 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
2answers
94 views

Problem with drush and site alias (Drupal 8.8.6 / Drush 10.3.1)

I've installed two drupal sites on a share hosting (OVH), in two folders : dev.www www I've installed drush 10.3.1 and create two alias, but when I try use alias (drush @dev status), I have the ...
0
votes
1answer
41 views

Can't find migration when running drush migration:status

I'm trying a tutorial to migrate users data from a CSV file. From here: https://u.group/thinking/drupal-8-csv-migration/ I've created a module as suggested. Here is the code: /config/install/...
0
votes
0answers
47 views

How can I execute one Drush 10 installation from any of my different sites (NOT multi-site)?

What is the proper way to install Drush 10 if I have a domain and several independently installed subdomains like described below? I want to avoid multiple drush installs. On my shared hosting account,...
0
votes
0answers
209 views

'[warning] Drush command terminated abnormally.'

Drush won't run at the command line in any Drupal 8 subdomain installation: [warning] Drush command terminated abnormally. I am using GreenGeeks hosting for several Drupal 8.8.7 sites, one 8.8.6 site, ...
0
votes
0answers
99 views

How to migrate content using migrate-manifest?

English is not my native language so please be patient. I'm totally new to Drupal development so I was learning how to migrate from Drupal7 to Drupal8 due to some work necessities to test a POC, the ...
0
votes
0answers
8 views

Schedule a current state of a content to be publish is not working

I'm having some issues with drupal/core 8.7.7, when i crate a new content or use a content already published , i want to schedule that content to be changed from one state to another. ex: But when i ...
0
votes
0answers
210 views

Drush database issue

I have encountered an issue with Drush. I am missing a number of commands. When running a command with --debug I am told [Symfony\Component\Console\Exception\CommandNotFoundException] Command rq was ...
0
votes
0answers
85 views

Drush on Acquia Dev Desktop is terribly slow

I'm running version 2, built Jan 9 2020, on a Windows 10 machine. I'm opening the command line via the dev desktop interface (via the small, black command line icon), and all drush commands run ...
0
votes
0answers
66 views

Running drush updb for a multisite alias is not working

I have a multisite enviroment and I'm trying to run drush updb and drush cim for the multisites using aliases. To achieve this i created a wildcarded alias file like this in drush/sites: alias.site....
0
votes
0answers
17 views

search-index with drush fails on field_collection error

I've been rebuilding my search index using "drush search-index" for the better part of the day. There have been a few odd errors that I have handled as I went along, making some fixes in the process ...
0
votes
0answers
67 views

Does drush stop events from firing and/or bypass event subscribers?

I'm running some migrations and have logic dependent on their Events public static function getSubscribedEvents() { $events[MigrateEvents::POST_IMPORT][] = ['onMigratePostImport']; return $...
0
votes
0answers
23 views

Error using drush to generate YML file

I am attempting to use the Migrate File Entities to Media Entities module, https://www.drupal.org/project/migrate_file_to_media I am running Drupal 8.7.10 and drush 9.7.2. in Acquia DevDesktop ver. 2....
0
votes
1answer
49 views

Use drush to install a module on all of the sites of a multisite at once

I have a Drupal 8 multisite, setup with 6 different sites. I want to install Admin Toolbar on all of them on my local dev environment (mamp / terminal / drush). I have downloaded that module using ...
0
votes
0answers
43 views

Could not initialize PECL extension even though memcached installed

I am migrating a site from one remote server to another. I have set up the new server will all the prerequisites installed memcached server and its extension too. But when I try to run drush cr I get ...
0
votes
0answers
34 views

I can't clone a project

I have a locally multi-site. Locally Drush works perfectly fine. But When I try to clone this project in different machine I get this error in Acquia Dev Desktop: I also tried to run a Drush command ...
0
votes
0answers
67 views

How can I create a content type field?

How do i create a content type field using Drush or Drupal Console? I tried both ways but nothing seems to work. I am using Drush Commandline Tool 9.7.1 and Drupal Console version 1.9.4. Drush: $ ...
0
votes
0answers
99 views

How can I change the site settings email using Drush?

Env: D8/drush-9.5.2 I need to use drush to change the site details (Home->Administration->Configuration->System) Site name, Slogan, and Email address. I found the configuration key by running: ...
0
votes
0answers
16 views

Using lock_acquire for Drush batch operation

I am trying to improve a batch function so that it uses lock_acquire(), in order to prevent users from trying to run a large batch if it is already running. To do this, I try getting the lock in the ...
0
votes
0answers
255 views

Database connection is not defined: default

I have installed Drupal, and Drush with composer require drush/drush:9.7.2. $ vendor/bin/drush status Drupal version : 8.8.2 Site URI : http://recommended-project.dd:8083 PHP binary : C:...
0
votes
1answer
61 views

Undefined function json_decode()

When attempting to update a Drupal 7 site through the UI or Drush, I get Error: Call to undefined function json_decode() in home/xxxxx/drush/includes/output.inc, line 403 , code: 255) The server is ...
0
votes
0answers
33 views

drush commands fails if user not logged in on server

I have a task schedule in windows server 2012 R2 that triggers a batch file to generate a random password for an account in drupal and then apply that password with drush using the command "drush user:...
0
votes
0answers
28 views

Cannot disable module “monitoring” after failed upgrade

I just updated to Drupal 8.8.1 (composer update drupal/* --with-dependencies now says I'm up to date, even though I know that 8.8.2 is actually the most recent). After doing this, I can use most of ...
0
votes
0answers
40 views

Drush says “DB credentials are invalid,” but my credentials in my settings-local.php are valid

If I run drush cc all or drush --root=/path/to/my/docroot cc all, I get... No Drupal site found, only 'drush' cache was cleared. If I run drush -vd, in amongst the output I see... DB ...
0
votes
0answers
56 views

Why are there no pending db updates when i reset system.schema entry?

I am confused about a few things to do with db updates. I have a messed up site caused by commerce and importing configuration. I want to re-run the commerce updates to ensure that they were done (as ...
0
votes
1answer
155 views

How to solve “Query failed” error in drush sql-sync output 2?

I have the exact same problem as in How to solve "Query failed" error in drush sql-sync output?, exact same output. That user found the answer as the password in settings.php was wrong, but ...
0
votes
1answer
71 views

Why does sql-sync fail?

I'm managing Drupal 7 and Drupal 8 sites, so I'm running Drush 8 as that's the only version that can manage both. The Drupal 8 sites are installed using Composer and my local setup runs on MAMP 5.5.1. ...
0
votes
0answers
85 views

Alter drush 9 @self alias

Forgive me as I'm new to Drupal and am getting confused about the defaults I'm seeing between different parts of the ecosystem... I'm using Drupal 8, Drush 9 and Composer to create my project and ...
0
votes
0answers
88 views

Drush output comes with color in a directory root while it comes without color in another

I have set up two drupal virtualhosts in a VPS server under two different users. I had installed these at two different times so am not too sure about the specific install steps for Drush that I used. ...
0
votes
0answers
29 views

Drush Connects to Wrong Database in Nested Site Directories

Drush is not connecting to the correct database in a nested site structure. What can I do to debug and fix? We have a website that consists of several nested Drupal installs/sites. I.E. The domain ...
0
votes
0answers
60 views

drush cex re-creates files in config/sync while they already exist in module config folder

Having a config split which says that the location/configuration of the split/module is located under /sites/all/modules/custom/module/config/optional After it got imported with drush csim our_split ...
0
votes
0answers
105 views

Drush fails on D8 sites but works on D7 sites - PHP Version Issue?

We have a CentOS Linux 7 server with Plesk running several Drupal 7 and a few Drupal 8 sites. Drush commands work fine on all D7 sites, but on all D8 sites any Drush command returns: PHP Parse ...
0
votes
0answers
84 views

How do I fix this version error?

I have a Drupal 8 site that has been installed with Composer. Last week, I updated Search API 1.14 and Search API Solr 3.7. The module are in the good version, but when I run drush updatedb, the ...
0
votes
0answers
29 views

Drush migrate can't find database

I am running a local Drupal 8 site via Aquia DevDesktop. I enabled the Migrate modules: Migrate, Migrate Drupal, Migrate Drupal IU, Migrate Plus and Migrate Tools. When I run a migrate command in ...
0
votes
0answers
639 views

How do I uninstall Drush 9 and install Drush 8?

I take it I can't manage Drupal 7 sites with drush 9 so I'm trying to install Drush 8. But first I have to remove 9. I tried composer global remove drush/drush but it gives errors: drush is not ...
0
votes
0answers
177 views

Drush isn't connecting to my database

I have a Drupal install on a CentOS development server. Running drush from outside my web directory returns as you'd expect (a list of Drush commands). Running drush from inside my web directory ...
0
votes
0answers
53 views

How can I create a user with a term reference field in a Behat test when using the Drush Driver

My Behat test has the following Given statement. (field_regions is a taxonomy reference field) Given users: | name | mail | roles | field_regions | | Joe User | joe@...
0
votes
0answers
138 views

What does “The Language field needs to be updated.” mean?

It may be a stupid question, but I don't quite understand how to go around drush entity-updates from Drupal Version 8.7 on. For example on /admin/reports/status, it says: Textbox The ...
0
votes
0answers
56 views

The drush command 'variable-get' could not be executed

Command variable-get requires Drupal core version 6 or 7 to run. The drush command 'variable-get' could not be executed. drush st Drupal version : 8.7.3 Site URI ...
0
votes
0answers
82 views

Drush behaves strangely on Windows 10 with Acquia Dev Desktop

After having istalled drush via composer locally I had to make the following changes inside sites\default\settings.php for it to work: Create the database connection array $databases['default']['...
0
votes
0answers
34 views

Priority of aliases files for Drush

I have an installation with lando. On the project, we have a directory drush with an aliases file for the project. This file defines aliases with the root specific for the lando architecture. In my ...
0
votes
0answers
92 views

Errors while updating core to latest version

I have a website I had worked on but never finished, last year. It is at version 8.5.4. I've imported it (from a devdesktop environment) into a Docker/Docksal environment. At this point I can see a ...
0
votes
0answers
387 views

How to change the drush default timeout of 14400?

We face a major problem for our client. To put it in context, this is a Drupal 8 with commerce that has a large number of products that come from a PIM. To be clearer, the products are not managed in ...
0
votes
1answer
309 views

drush handling array variable values

I am using Drupal 7 and drush 7.4.0. How do I handle array variables with drush? For example, I have a variable, social_sharing, for which drush vget social_sharing Produces: facebook: facebook ...
0
votes
0answers
61 views

How to install the module Entity Browser?

I'm trying to install the Entity Browser module, but I'm getting this error: It basically says that the "entity_browser" entity type does not exist, and based on the error I tried to install the ...
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
82 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
261 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 ...

1
4
5
6 7 8