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
1
vote
2answers
402 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 ...
5
votes
4answers
9k views

Bootstrap failing with Drush 9.1.0

I had Drush 9 working before it got upgraded to 9.1.0 and am a little bit at my wits end why Bootstrap is failing and why I get "Bootstrap failed" or "! [NOTE] Drupal root not found. Pass --root or a @...
1
vote
1answer
617 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 ...
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-...
0
votes
0answers
35 views

Database changes across multiple drupal instances [closed]

I often have the problem that I would like to apply Drupal settings for several pages at once. Until now, I have always gone through all the pages and have changed individually. Of course, this is ...
11
votes
3answers
4k 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 ...
2
votes
1answer
738 views

“Drupal root not found. Pass --root or a @siteAlias in order to see Drupal-specific commands”

I have multiple sites inside the same htdocs directory. In one, I removed all the folders except vendor under Web. Now drush will not work (it worked before I moved the folders). But now, it cannot ...
3
votes
2answers
2k views

Drush bootstrap level error

Im running onto some issues with Drush. I worked with php 5.3 and after upgrading to 5.5, i ran into some issues and decided to downgrade my PHP version back to 5.3. Now im running into the issue that ...
1
vote
1answer
478 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
2answers
2k views

Drush out of memory when php memory limit is 1024M on my dedicate server. (CentOS)

This happened when I restarted Apache because my site was down. Normally restarting Apache or other service doesn't break Drush, but today it happened. I'm sure on my server my php.ini has memory ...
5
votes
2answers
1k views

How to have an environment specific drush.yml?

I'm using Drush 9. With the old drushrc.php I could easily include a local.drushrc.php that dynamically set the site url. How can I do it now? This is similar to How can i set site url dynamically in ...
0
votes
1answer
451 views

How to configure drush with Acquia DevDesktop on Windows to access through proxy?

There are some answers to similar questions using WAMP, but now drush is not recommended under Windows (unless using DevDesktop, which I am). And this is seriously frustrating. I followed the ...
0
votes
1answer
432 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 ...
0
votes
1answer
39 views

Import configuration in CI/CD script does not work

I have a Drupal 8.9.13. I wanted to install a new module, for example the google_tag. But in my case I do that in my CI/CD process. So to do that I did the following actions: edit the composer.json ...
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: "...
1
vote
2answers
41 views

Messing with several versions of drush

When I run drush --version I get next output: count(): Parameter must be an array or an object that implements [warning] Countable Table.php:789 Drush Version : 7.4.0 For getting rid of the ...
1
vote
2answers
429 views

Drush dl not working on Ubuntu with postgresql backend

modules can be added manually, but drush dl or drush en produce errors and will not download a module database section from settings.php $databases['default']['default'] = array( 'driver' => '...
0
votes
2answers
420 views

Translate untranslated strings

I downloaded and enabled translations for my Drupal core and modules using these Drush commands: drush dl l10n_update && drush en -y $_ drush language-add lt && drush language-enable $...
0
votes
0answers
41 views

Deadlock on Semaphore table results intermittent service denial of the site

Experience deadlock on Semaphore table frequently, which result in service denial of the site. Site configuration Drupal version : 8.8.6 Apache version: Apache/2.4.46 PHP 7.2.33 Drush version : 10.3....
4
votes
3answers
2k views

Why no alias record could be found when I'm trying to sql-sync the database?

I'm trying to synchronize a production database to two development installations at once, instead of having the production database dumped twice. In aliases.drush.inc file I'm defining a site-list ...
0
votes
1answer
2k views

“PHP Fatal error: Call to undefined method Consolidation\AnnotatedCommand\Hooks\HookManager::getHookOptions()”

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
5answers
2k 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....
4
votes
1answer
1k 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
0answers
39 views

“drush updatedb” failes with “The provided host name is not valid for this server”

I run my site with Drupal 9.1.6 on Strato Webhosting. The site is well accessible via Webbroser either under mydomain.tld or www.mydomain.tld. I can perform a database update running update.php, but ...
4
votes
1answer
373 views

Migration of content with an UI

My goal is to import data of customers from a csv file to my custom entity. For that I wrote a migration with the migrate_source_csv module as source plugin. This works fine, but the problem is, that ...
1
vote
1answer
33 views

“drush config-split:export” returns “Not enough arguments (missing: 'split').”

I recently upgraded from Drupal 8 to Drupal 9. I've used drush config-split:export (drush csex) quite often. After the upgrade, it keeps throwing an error which is very vague. Not enough arguments (...
2
votes
1answer
695 views

cannot use some drush commands

I am running into some trouble with drush I can't pm-enable the modules I just downloaded with it. I did some research but none of the solution worked for me, most cases involved switching "localhost" ...
2
votes
3answers
6k views

drush migrate-status command not found

I've installed both version of drush using composer, and trying to list migration within my newer drup8 installation, in order to migrate an older drupal 7 website .. then I feel really stucked ...
1
vote
2answers
794 views

The missing modules don't get installed after updating with Composer

To update a site locally, I cloned the code base with git to my local computer and imported the database, then ran "composer update --with-dependencies", there were no errors, then I went to /web ...
2
votes
1answer
2k views

This import is empty and if applied would delete all of your configurations

Customer bought a theme that has Commerce plugin installed with sample data. Anxious to get running and try out the new configuration system, I did what I do prior to Drupal 8.6. Commit everything but ...
0
votes
2answers
25 views

how to specify the file directory in drush config:status

drush config:import has the --source flag to specify where the import should come from. drush config:export has the --destination flag to specify where the import should go. I am trying to automate a ...
3
votes
2answers
1k 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
1answer
498 views

“drush make” is unable to determine the MIME type

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

How can I fix site UUID does not match error during config import? [duplicate]

I'm getting this error below whenever I try executing the commands drush config-import staging on the CLI. I'm basically in the process of migrating a drupal 7 DB to Drupal 8 and currently following ...
2
votes
1answer
1k views

TypeError on “drush config-export”

I've been receiving the following error message when trying to do a drush config-export command. However, I am able to successfully do the configuration export from the Drupal admin page (admin/config/...
0
votes
1answer
20 views

RuntimeException when running drush commands in root folder

I am setting up a local site for development on a ubuntu server 18.04 VM. I pull our repo into my windows machine and then mount this onto the VM as a shared folder. I run composer install and it ...
0
votes
1answer
919 views

Drush command terminated abnormally

I'm using https://github.com/drupal-composer/drupal-project and get an error when starting drush: [~/public_html/drupal]# alias drush="~/.composer/vendor/bin/drush" [~/public_html/drupal]# drush [...
7
votes
0answers
5k views

How do I delete all terms in a vocabulary? [duplicate]

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

Unknown engine type outputformat

Hello I've just updated Drupal (to version 7.53) and now in Drush when I try launch the commands: "drush @theflyingeye.org up" (to update my website) or "drush @theflyingeye.org cc" (to clean chache) ...
6
votes
1answer
5k views

How can I update a module to a specific version using Drush?

I am trying to update module entityform 7.x-1.4 to entityform 7.x-2.0-beta4. The current version of the entityform module is 7.x-2.0-rc4. But I don't want to update at this version. Can we update ...
1
vote
1answer
24 views

How do I create nodes with comments enabled using drush?

I have a drupal 9.1.5 site with a custom node type. I can create test content for it using drush by running; drush genc 1 --bundles=mynode --authors=test However, half of the content has comments ...
0
votes
0answers
23 views

Drush Error: environment settings not found or configured for Drush command

I'm working on a legacy project and am trying to see if Drush can be set up properly. I installed the drush executable locally, I'm not sure if that is the issue. But when I go to run a basic command ...
0
votes
1answer
465 views

Run a drush script from php system()

I have a Drupal module with a function that runs a system(“myscript.drush”); function _deploy_monitor_stream($submission_id) { header("Content-type: text/plain"); disable_ob(); // Outputs to ...
0
votes
1answer
362 views

Drush Hangs on wget but wget Works

Every drush command I run hangs on wget. However, if I run wget outside of drush, it works just fine. I am behind an http proxy and suspect that's factoring into the problem. I don't understand why ...
1
vote
0answers
30 views

“Class \Drupal\rsvplist\Controller\ReportController does not exist” [closed]

I'm following this Youtube tutorial to get a better grasp of module development, and I am not understanding the error I'm getting in my cli when flushing my caches. I've created an extension of ...
0
votes
0answers
19 views

It's not allowed to store backups inside the Drupal root directory

I must be missing something because I can't determine what I'm doing wrong. I've got a D7 site, and we're running Drush 8.1.10 I'm trying to run through some updates but I keep running into this error:...
2
votes
2answers
590 views

Drush rsync permission woes (files directory)

I'm rsyncing just the files directory (rest of the site is done through git) from my local Ubuntu setup to my centOS server. It worked at least (thankfully), but produced a ton of errors. First it ...
0
votes
1answer
192 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, ...
2
votes
1answer
43 views

Drush download, what port does it use?

I work on a Drupal 7 intranet site for a large company. The firewall on the server it is housed on currently does not allow any access to the Internet. I've been upgrading Drupal core and modules by ...
0
votes
1answer
2k views

Is it possible to update/remove/install 1 package with composer without updating everything?

I have seen a few posts answering this and saying that "composer require package" or "composer update package" will do this; but absolutely everything i do with composer attempts to update everything ...

1
2 3 4 5
39