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
1answer
27 views

Drush does not run command, but prints the php script

We have a special server that runs php5.x and relies on drush 5.x. PHP 7.0 is installed, but the sites on the server all run PHP5, because PHP7 breaks them. We have previously had drush 5 on it, but ...
0
votes
0answers
21 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 ...
1
vote
1answer
33 views

I don't find something similar to drush field-create in Drush 9

I'm looking for a similar command drush field-create with Drush 9, I only find drush generate field but when I execut it I don't get nothing, also if I try drush generate field --help I get: Too ...
0
votes
0answers
33 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
33 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
2answers
35 views

Composer requirement [closed]

I have been installing/managing Drupal 8 sites without the use of Composer or Drush. Main reasons being that I'm not planning to have complex modules with dependencies and I'm comfortable to perform ...
2
votes
0answers
56 views

Dealing with installed modules/extensions in composer packages removed from composer.json [duplicate]

I had brought up a similar question on StackOverflow, but it hasn't gotten much traction because of a lack of understanding of Drupal, I think. The issue we are experiencing happens when a developer ...
2
votes
1answer
25 views

drush migrate-upgrade “[debug] key_value table not found. Database may be empty.”

I am trying to migrate a D7 site to D8 following the steps found here . Once I can manage it and make sure I have all the PHP components, Drupal modules and etc. I have 4 sites to update, and one ...
0
votes
0answers
55 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
16 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 ...
-3
votes
1answer
47 views

How to login as any user with Drush

How do you login to a Drupal site if you do not have the password of the admin user or user 1 but still have access to the command line? Can I use drush to login to the Drupal site
0
votes
0answers
17 views

Back Up Migrate hangs and never completes

I am running into an issue where running drush bam-backup is never completing. It ran for about 18 hours and nothing happened.. The command works and completed on our staging server within about 45 ...
0
votes
0answers
29 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
31 views

Installing modules using UI vs Drush

I've been having quite a time trying to install Drupal Commerce using the UI on my Drupal 8 project. Lots of WSoD errors. I decided to try again installing using Drush and everything worked like a ...
0
votes
1answer
31 views

Moving “vendor/” in a different location and symlinking it breaks drush

I'd like to have vendor/ moved out of the Drupal 8 root and symlink it. Composer doesn't have any problem with that (all commands work) but when I issue any drush command, even drush --version, it ...
0
votes
0answers
43 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
49 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
1answer
22 views

InvalidArgumentException: The specified translation (fr) cannot be removed

Configurations: "drupal/core": "8.4.3", "acquia/blt": "8.9.10", "acquia/lightning": "2.2.5", I am trying to run migration of workbench moderation to content moderation on drupal core version 8.4.3, ...
-3
votes
2answers
46 views

How to decrypt the password? [closed]

I want to decrypt the password by drush in drupal . is there any way for decrypt it or i have to decrypt with some command or use php code to solve it?
0
votes
0answers
32 views

Drupal Commerce Post Update Error using Drush updb

Just update drupal and am trying to run drush updb but getting commerce post update errors. Module Update ID Type Description commerce_order 10 post-update ...
1
vote
0answers
51 views

Drush cannot connect to the database when updating

I am trying to update Drupal from version 8.7.5 to 8.7.7. I installed Drupal using composer and had a really old version of Drush that I had installed from apt-get. I uninstalled the old version and ...
4
votes
1answer
58 views

Drush or Drupal console command to list modules with security updates?

Is there a command for Drupal 8.x that shows available updates? I added forms_steps 1.1 that has and SA and a security update required in the Web UI which is saying to update to 1.2 I tried drush pm:...
1
vote
1answer
108 views

Updating without Composer

I've previously used Drush to update my Drupal-installations. They are installed without using Composer, and currently on version 8.7.3. However, when I try to use Drush (drush v8.1.15, using drush up)...
2
votes
1answer
39 views

Is there a way to list permissions for a given module?

Using Drush 9, I am trying to automate the creation of a role and I need to assign permissions to it. I see that I can use drush role-add-perm to do the assignment itself, but I can't find a command ...
0
votes
0answers
20 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 ...
2
votes
2answers
72 views

How can I exclude some entities in “drush entity:delete” command?

I want to delete all content of custom entity type except some specific items, I found drush entity:delete CUSTOM_TYPE command to delete all contents but couldn't exclude some items from deletion in ...
0
votes
0answers
27 views

D7 to D8 site migration and location of migration log

I'm using drush to migrate a D7 site to D8. I'm getting several errors in the drush migrate-import --all step. D8 site is installed using a bash script that executes: drush site-install standard -...
0
votes
0answers
154 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 ...
2
votes
1answer
59 views

Xdebug not working over Drush

I'm using Drupal VM and the Drush Launcher (0.6.0). Whenever I try to Xdebug, PhpStorm notices, but it never actually reaches my Drush command. It stops at running Drush. This seems to have started ...
0
votes
0answers
49 views

Drush 9.x fatal error when running drush status (or any other drush command) [duplicate]

I'm running Drupal 7.67 on a Debian machine with PHP 7.2 and MySQL 5.6. My drupal installation is working perfectly fine with no warnings to find under /admin/reports/status. I've installed Drush 9.x ...
1
vote
2answers
148 views

Deployment using Composer replacing old style install but issues with legacy Drush

I took a Drupal project that was created awhile back via downloading a tar file and recreated it on a local via composer with drupal-project. The recommended files were committed to git (i.e. no ...
-1
votes
1answer
26 views

User password reset link leads to access denied page

Command: drush uli Output: http://default/user/reset/uid/..../...hash.../login The output URL normally logs you in automatically, but it gets takes to access denied error instead.
0
votes
1answer
82 views

Drush cannot find your database connection details

I try to install open social using drush-8.3.0 and drupal-8.7.5. The first step is to run composer create-project goalgorilla/social_template:dev-master public_html/peer/opensocial --no-interaction. ...
0
votes
0answers
40 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
1answer
53 views

Drush custom command not found in context of running --root option

Drush 8. Have the custom module with the custom command. Call drush custom-command works as expected. Call drush --root=sites/subsite custom-command thiggers the error: The drush command 'custom-...
-1
votes
2answers
36 views

Patch Status for 'cweagans/composer-patches'?

It seems that 'Drush Patch File' (https://bitbucket.org/davereid/drush-patchfile/src/master/) isn't compatible with Drush 9. It, however, has one important function - Patch Status - which enables ...
0
votes
0answers
30 views

Make Drush 9 @self path include full site

I've just upgraded to Drush 9 and the root path for @self is only the web-folder and therefore not the full drupal site. That behaviour isn't intended, right? The result is that changes within the ...
2
votes
1answer
109 views

Using Drush without local copy of Drupal, only calling site aliases - No site aliases found

We have a project which does not contain a Drupal codebase. It's Cypress.io test with Drush 9 added using Composer. I would like to execute Drush with site alias to work with the remote site while ...
0
votes
0answers
31 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
3answers
135 views

Error during config export

I have added one field in the content type. So when trying to export configuration it gives an error $ pwd $ /c/xampp/htdocs/Test/docroot/sites/testone.com $ ../../../vendor/bin/drush config:export -...
0
votes
1answer
37 views

Drush can not connect to mysql when run a Drupal in a Docker/Azure

I have a website that it's running ok in Docker/Azure. I have this configuration in my settings.php $databases ['default'] ['default'] = array ( 'database' => getenv ( 'MYSQL_DATABASE' ), ...
0
votes
0answers
27 views

How to configure Settings.php so drush can connect to Aquia Devdesktop database [duplicate]

I have locally installed the latest Drupal 8 codebase via composer with this project: https://github.com/drupal-composer/drupal-project which comes with the latest version of Drush as well as Drupal ...
0
votes
0answers
75 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 ...
-2
votes
1answer
33 views

Drush command for setting up databases

I just installed Drush 9 on my ubuntu 19 machine. I also downloaded the latest Drupal 7 and 8 to my /var/www/html folder. My mysql is verified working. Is there a quick drush command to help me setup ...
0
votes
1answer
130 views

Recommended Drush version to use and install for Ubuntu 19 with PHP 7.2 and running Drupal 7

It's been awhile since I've upgraded my server and I'm setting it up from scratch. I'm using Ubuntu 19, apache 2 and PHP 7.2. My site is Drupal 7 which is still running php 5.6 in my old server. I'm ...
0
votes
1answer
83 views

Can Drush 9 be used with this core version?

I have a Drupal 7 site that was not built with Composer. I have been using Drush 7 with it, but about a week ago, drush wd-show --tail stopped working, I'm not getting any output. I installed Drush 9, ...
4
votes
1answer
208 views

How to disable creation of node revisions on programmatic node update?

I added a field of type computed field to existing nodes. It's required to re-save the nodes to set/update computed field values. As I do not want to update the changed timestamp I decided to not use ...
0
votes
1answer
322 views

Drush terminated abnormally

Drush version 9.7.0 Drush Launch version 0.6.0 Drupal ver 8.7.3 Open social dist 5.5. The error I get at the command line when running drush topic or drush cr or any Drush command: [warning] Drush ...
0
votes
0answers
27 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
2answers
171 views

Is there a way to run drush updb without going to maintenance mode

I have a live site which runs on drupal 8. I am using drush 8.5.3 with the installation. Whenever I run drush updb the site automatically goes to maintenance mode. Is there a way to do this without ...