Questions tagged [drush]

Use it for questions about the command line shell and Unix scripting interface for Drupal (a.k.a. Drush).

417 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
1 answer
167 views

Update core keeping other composer packages

After upgrading Drupal to the last version with Drush (8.1.15) the other composer.json dependencies (e.g. drupalconsole) are removed. Are there any way to update Drupal with Drush keeping other ...
jorgetutor's user avatar
  • 2,125
5 votes
2 answers
421 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 ...
Chris4783's user avatar
  • 1,083
5 votes
0 answers
499 views

So, running Drush update messed up your SVN repo

I'm working on a client's site. We had the sites folder as the root of a SVN repository. At some point we ran drush to do module/core updates but Drush was (mistakenly) set to ignore the repository. ...
Wray Bowling's user avatar
4 votes
0 answers
455 views

Configuration export via drush randomly change the value of labels\other content in multilanguage sites

I've a multilanguage site, with Italian set as default and English as secondary language. When exporting the configuration via drush - drush cex command - sometimes the labels of other kind of content ...
Giuseppe's user avatar
  • 917
4 votes
0 answers
301 views

--root required for all drush 8 commands and I don't know why

Does not work: root@deftig-web001:/var/www/1.websiteserver.net/platform# drush status --uri=dev052 PHP executable : /usr/bin/php PHP configuration : /etc/php5/cli/php.ini PHP OS ...
Maarten De Block's user avatar
4 votes
0 answers
2k views

Drush commands failing with remote database and no local MySQL

I am attempting to run cron via crontab on a server that has a remote database, as such there is no mysql isntance installed locally. When attempting to run the command drush core-cron i received the ...
Rob Holmes's user avatar
3 votes
1 answer
6k 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 ...
James Rome's user avatar
3 votes
1 answer
6k views

Drush database issue

I have encountered an issue with Drush, which doesn't show many commands that should be present. When I run a command with the --debug flag, I see the following error message. [Symfony\Component\...
BEGRAFX's user avatar
  • 33
3 votes
1 answer
410 views

Output array data on drush error when showing stack trace

I'm trying to install a module, but its giving me errors during a drush enable. It shows the stack trace log and I can see it has something to do with the flag_lists_type during the install process. I ...
Patoshi パトシ's user avatar
3 votes
0 answers
2k views

How to update a library through drush or git url? what about update chosen library?

I am new with Drush and git... previously I use to work with Ftp so at the moment I would like to know How I can update a common library by using drush or by using git (library url). I know that in ...
Liz's user avatar
  • 63
3 votes
1 answer
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-...
latvian's user avatar
  • 807
3 votes
1 answer
224 views

Drush make and svn:externals

I'm planning to use drush "make" function for my new D7 projects. I would like to know if there is a way to detect, in my project, the repertories managed by "svn externals". I mean, is "drush ...
Julien's user avatar
  • 81
3 votes
0 answers
93 views

When using a dev version of a module, how can I easily get a notification of the next stable release?

From time to time I need to install a dev release of a frequently updated module (Views, etc.) Usually, this is because I need a patch that has been applied to the dev branch that has not yet made it ...
Patrick Kenny's user avatar
3 votes
2 answers
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 ...
Donny van V's user avatar
2 votes
1 answer
273 views

Drush can't write to /tmp

Drush does not seem to be able to move files to the tmp folder on my local machine. Changing the tmp folder location to for instance "sites/default/files" works, but I would like to know why ...
Morten's user avatar
  • 101
2 votes
0 answers
130 views

Drush 10 pass alias to remote

Our remote environments are currently fronted by a Linux instance acting as the gatekeeper between the developers and the actual environments (apache and mysql instances running Drupal). This was done ...
Joseph's user avatar
  • 1,596
2 votes
0 answers
62 views

drush cr on replicated servers

I am the administrator of a Drupal site replicated on 4 servers, behind a load balancer. There is only one database that is shared by the 4 instances. When I run drush cr, is it necessary to run it on ...
Richi RM's user avatar
  • 143
2 votes
0 answers
314 views

Drush 10 sql-sync and multi site --uri not working

I am doing some D8 to D9 migrations and having a problem with a multisite. I upgraded my local version to drush 10 as well as on my dev server and included the drush/sites/us2.site.yml file. I can sql-...
Ronnie's user avatar
  • 487
2 votes
2 answers
1k views

PHP Fatal error: Uncaught ArgumentCountError on Drush run

After I updated my site to Drupal 8.9.16 and Drush to 10.5.0 I get the following error PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function when running any Drush command. This ...
Joost's user avatar
  • 1,318
2 votes
0 answers
165 views

Database dump without revisions?

Are there methods to exclude revision data in a database dump? The purpose would be to reduce the file size for developers that want a db dump for local development. I know that drush sql-dump has an ...
donquixote's user avatar
  • 3,632
2 votes
1 answer
120 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 ...
awm's user avatar
  • 2,459
2 votes
0 answers
5k 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, ...
waltWright's user avatar
2 votes
1 answer
925 views

cannot use some drush commands

I am running into some trouble with drush pm-enable: I cannot enable the modules I just downloaded. I did some research but none of the solution worked for me, most cases involved switching localhost ...
oproz's user avatar
  • 21
2 votes
0 answers
868 views

Drush 8.1.10 via composer only partially working with D8.3

Ubuntu 16.04 localhost Drush 8.1.10 installed via composer as per the recommended route. Drupal 8.3 Drush runs and completes some tasks. eg drush status PHP executable : /usr/bin/php ...
avocado's user avatar
  • 21
2 votes
0 answers
1k views

How can drush site-alias show all sites, but drush @sites command don't find them?

We are running a drupal 7 multi-site installation within a (windows based) cloud service. We have drush 8.1.10 installed via composer. For the update process, I want to be able to use drush @sites ...
floneo's user avatar
  • 21
2 votes
0 answers
133 views

pm-update using linux cron fails

I use below script to update the drupal - core and modules - using the linux cron. #!/bin/bash perform_backup(){ cd "$1" echo "Current working directory : $(pwd)" if /usr/bin/drush -r . status ...
sjsam's user avatar
  • 152
2 votes
2 answers
2k 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/...
Bill C's user avatar
  • 21
2 votes
0 answers
1k views

Error 1146 Table doesn't exist checking "drush migrate-status" upgrading

I have found the next error when I tried "drush migrate-status" migrating from Drupal 7 to Drupal 8. Drupal 7.53 and Drupal 8.2.5 both with 10.0.28-MariaDB SLE 12 SP1 package. SQLSTATE[42S02]: Base ...
IMR's user avatar
  • 91
2 votes
0 answers
345 views

remote Drush stops because of " headers already sent"

I am struggling with a remote drush error since days, and don't find the cause. I already checked the Internet up and down for an answer, but could not find a solution for my problem (here,here and ...
nerdoc's user avatar
  • 226
2 votes
1 answer
152 views

Continuous migration

I would like to know what is the best way to achieve a continuous migration from external DB (via Migrate). Basically, there are several migration classes that need to be to repeatedly migrated in an ...
precog99's user avatar
2 votes
0 answers
253 views

Drush PHP Path Issue

I've searched for an answer, but can't figure this out. I've got PHP 5.4 installed on a server. I've installed the latest 7.x branch of Drupal (7.39) and installed DRUSH via pear. Now, whenever I ...
Carpesimia's user avatar
2 votes
0 answers
127 views

How to include translations in custom install profile

I'm creating a custom install profile and want to be able to use drush make to quickly set up all files. What is the best way to have drush make download the drupal core translation files into my ...
witti's user avatar
  • 171
2 votes
0 answers
99 views

hook_install_tasks() in `drush site-install`?

Does anyone know of a way to add install tasks to drush site-install? I have already added a hook_install_tasks() my custom installation profile, but that does not make it into drush when I run drush ...
classic_mgbellaire's user avatar
2 votes
1 answer
309 views

Let local drush call remote drush with `bash` or `sh`

I am trying to get database syncing with drush going. I installed drush on my webserver, but I only have the permission to run it with bash or sh before drush. (So with ./drush I get permission denied)...
mtthias's user avatar
  • 21
2 votes
0 answers
82 views

Any advantage of using drush remote site aliases compared with Ansible

I like to use Ansible, when I'm automating work on a remote server. Its agentless nature allows me to run Drush commands on those server very easily. When there are multiple sites, I can set up local ...
Miloš Kroulík's user avatar
2 votes
2 answers
262 views

Downloading custom module with drush make

I am trying to download a custom module from a private repo using drush make. This is the make file: core = 7.x api = 2 projects[cs_all][type] = "module" projects[cs_all][subdir] = "contrib" projects[...
adop's user avatar
  • 41
2 votes
0 answers
969 views

drush.bat fails with Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY'

I have a production apache server (which I have limited capabilities to fix) and I'm struggling to install drush on it. It's Win 2008 R2 server, the php is 5.3.8 and the Mysql server is 5.1.60. ...
sam452's user avatar
  • 451
2 votes
1 answer
455 views

How to use drush site-lists alias?

I several folders containing symlinks to my drupal sites. I'd like to use this folder structure to create an alias so I can run commands on each group of sites. I'm trying to do what "drush @sites ...
Stuart Crouch's user avatar
2 votes
1 answer
144 views

Drush, Omega 4 - Does not seem to recognize Drupal site

I've installed Drupal 7, Drush 7.0 and the Omega 4 theme. I'm using MAMP. Drush does not seem to recognize the /Applications/MAMP/htdocs/newsite/ as a Drupal folder (which it is). I'm attempting to ...
Logan Miller's user avatar
2 votes
0 answers
330 views

Debugging Drupal via Drush on Eclipse

I've been trying to set up a debug environment for Drush using Eclipse(Kepler), in order to find out why the difference of the result of running hook_install() between via Web UI and via "Drush en". ...
bko's user avatar
  • 21
2 votes
2 answers
132 views

Using drush up with --gitinfofile

I tried to manage drupal modules with the --package_handler=git_drupalorg which needed me to add the --gitinfofile option. Using drush dl this works but if I try to update my modules with drush up the ...
grossmann-mcs's user avatar
2 votes
0 answers
47 views

Structure menu link is wrong after use command "drush rr"

I changed structure some folder module then use command "drush rr" to registry rebuild modules but get a trouble look like picture: - Link "add new view","import" and "settings" not inside link "...
tantan's user avatar
  • 21
2 votes
1 answer
354 views

drush 7 won't take a command without a site alias?

I just installed drush 7.0-dev and with it all the composer and bash-completion goodness. The installation went well and in a new shell it (drush 7) is now my default drush. However it doesn't seem ...
Dan Shumaker's user avatar
2 votes
0 answers
1k views

Call to undefined function lock_acquire with Drush on Drupal 7

I’m running my local development sites on a Windows machine with Uniserver. I have them all set up as vhosts. Most of them are Drupal 7, but a couple are Drupal 6. I installed Drush for Windows ...
druque's user avatar
  • 53
2 votes
2 answers
1k 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 ...
Citricguy's user avatar
  • 7,924
2 votes
0 answers
147 views

Checksum error while updating module

I ran pm-update with drush which is giving me this error File mediabox-7.x-1.x-dev.tar.gz_date=1393593819 is corrupt (wrong [error] md5 checksum). Updating project mediabox failed. Attempting to ...
Dudepal's user avatar
  • 274
2 votes
0 answers
85 views

Drush make on Windows 7: Where does my ssh key go?

I'm on windows 7 using (I think) the current version of drush, installed using the msi install file. I have to download a proprietary drupal distro from a proprietary server using a drush make file ...
user24477's user avatar
2 votes
0 answers
383 views

drush sup Gives "needs a higher bootstrap level" from within document root

I'm trying to upgrade a Drupal 6 site to Drupal 7. I do: cd /path/to/sites/drupal6-site drush sup However I get the errors: Command site-upgrade needs a higher bootstrap level to run - you will ...
Explosion Pills's user avatar
2 votes
3 answers
268 views

How to import git commit from development to testing in Aegir

So, I have established Aegir to take care of my sites workflow. Now I made changes to my development site, used git to load the commit to development site. How do I import the latest commits to ...
Sara's user avatar
  • 63
2 votes
1 answer
269 views

How to build an Isolated Drupal instance for testing

In order to run DrupalWebTests on travis-ci, I need to build a new Drupal instance where these tests are ran. Typically, one runs these tests with drush -l http://localhost.example test-run SomeTest ...
berkes's user avatar
  • 3,100

1
2 3 4 5
9