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
1k views

Drush not working after install

I just installed drush using "composer require drush/drush". It ran correctly and when it completes a navigate to vendor/drush/drush/ directory where the drush.php file is located Then I run the ...
2
votes
3answers
4k views

Drush Not detect Database connection

I'm using Acquia DevDesktop application on Mac, I installed a new website on that , everything seems Ok but when I got to the installed path and try to update Drupal core with drush up faced with ➜ ...
0
votes
0answers
27 views

How do I change local site alias?

I've recently upgraded from Drush 8 to Drush 9. In Drush 8, I use drush @project.local.sitename status; in Drush 9, I have to run drush @project-local.sitename status. How can I replace the hyphen ...
0
votes
0answers
32 views

Drush commands are not working in Xampp on Windows

In Xampp 2 Drupal sites are there.one is drupal 7.0 and another one is drupal 8.8.7. Drush version is 8.3.5, PHP version is 7.2.22 ,composer 1.9.2 When I try enabling module in Drupal 7.0 drush en ...
0
votes
1answer
1k views

Drush does not work invoking the local Drush

I have installed new D8 on a remote server using this way https://github.com/drupal-composer/drupal-project . I have pulled files from GitHub and I have run 'composer install' for getting the all ...
1
vote
1answer
520 views

Installing a New Site with Drush and Ansible

I'm trying to create an Ansible Role to run on a VM that creates a new site (so my colleagues don't have to memorize the drush si --db-url command and automate the entire process. I'm running into a ...
4
votes
2answers
740 views

Pitfalls when updating a site without entering maintenance mode?

Assuming there are no module updates that require doing a database update, if it's just an update to a newer minor release of Drupal core, as well as of contrib and custom modules, what potential ...
0
votes
2answers
946 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
1answer
680 views

Which alias do I use to run it with another PHP version?

The Server available for our new Drupal project uses an old PHP CLI Version by default. But I have setup an alias in .bash_profile like so: alias php7=/path/to/php7 and that is working fine. I would ...
1
vote
1answer
30 views

Workaround for missing migrate-deregister command in Drush 10.3.1?

I'm trying to migrate and upgrade a site from Drupal 7 to Drupal 8 (version 8.9.1). The migration cannot be accomplished with the UI, since I need to make some changes to the content types and ...
0
votes
0answers
19 views

Updated to 8.9.1 getting 'content_moderation_state plugin does not exist' message

Updated a drupal project to 8.9.1, all seemed to go smoothly. After i run drush updb and I got the following message. Anyone know what's this about and how to resolve? All other update were run ...
4
votes
3answers
7k views

How to get one time login for all the users?

I want to send one time login for all the users, So I am using drush uli and getting link like: http://html/user/reset/1/1509979615/VBPx_FMfKeJUEt1moVcsSQGUMX_tFUSYEdEfRlmq7eA So if the user 5 ...
2
votes
1answer
35 views

How to ensure successful update after system failure during updb causing the site to remain in maintenance mode?

Running drush updb to upgrade drupal core or other modules, puts the site in maintenance mode. I recently faced an issue (probably an edge case) where the site was stuck in maintenance mode after ...
1
vote
2answers
742 views

Update website from 8.0.0 to 8.6.1

I'm pretty new to Drupal and I'm trying to update a website from 8.0.0 to 8.6.1. I've followed the guide here: https://www.drupal.org/docs/8/update/update-core-via-composer The composer part went ...
0
votes
1answer
828 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 ...
1
vote
0answers
21 views

Unable to set author and created time when translating node programmatically

I am adding translation to a node programmatically using a script which I run with drush scr. Everything works as far as adding translation and copying all the fields over. However, I am not able to ...
0
votes
0answers
33 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,...
2
votes
3answers
1k views

Acquia Dev Desktop and Drush broken with syntax is incorrect

I did a clean install of Acquia Dev Desktop (Build Nov 13th, 2017) under Windows 10. I can clone my site (Drupal 8) and then click to open my local Drush console. It opens a DOS prompt into the ...
7
votes
9answers
5k views

How to delete all terms in a vocabulary with drush?

As reported here I have big problems with huge vocabularies in Drupal 7. Now I want to empty the big vocabularies, but I can't do that via the admin interface, because its running out of memory, so it ...
0
votes
2answers
39 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 ...
16
votes
5answers
6k views

What is the correct core update workflow?

I want to use composer to manage Drupal 8 dependencies, but I'm not sure what is the right core update workflow. At the moment I'm using drush to update core to latest beta release, but I also have ...
5
votes
2answers
3k 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 ...
0
votes
1answer
36 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
38 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
2answers
61 views

How to overcome error caused by non-existent service “entity.manager”?

I am running drush first time in my Drupal 9 project and getting the following error In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86: The service "sanitize.userfields.commands"...
1
vote
1answer
1k 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
489 views

Drush make unable to determine mime type for js

On every .js library that needs to be downloaded, I keep getting errors like: https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js. Unable to determine mime type for jquery-ui.min....
1
vote
1answer
710 views

Why do I get “Command pm-disable needs a higher bootstrap level to run”?

Running drush dis varnish in the Drupal directory gives give me this message. Command pm-disable needs a higher bootstrap level to run. Running drush --debug dis varnish -y gives the following ...
1
vote
1answer
62 views

How can I upgrade to core 9?

I have Drupal 8.8.* and I would like to migrate to Drupal 9 using Drush 8. I know, we can use composer however I just wanted to confirm, whether we can do by using Drush command? I tried using Drush ...
1
vote
1answer
19 views

How can I use config-set to “unset” the value of a variable?

I am trying to use config-set to "unset" a variable. In this case, I have a media image field that has required crop types on it, which is breaking my behat tests, so I want to use drush to ...
0
votes
0answers
36 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 ...
1
vote
3answers
1k views

AWS SDK installation problem

I used Drush to install Amazon S3 module. AWS SDK was installed as part of the process. No error was thrown [root@ip-10-128-146-179 zencoder]# drush dl amazons3 Project amazons3 (7.x-1.0-beta7) ...
0
votes
1answer
999 views

Drush on Amazon EC2 - Update local code while using a remote database

I am using Amazon's EC2 for my development environment and Pantheon for my deployment environment. Code changes are pushed to Pantheon using git. And this much works fine. I would like to use drush ...
0
votes
1answer
326 views

Error when uploading file through Drush on S3 volume

I am using Amazon S3 volume to store the node's attachment. I keep having the following message: file_put_contents(public:///.htaccess): failed to open stream: "DrupalPublicStreamWrapper::stream_open"...
1
vote
2answers
177 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
725 views

Run Drush command with Gulp

I would to know how I can run a drush command like drush @alias cc all with a gulp workflow ? This is my starting code: var plugins = require('gulp-load-plugins')(); gulp.task('drush:cc', ...
0
votes
3answers
586 views

Why doesn't my watchdog() function run when I execute my custom module from Drush

I have a custom module that performs an import from an xml file. It can be invoked two different ways. From a menu callback or a custom drush command. The import works fine and all of it's many ...
0
votes
1answer
21 views

Cannot export theme settings to the .info file

I am using Drupal 7. After modifying a setting for my theme in the Appearance menu, I get the following alert message on my site's homepage: The settings for this theme are currently served from a ...
0
votes
1answer
345 views

Drush alias files aren't being found [closed]

I'm working locally on my OSX and I have my drush alias files at ~/.drush/[hostname].aliases.drushrpc.php but no matter what project I'm in, only one of the alias files are being read, as confirmed ...
2
votes
1answer
542 views

drush perm-grant gives “The drush command 'perm-grant' could not be found”

I am using drush -u 15 perm-grant --roles="site administrator" but the command returns: The drush command 'perm-grant' could not be found. any ideas about that? according this documentation the ...
0
votes
3answers
399 views

drush up fails with Unknown archive format

Today, I am getting an error message when I run the Drush download or update command. drush up -y captcha fails with Unable to extract /.tmp/drush_tmp_1582749966_5e56d90e14736/captcha-7.x-1.7....
1
vote
0answers
594 views

How can I clear caches on a local Pantheon site?

I am trying to clear all caches on a local install of Drupal (using pantheon aliases): drush @self cc all However, when the menu caches are cleared I get this error: WD pantheon_apachesolr: Error ...
2
votes
1answer
1k views

How to apply patches on Pantheon?

This is specifically a question about Pantheon best-practice workflow, which I'm new to. I run from a Win7 machine and do not have a full dev environment set up locally: it's just too much hassle to ...
2
votes
2answers
2k views

Drush command needs higher bootstrap level - Pantheon Drush Alias Setup

I just setup pantheon for one of my websites. So far I've done the following and the site works fine: Version Drush: 5.3 Local Dev: Ubuntu 12.04 Git clone the repo to my local desktop Copy the ...
2
votes
2answers
454 views

drush uli command goes to wrong domain

I'm new to the command line, having trouble understanding why the uli drush command is taking me to the wrong domain. On Pantheon, the dev site address is: dev-example.pantheon.io I've successfully ...
4
votes
1answer
806 views

How do I link Drush to my Drupal site on Pantheon?

A friend of mine got me into Drupal and did the initial setup for me. At first, I was using localhost to play with Drupal and Drush to download and enable modules. Now I have my own Pantheon hosting ...
0
votes
2answers
185 views

Why doesn't drush check for updates of dev versions of my modules installed by composer?

I am using Drush (8.0.3) on my Drupal 8 site (8.0.3) to check for updates, but Drush is not checking for updates of any modules that I checked out the dev branch for. $ drush @mysite ups --check-...
1
vote
4answers
690 views

How can I use Drush to sanitize a database on a remote server?

I'm on Pantheon and I want to run some custom SQL queries to sanitize my dev server. I have the queries in a file, custom_sanitize.sqlqueries. It looks something like this: UPDATE ...
2
votes
1answer
589 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 ...
0
votes
2answers
1k views

Drush MAMP not working

I'm running with a big problem for hours now and it's driving me crazy, maybe one of you already know the answer. Drush seems to not want to work on my OSX (10.8.5) with MAMP (3.0.5). When I execute $...

1
2 3 4 5
38