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
2
votes
1answer
706 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
585 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
20 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
0answers
16 views

How to migrate content using migrate-manifesy?

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
1answer
331 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
0answers
34 views

Drush not working after core update

I am having issues in getting drush working after updating drupal core from 8.7.13 to 8.8.5 along with dependencies. Backed up the database before update process. Ran update.php to make sure no ...
2
votes
1answer
540 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
265 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
593 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
447 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
769 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
184 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
686 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 ...
0
votes
1answer
673 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 ...
2
votes
1answer
566 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 $...
4
votes
3answers
2k views

Publish nodes with drush?

I'm faced with the situation of needing to be able to publish content with Drush. Is there a way to use Drush to publish nodes? If there is, how can it be done?
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
37 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 ...
2
votes
1answer
778 views

How to check for differences in config

Is there any way to check for differences with config in Drush 8? I checked the list of drush 8 config commands and I couldn't find anything. The reason I need this is that I have a site that runs ...
0
votes
2answers
475 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 ...
2
votes
2answers
897 views

Loading a queue?

How can I use Drush to pass data into a Drupal Queue? function hook_cron_queue_info() { $queues['my_queue_name'] = array( 'worker callback' => '_my_queue_callback', // This is the callback ...
3
votes
1answer
1k views

Why does cloning a private git repository via Drush make file fail using SSH authentication?

I have multiple private git accounts set up with SSH system's keychain authentication for each git repo. It works to clone private git repos from command line: git clone git@git_ssh_alias:git-...
1
vote
3answers
817 views

Convert Database object into database URL string

I've define my own database connection in my Drupal settings file as follow: $databases['migrate']['default'] = array( 'driver' => 'mysql', 'database' => 'drupal', 'username' => 'root',...
3
votes
2answers
3k views

How to force a running migration to stop

I created a migration with a query that seems to have broken my migration. I added two groupBy on a query, instead of two orderBys. As a result, running drush mi MyMigration got stuck in what appeared ...
0
votes
1answer
386 views

Getting Drush to play with MAMP and Acquia

I have a Mac workstation which is shared between two users, User°1 who first installed the machine, and User°2 who came along after, both administrators. User°2 has installed Drush using brew and ...
3
votes
4answers
7k views

Not able to execute Drush commands

I am trying to setup a Drupal 8 Environment on Virtual Machine (Ubuntu) and when I am trying to clear cache, I've got the error: drupal8@drupal8-VirtualBox:/var/www/drupal-8.0-alpha5$ drush cc all ...
2
votes
4answers
2k views

Can't get drush to work after moving to Acquia Dev Desktop

I installed Acquia Dev Desktop. Most things work but drush does not. I get an error: Drush was not able to start (bootstrap) the Drupal database. Because I had previously installed php and mysql on ...
0
votes
0answers
47 views

Error when installing with existing configuration in docker-compose [closed]

I am new to Drupal and am attempting to set up a local development environment for an existing Drupal 8 site using docker-compose. I'm trying to make it so that when starting the docker containers it ...
3
votes
2answers
378 views

Drush cim: error “Table xyz already exists”

I'm trying to deploy a dev website to a dev server. When running drush cim on the dev server, drush ends with an error message: Table honeypot_user already exists When running drush cim again ...
1
vote
1answer
555 views

Updating modules fails with XAMPP on Windows 10

I'm pretty sure I installed Drush 8 correctly on Windows 10. I ran the command window as administrator. I changed to my Drupal directory, but I get "Command pm-update needs a higher bootstrap level to ...
2
votes
2answers
50 views

What's the syntax of drush generate --answers argument?

So I am trying to automate theme creation using drush. There is no documentation on how to fill the --answers argument there https://drushcommands.com/drush-9x/core/generate/ I have tried: drush ...
0
votes
2answers
517 views

Cannot install Drupal via drush in the root of site

I am going absolutely insane. I have been up for several hours scouring the internet, installing, removing, installing, removing, and I CANNOT get Drupal (7 or 8) to install at the root of a site (...
1
vote
2answers
363 views

Update command won't work for multisites

I have a Drupal 7 site with a half-dozen multisites/subsites and I am trying to setup Drush so that I can run my modules updates from the command line for the subsites. Running Drush for the main site ...
0
votes
0answers
31 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 ...
10
votes
5answers
12k views

The PHP version is not correctly detected

I'm running Drush on a host that has multiple versions of PHP installed. By default, php --version would give you 5.2.x, but php53 and php54 are also available. So in my .bash_profile I have alias php=...
0
votes
3answers
372 views

Drush can't DL modules - xml error

I'm working in a Linux server with PHP 5.3.3 installed along with Drush 6.2 (?) I'm unable to dl modules to the server. When I add --verbose to the command, I see the following. Executing: wget --...
4
votes
2answers
2k views

Fatal error: Class 'Drush\Log\Logger' not found in

Hi I'm getting this Drush error no matter which command I try. Any ideas on how to resolve this? I haven't been able to find other users reporting the same issue. I'm using Drush 8
0
votes
0answers
30 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 ...
1
vote
1answer
346 views

The database is not bootstrapped in another docker container

The following problem occurs when running certain Drush commands, such as drush en features which outputs: Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush ...
0
votes
1answer
47 views

drush migrate:status comes back with SQLSTATE [hy000] [2002] No such file or directory

Using drush on my macOS. Using Nginx and MYSQL through brew. Website is running fine. The other drush commands work fine, drush cr, drush cc, etc. But running drush migrate:status or drush ms results ...
0
votes
1answer
407 views

Drush not seeing right CLI PHP version

I am not able to get Drush to recognize the installed PHP 5.4.20 (cli). $ php -v PHP 5.4.20 (cli) (built: Oct 10 2013 18:41:48) $ drush Your command line PHP installation is too old. Drush requires ...
3
votes
2answers
92 views

Interactive Drush Script

I would like to write an interactive Drush script that potentially makes a change to all pages of a website. Let's say we would would like to change "Foo" to "Baz" on each page. We want to review ...
0
votes
0answers
24 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....
2
votes
3answers
2k views

Unable to connect to local MySQL db using drush sql-sync

I'm attempting to use drush sql-sync to sync my prod database to my local dev copy, and everything seems to work until drush attempts to log into the local MySQL. When it does, it throws this error: "...
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 ...
3
votes
2answers
7k views

Drush not seeing drushrc.php configuration file

I've got a new Red Hat 6.3 server running and Drush installed with a Drupal instance running. Drush is installed via Pear and here's the output of "drush sitename status" in the Drupal install: ...
4
votes
1answer
117 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 an SA and a security update required in the Web UI, which is saying to update to 1.2 I tried drush pm:...

1
2 3 4 5
38