Questions tagged [drush]

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

400 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
42 views

drush rsync among sites

I have the following alias group set in the setA.aliases.drushrc.php: $aliases[‘site1'] = array( 'root' => '/var/www/site1', 'uri' => '88.88.88.11/site1', 'remote-host' =&...
1
vote
0answers
447 views

Command […] needs the following module(s) enabled to run:

I try to make a custom command called findpath based on instructions found there (http://www.freelock.com/comment/1965#comment-1965) When I execute my script, I have an error : Command findpath needs ...
1
vote
0answers
131 views

Drush on windows xp not working, stuck with no output at all

I'm having serious trouble running drush from the command line in windows xp. Php is working fine, and execution of some test scripts work just fine. When i try to execute drush, both from the folder ...
1
vote
0answers
92 views

Drush 7.0-dev not able to pm-updatecode

I am using a site-alias with Drush 7.0-dev and I can download modules but I can't update the code. I keep getting the following error: Command pm-updatecode needs a higher bootstrap level to run - ...
1
vote
1answer
139 views

How to ask drush to add timestamps to output?

Some of the steps in our drush-make process take a while and having timestamps in the build-log would be useful -- for every line. Is there a way to do this already, perhaps? The DRUSH_BACKEND pieces ...
1
vote
0answers
212 views

too many arguments error after updating drush to latest dev

I am getting the following error when I try to run any command in drush. Error in argument 1, char 2: option not found r /home6/whereisa/.composer/vendor/bin/drush: line 124: [: too many arguments ...
1
vote
1answer
158 views

drush 6.2.0 reports no version control found for core updates, but DOES find and use svn for module updates (pm-update)

for drush 6.2.0, when running: drush pm-updatecode --version-control=svn --svnsync --svncommit on a drupal 7 site that only needs module updates, drush will properly commit the changes to svn as ...
1
vote
1answer
318 views

Using drush to install multiple sites, how?

I'm executing the following commands in /var/www/html on a clean Ubuntu 14.04 installation: drush dl --drupal-project-rename=Platform cd Platform drush site install standard -y --db-url=[mysql ...
1
vote
0answers
126 views

Custom layouts in panels not allowing me to add content

I created custom layouts for panels in my theme/layouts folder which I linked up in my .info file. When I create a new one I am able to select it as a layout in panels, but when I click the content ...
1
vote
1answer
49 views

How do I update a site after its installation profile is updated?

Say I decide to add a new module to an installation profile I've created and used to build a bunch of sites with. Can I easily use Drush to update all of those sites to the latest version of the ...
1
vote
1answer
99 views

List returned by drush site-alias is correct, but drush @sites finds an incorrect list

I'm using drush 7.x-4.5, Drupal 7.28, Apache 2.2.21, PHP 5.3.8. I have a multi-site installation, with a dozen or so sites, such as: /path/to/drupal/sites/example1.com /path/to/drupal/sites/example2....
1
vote
1answer
322 views

Drush Bootstrap Error on Multi-Site Install

I'm getting the "needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command." error. I know this means that Drush is not able ...
1
vote
2answers
52 views

How can I apply changes to user permissions across several sites?

I am using Drupal 7, we have a total of 99 different instances of pretty much the same site. All sites have the user roles of adm_core and mgr_center. We are currently using drush and puppet to ...
1
vote
1answer
209 views

openssl key for drush

My server does not allow passwords and requires me to setup an openssl key for access. Drush however requires the server to be more open and I wonder how to setup an openssl key or some other option ...
1
vote
0answers
602 views

How can I clear caches on a local Pantheon site?

I am trying to clear all caches on a local install of Drupal (using pantheon aliases): drush @self cc all However, when the menu caches are cleared I get this error: WD pantheon_apachesolr: Error ...
1
vote
0answers
519 views

Drush archive-dump database dump failed on XAMPP

I want to import my local drupal site in another machine. This is what I ran from DOS from drupal root folder to get my site archive drush archive-dump --destination=mysite.com.tar.gz After few ...
1
vote
0answers
370 views

Certain Drush commands not available

I'm no newbie to using Drush, but I'm working on a "legacy" install that I have a feeling hasn't been set up right. This is the relevant (my purposes) part of the drush output. I can see the commands ...
1
vote
0answers
235 views

Drush not working on PHP 5.4.23

My Drush was installed on /usr/local/lib/php/drush; I have now removed it from there, and installed it on /usr/share/drush. I run the following commands. chmod u+x /usr/share/drush/drush ln -s /usr/...
1
vote
0answers
1k views

Update install profile- with or without drush

I'm fairly new to drupal and I'm getting used to drush. I'm trying to update my site with drush up and it seems to update core, contrib modules and the database okay. However, I have several modules ...
1
vote
0answers
780 views

drush Destination directory already exists

I am currently running Drush on windows via cygwin. $ drush --version drush version 5.9 Now when I am trying to do a $drush up; I am getting the following error : $ drush up Checking available ...
1
vote
1answer
59 views

Has anyone worked on a built-in CLI terminal [w/ drush]?

What would make my experience with clients/end-users easier is if there was a self-contained GUI-like terminal that would be exclusive to their drupal 7 subsite in a multi-site configuration. This ...
1
vote
1answer
137 views

Drush - /usr/bin/drush: line 129: /usr/bin/php: Success

When I run any drush command I am getting this line: /usr/bin/drush: line 129: /usr/bin/php: Success For example: [root@061889 ~]# drush /usr/bin/drush: line 129: /usr/bin/php: Success [root@061889 ...
1
vote
0answers
627 views

Can't specify a configuration(drush.ini) for Drush

I put my drush.ini into the ~/.drush/ and Drush can find it.But when I type command 'drush status' it show Drush did't use the drush.ini.But PHP application use it.Below are my drush status. /////////...
1
vote
0answers
105 views

No chance to run drush on php 5.3.2?

I have php 5.3.2 installed, which I need for Plesk11 on a virtual Server. Unfortunately drush needs 5.3.3. Is there no way to run it with 5.3.2? Otherwise I have to compile a second php especially ...
1
vote
0answers
677 views

drush make fails on patch download

drush make unsuccessful, because download of patch fails - I have (apparently equal) boxes, on one my drush make fails, on the other it's fine. Unable to download ...
1
vote
0answers
58 views

How to create database for testing

I'm implementing http://phactory.org/ to get away from the heavier aspects of test data creation. One of the prerequisite items for this is to start with an empty database, with proper schema. I ...
1
vote
0answers
426 views

drush aliases.drushrc.php file place and content

I need to upgrade a drupal 6.20 site to drupal 7 using drush sup Installed drush using apt-get install. Upgraded it to the last version using drush self-update command and downloded the site-upgrade ...
1
vote
1answer
64 views

Using Drush with ENVVARS

I use EnvVars (vhost) to set my MySQL settings so I can have cross-server settings.php file without having to update it 3 different times. I am wondering if there is a way to get drush to do one of ...
1
vote
0answers
129 views

Config of Drupal site using drush make and install profile

I am getting started with using drush make and install profiles. I have been able to successfully have my site in a git repo and rebuild and install the site using drush. I have also been able to run ...
1
vote
0answers
49 views

Drush - module/feature changes — dev --> qa --> staging --> prod

Is Drush make file and install profile used for the initial set up only? We are in very early stages of development and trying to figure out the best approaches to transfer changes across environments:...
1
vote
0answers
167 views

how to change the weight of the node to be the last one

i created aview that list all photos orderd by weight to be draggable , when i add new anode it take arandom weight but i want it to be the last one . i thought to set static weight using hook_insert ...
1
vote
1answer
144 views

Segmentation fault at search_cron()

Whenever I try to run cron on the search, using drush php-eval 'search_cron();' I get 'Segmentation fault' error. I have not this problem for any other tables. The site contains hundreds of text-...
1
vote
1answer
1k views

drush @sites command doesn't work

The command drush @sites status doesn't do anything. The full command obtained for the process is: /usr/bin/php /home/myuser/.config/composer/vendor/drush/drush/drush.php --php=/usr/bin/php --php-...
1
vote
1answer
376 views

Cannot start Drupal

I am getting this error from drush: Fatal error: Call to undefined function ctools_include() in /home/upgrade6/democratsabroad/drupal/sites/all/modules/contrib/message_notify/message_not ify....
0
votes
0answers
34 views

“Error: Allowed memory size issue”

I have Drush installed on my Inmotion hosting server. For one Drupal 7 site, it works just fine but for the other one, which is nearly identical, it doesn't work so well. Some commands it allows (like ...
0
votes
0answers
36 views

How to get Drush to be able to query the DB?

I am getting the following error trying to run Drush on Win10, WSL2, and DDev. I can run other Drush commands, but not all of them. How do I fix it? Command self-update was not found. Drush was unable ...
0
votes
0answers
88 views

Issues with Drush 10.3.5 version in Ubuntu 20.04

I installed Drush 10.3.5 version via composer in Drupal 9.0.7 but I am getting a website error as follows after I ran command drush cache-rebuild. I can not access the admin page as well. The website ...
0
votes
0answers
18 views

Drush not picking up rsync parameters from site alias

In self.yml I've got two site aliases defined like this: dev: root: /var/www/example-dev/web uri: https://dev.example.co.uk paths: public: 'sites/default/files' private: '../private' ...
0
votes
0answers
36 views

Drush can't bootstrap sites

I have an Ubuntu 18.04 server where I have one Drupal 8 and two Drupal 7 sites. I have installed drush 8.4.5 which works great for the Drupal 8 site but on the 7 ones it can't bootstrap. After some ...
0
votes
0answers
25 views

drush_backend_invoke_concurrent() alternatives

Release notes for Drush 10 claim that most of the Drush 9 commands will still run on Drush 10. So I wonder what is the alternative for drush_backend_invoke_concurrent() from backend.inc?
0
votes
0answers
32 views

Drush Launcher looking for Drush in public_html when using updb

I have a drupal 8 website up and running on a server. On this server I use the Drush Launcher to work with Drush on my site. For some reason the Drush command drush updb doesn't work I get the ...
0
votes
1answer
27 views

It doesn't work without public_html symlink

I have just updated to Ubuntu 20.04 so have a fresh install of everything. I have a working Drupal 7 site I'll call mysite. I have Drush-launcher installed globally at /usr/local/bin/drush The file ...
0
votes
0answers
66 views

Drush failing to load drush.php file

I have Drupal 8 project on my local machine, which is set up with composer and I got drush included. When I'm in project root I can call drush like: vendor/bin/drush -v And that work well (...
0
votes
0answers
49 views

PHP Segfault error when running a migration

I ran drush migrate-upgrade on a Drupal 8 fresh installed site, and it generated the migrations (from Drupal 7 to Drupal 8). After that, I tried to run drush mim upgrade_d7_user (after roles and ...
0
votes
0answers
21 views

migration plugin works but fail to migrate in drupal database

I try to migrate old blog article to a drupal website here is my migration class : class Article extends SqlBase { /** *{@inheritDoc} */ public function query() { $query = $this->...
0
votes
0answers
25 views

Multi site Image cache issue

actually i am new to drupal and i have migrated my drupal site from 8 to 9. This site is multi site, every thing is working fine but the issue is related to the images. When i cleared the cache using ...
0
votes
0answers
57 views

Drush cr is responding with Bootstrap Failed

I have a Drupal 8.9 site I built on my development server. I've now copied it over to my production server (Ubuntu 16) and set up the database. I need to run drush cr to finish the process but when I ...
0
votes
0answers
31 views

How do I change local site alias?

I've recently upgraded from Drush 8 to Drush 9. In Drush 8, I use drush @project.local.sitename status; in Drush 9, I have to run drush @project-local.sitename status. How can I replace the hyphen ...
0
votes
0answers
156 views

Drush commands are not working in Xampp on Windows

In Xampp 2 Drupal sites are there.one is drupal 7.0 and another one is drupal 8.8.7. Drush version is 8.3.5, PHP version is 7.2.22 ,composer 1.9.2 When I try enabling module in Drupal 7.0 drush en ...
0
votes
0answers
23 views

Updated to 8.9.1 getting 'content_moderation_state plugin does not exist' message

Updated a drupal project to 8.9.1, all seemed to go smoothly. After i run drush updb and I got the following message. Anyone know what's this about and how to resolve? All other update were run ...

1 2 3
4
5
8