Questions tagged [drush]

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

373 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
468 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
475 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. ...
5
votes
1answer
145 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 ...
3
votes
0answers
167 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
1answer
257 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 ...
3
votes
1answer
214 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 ...
3
votes
1answer
355 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 ...
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 ...
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-...
3
votes
1answer
223 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 ...
3
votes
1answer
85 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 ...
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 ...
2
votes
1answer
109 views

Using Drush without local copy of Drupal, only calling site aliases - No site aliases found

We have a project which does not contain a Drupal codebase. It's Cypress.io test with Drush 9 added using Composer. I would like to execute Drush with site alias to work with the remote site while ...
2
votes
1answer
160 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
1answer
450 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 ...
2
votes
1answer
511 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
0answers
758 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 ...
2
votes
0answers
35 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
126 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
1answer
856 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/...
2
votes
0answers
187 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
109 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
70 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
1answer
271 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)...
2
votes
0answers
76 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
2answers
196 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[...
2
votes
1answer
269 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 ...
2
votes
0answers
1k 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 ...
2
votes
1answer
516 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 ...
2
votes
1answer
139 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 ...
2
votes
0answers
307 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
2answers
129 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 ...
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
1answer
299 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 ...
2
votes
2answers
862 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 ...
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
336 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
3answers
254 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 ...
2
votes
1answer
254 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 ...
2
votes
0answers
993 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
282 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
157 views

Edit nodes from command line

I am looking for a way to manage nodes from command line. I am aware of drush and drush-entity, and it can do the job in a way, but I thought it could be easier having the nodes stored in files (...
2
votes
1answer
533 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 ...
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 ...
2
votes
1answer
273 views

Aegir Drush Drupal 6

I am using the Hosting module through Aegir. I created a module with some extra fields such as "site_name," "fields," and "description," which was done successfully. I want to use these fields on a ...
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: "...
2
votes
1answer
203 views

Way to prevent drush from eating custom profiles when updating core?

I use drush make with a stub .make file to download a custom profile via git. that profile has all of the modules I want all of my sites to start out with. If I then go into that site, and run "...
1
vote
0answers
53 views

Drush cannot connect to the database when updating

I am trying to update Drupal from version 8.7.5 to 8.7.7. I installed Drupal using composer and had a really old version of Drush that I had installed from apt-get. I uninstalled the old version and ...
1
vote
0answers
72 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 ...