Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [drush]

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

6
votes
0answers
408 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. ...
5
votes
0answers
289 views

How do I make an archived-dump of my site?

I have multiple versions of drush and cannot make an archive-dump of my site. drush8 ard/drush8 archive-dump returns [error] The drush command 'ard' (and/or 'archive-dump') could not be found. ...
3
votes
0answers
63 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 ...
3
votes
0answers
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 ...
2
votes
0answers
300 views

Drush does not run remotely, SSH does not see Drush

I had Drush 4. Then I deleted Drush folder and installed Drush 8 through Composer for my user. Now drush command works on a server for my user. Then I try to invoke drush from my local computer it ...
2
votes
0answers
117 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 ...
2
votes
0answers
162 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 ...
2
votes
0answers
99 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 ...
2
votes
0answers
60 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 ...
2
votes
0answers
70 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 ...
2
votes
0answers
296 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". ...
2
votes
0answers
42 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 "...
2
votes
0answers
138 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 ...
2
votes
0answers
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 ...
2
votes
0answers
326 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 ...
2
votes
0answers
926 views

Drush Fails to Connect to MySQL DB Server Using PDO SSL Options

Question: How do you force Drush to use all of the PDO options specified in a site's settings.php file? Background: I am using Drupal 7.22 with Apache and the Drupal files (and Drush 5.8.0) on one ...
2
votes
0answers
276 views

change drush module location

I am looking how I can change the location that drush deals with when updating modules. I want to set it to /sites/all/modules/contrib. I have suceeded in changing the download (drush dl) location ...
2
votes
0answers
111 views

What are the advantages, for managing a single multisite instance of Drupal, to using drush make instead of git fetch & merge?

I don't intend to publicly distribute an installation profile for my multisite instance. Are there still advantages to using platform/site makefiles to move code updates through dev/test/production ...
1
vote
0answers
243 views

Drush not installed via Composer

When I run composer require drush/drush It gives below error Using version ^9.3 for drush/drush ./composer.json has been updated Loading composer repositories with package information Updating ...
1
vote
0answers
145 views

sql:sync errors out in Drush 9

When I try the command drush sql:sync @dev.dev @self or drush sql:sync @dev.dev @local it errors with: Undefined class constant 'MYSQL_ATTR_SSL_CA' in Drush\Sql\SqlMysql->creds()...
1
vote
0answers
46 views

Drush sql-dump with stored procedures

According to the current documentation I don't think this is possible, or is it? (drush sql-dump --routines doesn't work or anything like that) Aaaannndd... let's say it's not possible, and I want ...
1
vote
0answers
16 views

What does the code status “build: error” signify for Drush 8?

On the install page for Drush 8, under the section "Drupal Compatibility", the code status is listed as "build: error". What are the consequences of this, if any?
1
vote
0answers
774 views

Drush 9 on Windows 10 — some Drush scripts not found — but other Drush commands work

My environment: UniServerZ XIII (a form of WAMP server), Drupal 8.4.3, Drush 9.x, Windows 10 Pro. Used Composer to install Drupal and also for Drush (as a site install). Windows PATH (for local user) ...
1
vote
0answers
95 views

Why do I get this error?

I installed Drush with Composer and I get well the Drush version. drush cache-clear drush works too, but drush webform-libraries-make returns me the following error. The drush command 'webform-...
1
vote
0answers
40 views

There is a standard for the error codes in the drush_set_error() function?

I usually use the drush_set_error() function when I want to log a error in drush, sometimes I just do something like this: drush_set_error('DRUSH_INVALID_ARGUMENT', '....'); sometimes ...
1
vote
0answers
214 views

Drupal 8 User feature export display errors

I am getting errors once export user feature. I have just export and put inside my module folder. Drush show below error: Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException: ...
1
vote
0answers
284 views

Unknown option `--tail` when running `drush ws --tail`

I am using Drush version 9.0-dev-dev. When I run drush ws --tail, I get the following error: [error] Unknown option: --tail. See `drush help watchdog-show` for available options. To suppress this ...
1
vote
0answers
74 views

PHP Fatal error while updating the UUID

I am getting the following error while updating the UUID with sudo drush config-set "system.site" uuid "d523bcdf-9d4b-45f4-9acc-a97ba4889b66" on Drupal 8.2.x. PHP Fatal error: Class Symfony\...
1
vote
0answers
282 views

Fatal error: Cannot redeclare composerRequireDrupal8()

I am using Composer and Drush. Everything was working smoothly, but after I installed the Panels module with Composer, I started getting the following error all the times I run Drush. Fatal error: ...
1
vote
0answers
85 views

Drush pm-list needs a higher bootstrap level to run

I am getting this error when trying to run pm-list. I am in the Drupal folder, not at the root, on Mamp Pro on my Mac using OS X El Capitan. I have tried setting the host from localhost to 127.0.0.1, ...
1
vote
0answers
600 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 ...
1
vote
0answers
29 views

Drush commands in submodule

I have a module as defined: parent child1 child2 ... parent module files These modules install and operate correctly. My question is regarding drush. I want child1 to have the drush ...
1
vote
0answers
626 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 ...
1
vote
0answers
58 views

Upgrade from Drush 5->Drush 8, @sites stopped working. Bug or configuration issue?

All of this worked fine in drush 5.10. It is only since we jumped from the 5 branch directly to drush 8.1.10 that we have had the issue. The ultimate questions are: Is this a bug in drush 8 or a ...
1
vote
0answers
161 views

`drush pm-update drupal` fails to copy to backup

Tried to update some of my Drupal 7 installation with drush. Some of them were successful while some were not. The error ones generate message like this: [foobar@server htdocs]$ drush pm-update ...
1
vote
0answers
374 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 ...
1
vote
0answers
207 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 ...
1
vote
0answers
128 views

Drupal 6.37 to 8.2.x upgrade with drush fails with 1115 Unknown character set: 'utf8mb4'

I am upgrading a legacy Drupal 6.37 site running on mysql 5.1 to a fresh install of Drupal 8.2.1 with mysql 5.7.16 on a remote host. I have installed the migration modules required for drush and am ...
1
vote
0answers
89 views

“drush up” is changing my selinux context

Disclaimer: I have found a way to fix this problem short-term, but I'm curious if anyone can explain to me why it's happening, or if someone has found a better fix than what I'm doing. If it exists ...
1
vote
0answers
78 views

How to boostrap Drush from within an update hook?

I have a drush command I am using to convert field_collection to multifield. /** * Convert Field Collection to Multifield. */ function mvpd_update_7018() { module_load_include('inc', 'multifield'...
1
vote
0answers
416 views

Can you use drush to update to a different module version?

I know you can download a specific version. Example: drush dl webform-7.x-3.24 According to "drush up" the webform module is up to date. Thats fine but now I want to update the webform module to use ...
1
vote
0answers
151 views

Why does the “drush status” command result in “Permission denied”?

I installed Drush via global Composer, and it seems that it should have installed correctly. However, when I executed drush status in terminal, it resulted in Permission denied. Why is this happening ...
1
vote
0answers
210 views

Commands don't work anymore on a site running on a virtual machine

To explain in specifics, when I run any drush command like drush en, drush fl or drush fra or any similar site specific commands, they don't get executed and I get the following output: The drush ...
1
vote
0answers
54 views

Does running `drush rf` detect needed updates by look at the version of files on disk or by an entry in the database?

Does running drush rf detected needed updates by looking at the version of files on disk or by an entry in the database? We run in a load balancer, fail over situations on a some production server. ...
1
vote
0answers
86 views

Create a .make file task in Bamboo by using Drush for a Drupal project

I'm setting up a CI system by using Bamboo. My aim: As soon as a change is pushed to the bitbucket server, the next task will create a ".make" file using Drush. Bamboo is also found on the same ...
1
vote
0answers
70 views

Libraries not found when installing from custom profile

I've created a custom Drupal installation profile which has the epsacrop project included in the makefile and as a requirement in the .info file. Also, the epsascrop project requires two libraries: ...
1
vote
0answers
935 views

Drush 8 / Drupal 8 fatal error class not found exception AccountInterface

I have a Windows 10 PC, using git-bash as terminal window to run drush. Drush is installed in c:\users\myname\appdata\roaming\composer\vendor\drush\drush. My apache server (using xampp) is on the d ...
1
vote
0answers
110 views

Drush hangs only when executing a command on a remote machine

I am trying to use Drush to synchronise a local dev version of my Drupal site and I've set up the following alias file (spc.aliases.drushrc.php) in my .drush directory to allow Drush to connect ...
1
vote
0answers
449 views

Drush isn't able to download updates

My sys admin hasn't made any changes to dir permissions, but lately whenever I run DRUSH UP I get the following error: [error] Unable to download drupal-7.43.tar.gz to /srv/www/htdocs from ...
1
vote
0answers
533 views

Drush 8.0.3 Failed to get available update data and simplexml_load_file warning

Please, can someone offer help with this error: drush dl simplexml_load_file(): I/O warning : failed to load external entity [warning] "" Project.php:74 Failed to get available update data from [...