Stack Exchange Network

Stack Exchange network consists of 175 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
454 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
404 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
124 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
85 views

Why does Drush need the --uri option to return absolute URLs?

I want to execute a View and export the JSON file to the files directory. I am using Views Data Export and VDE drush add-on modules. My view has a file/PDF field and I want to provide a direct link to ...
2
votes
0answers
450 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 ...
2
votes
0answers
31 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 ...
2
votes
0answers
124 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
179 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
106 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
64 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
72 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
305 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
44 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
140 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
334 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
967 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
279 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
115 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
49 views

Cannot update Acquia Dev Desktop Drupal Core 7.61 to 7.65 through Drush

I did a brand new install of Drupal 7.61 using Acquia Dev Desktop 2. I selected a "Standard" installation profile after launching the site in a browser. I tried to update Drupal Core through the Drush ...
1
vote
0answers
40 views

Body, files, and paths problems

I was suggested so many times to migrate my old project from D6, so I finally decided to jump into this. And as it always happens with Drupal, things never work as expected at first attempt. The old ...
1
vote
0answers
40 views

Post update hook fails to run via Drush, but works via update.php

I've implemented hook_post_update_NAME to bulk import some files into Drupal (creating file and media entities for them). This hook runs correctly when I use update.php. But it seems to silently fail ...
1
vote
0answers
416 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
239 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
556 views

Drush version doesn't update and cannot get local Drupal 8 site install to work on Linux

I am having trouble completing a local install of Drupal 8 on my Linux laptop. I am following this Guide/Blog I am running Xubuntu Linux 16.04.3 LTS Composer is installed: $ which composer /usr/...
1
vote
0answers
54 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
907 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
113 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
44 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
258 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
79 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
316 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
94 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
692 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
712 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
357 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 ...
1
vote
0answers
65 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
234 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
426 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
226 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
148 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
93 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
82 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
461 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
167 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
273 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
56 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
99 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 ...