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
23 views

Custom Drush command and Settigns::get(), Config::get()

how can I access site configuration when in Drush command? Global variable $config === null and when I use Config::get('key'), I get Error: Using $this when not in object context in Drupal\Core\...
1
vote
0answers
20 views

Start migration via rest or from a button within a view

I have a bunch of migrations that update a bunch of nodes. I want to automate the process and also be able to rollback / add / update specific nodes for specific migrations. Basically I need a ...
0
votes
1answer
36 views

Drupal 8 url after installation using drush site-install

I used Composer to download and install Drupal 8.8.1 on Linux and used drush site:install command for setup. Only the following lines/messages were shown after I entered drush site:install command. ...
-1
votes
1answer
31 views

What are the differences between Drush 9 and 10

We are using Drupal 8.8 with Drush 9. What are the main risks and benefits of upgrading to Drush 10? The official release description is rather vague.
-1
votes
0answers
24 views

How to bulk update path using drush and pathauto?

Is there a way to bulk update paths, using pathauto and drush in Drupal 7?
0
votes
0answers
24 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 ...
1
vote
1answer
48 views

How should I setup Drush to work with Drupal 8.8.1 using Git Bash on Windows 10

I am using a Windows computer and using Git Bash, I just installed a new 8.8.1 site and also did 'composer require drush/drush'. I can't use Drush from anywhere so I am wondering if I should have ...
0
votes
1answer
74 views

Problems with Drush finding old versions of php [closed]

I have been trying to find the best way to upgrade my D8.7 site to D8.8.1. I have always used drush for everything, but I want to migrate to composer, and use the new recommended-project format. After ...
-2
votes
0answers
44 views

Why doesn't “drush mysql” work? [closed]

I installed a test site, and I'm using Git to launch Drush commands and they seem to work. I tried drush mysql, but I get this error. The drush command 'mysql' could not be found. Run drush cache-...
-1
votes
0answers
43 views

Unable to untar when executing drush dl command

I have an error message when I want to launch this cmd with Drush: drush dl Webform Unable to untar C: \ Users \ Admin \ AppData \ Local \ Temp \ drush_tmp_1578139805_5e10809dade73 \ webBF32.tmp. [...
1
vote
0answers
68 views

How may I fix this warning message when executing Drush commands? [closed]

I reinstalled drush 8.0.0 with the command $ composer global require drush/drush:8.* but I get this message that keeps coming up. count (): Parameter must be an array or an object that implements ...
0
votes
0answers
36 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 ...
-2
votes
1answer
45 views

How do I create the database tables?

I installed composer-Git and drush and was continuing with the installation of Drupal 8 from the command line. I read that you can create the database directly from drush, while in other parts I read ...
0
votes
1answer
67 views

Bootstrap failed

I have Drupal 8.8.1 and Drush 10.1.1, both installed with Composer. I'm running the following to update my site DB: $ drush updb In BootstrapHook.php line 32: Bootstrap failed. Run your command ...
0
votes
0answers
37 views

How can I force Drush to use PHP7 [duplicate]

I have PHP5.6 and PHP7.2 installed. "php" runs 5.6 and "php72" runs 7.2. For Drupal8, I want to run 7.2, which is fine when it's called from the webserver, but when I run drush it uses 5.6. I've ...
2
votes
1answer
36 views

How to attach xdebug to drush in docker

How can I "attach" xdebug to drush in a docker container? By that I mean, how can I have xdebug show me a history of an import script? And to look at the single variables that are defined and ...
0
votes
1answer
31 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
34 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
38 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
1answer
45 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
34 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 ...
2
votes
0answers
58 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
38 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
61 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
17 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
32 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
33 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
34 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
55 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
51 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
28 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
55 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
54 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
105 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
67 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
121 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
54 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
21 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
81 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
35 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
229 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
73 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
55 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
223 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
27 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
140 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
51 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
72 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-...