Questions tagged [drush]

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

370 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
98 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
315 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
51 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
200 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
575 views

Drush Clear Cache with Pantheon

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
1answer
636 views

How to install a drupal distribution using Drush quickstart command?

What is the command for drush qc to install a drupal distribution? I'm trying to install this one: https://drupal.org/project/onepagecv
1
vote
0answers
498 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
349 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
230 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
2answers
241 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 ...
1
vote
0answers
746 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
134 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
617 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
655 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
57 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
381 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
0answers
128 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
145 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 (...
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
136 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
970 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
2k views

Unable to upgrade from Drush 5.10.0 to Drush 8

I try to upgrade from drush 5.10.0 to 8 by using the following command: sudo composer global require drush/drush:~8 And it returns: Changed current directory to /home/lupiyardo/.composer Running ...
1
vote
1answer
363 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
1answer
26 views

Drush can not connect to mysql when run a Drupal in a Docker/Azure

I have a website that it's running ok in Docker/Azure. I have this configuration in my settings.php $databases ['default'] ['default'] = array ( 'database' => getenv ( 'MYSQL_DATABASE' ), ...
0
votes
0answers
41 views

What does “The Language field needs to be updated.” mean?

It may be a stupid question, but I don't quite understand how to go around drush entity-updates from Drupal Version 8.7 on. For example on /admin/reports/status, it says: Textbox The ...
0
votes
1answer
39 views

Can drush 9 be used without composer?

I have a Drupal 7 site that was not built with composer. I have been using Drush 7 with it, but about a week ago, wd-show --tail stopped working, I'm not getting any output. I installed Drush 9, but ...
0
votes
0answers
18 views

The drush command 'variable-get' could not be executed

Command variable-get requires Drupal core version 6 or 7 to run. The drush command 'variable-get' could not be executed. drush st Drupal version : 8.7.3 Site URI ...
0
votes
0answers
13 views

Ubercart 7x Migration to Commerce 8.x with Drush?

I've been experimenting with upgrading an Ubercart 7.x site to Commerce 8.x and I haven't had much luck so far. The migration process times out when using the migrate UI, so I've tried re-running the ...
0
votes
0answers
36 views

Drush behaves strangely on Windows 10 with Acquia Dev Desktop

After having istalled drush via composer locally I had to make the following changes inside sites\default\settings.php for it to work: Create the database connection array $databases['default']['...
0
votes
0answers
13 views

Drush migration argument for xml source

I asked this question a while back and it was answered correctly and helpfully. However, I'm currently looking for a different solution. I need a way to create a custom argument which I can use to ...
0
votes
0answers
13 views

Can I remove warnings/notices from the output of “drush pm:security --fields=name --format=json”?

Running a command similar to drush pm:security --fields=name --format=json gives me what I am looking for. Is there a way to remove warnings and notices from the output? I can't see anything in the ...
0
votes
0answers
17 views

Priority of aliases files for Drush

I have an installation with lando. On the project, we have a directory drush with an aliases file for the project. This file defines aliases with the root specific for the lando architecture. In my ...
0
votes
0answers
18 views

Drush not working after updating Acquia dev desktop

So basically I updated my Acquia dev desktop in my MAC and the Drush stopped working throwing some error. I have been trying to fix this issue from past few hours but I couldn't find anything on the ...
0
votes
0answers
26 views

Errors while updating core to latest version

I have a website I had worked on but never finished, last year. It is at version 8.5.4. I've imported it (from a devdesktop environment) into a Docker/Docksal environment. At this point I can see a ...
0
votes
0answers
55 views

How to change the drush default timeout of 14400?

We face a major problem for our client. To put it in context, this is a Drupal 8 with commerce that has a large number of products that come from a PIM. To be clearer, the products are not managed in ...
0
votes
1answer
30 views

drush handling array variable values

I am using Drupal 7 and drush 7.4.0. How do I handle array variables with drush? For example, I have a variable, social_sharing, for which drush vget social_sharing Produces: facebook: facebook ...
0
votes
0answers
25 views

How to install the module Entity Browser?

I'm trying to install the Entity Browser module, but I'm getting this error: It basically says that the "entity_browser" entity type does not exist, and based on the error I tried to install the ...
0
votes
0answers
26 views

WHERE the alias file should locate in drupal

I have tried some ways to create an alias for my local Drupal project https://www.drupal.org/node/1401522 https://www.drupal.org/project/drush/issues/831272 https://www.drupal.org/project/drush/...
0
votes
1answer
203 views

How to fix drush issue “Could not bootstrap at phase 5”?

I installed drush via Composer. I am using drush 9.5.2 with Drupal 8.6.4. I mention that everything is fine on local. However, in a docker instance in GitLab CI, when I execute vendor/bin/drush ...
0
votes
0answers
35 views

Do we need any init steps in this scenario?

In Order to install Drupal Core using Code deploy, I follow these steps. Download drupal-7.x.zip /usr/bin/unzip -o /tmp/drupal.zip /bin/mv /var/www/drupal-7.x /var/www/drupal Similar steps to ...
0
votes
1answer
50 views

Drush Feature Update removing t() and l() function usages

I have a feature that currently has things like this: 'body' => '<h3>' . t('Welcome back') . '<span class="fname">%user:field_first_name</span>!</h3>', However, using ...
0
votes
1answer
19 views

After upgrading from drush 7 to 8 with multisites, using drush from site directory cannot find drupal 7 (Windows)

Previously with drush 7, I could cd to the site directory (e.g. sites/example1.com) and perform drush commands (e.g. drush st). Now with drush 8, unless I specify the root in the drush command, it ...
0
votes
0answers
32 views

Access Denied For valid users

Backstory: Our website had the meta-tag http issue described on this post: https://www.drupal.org/project/metatag/issues/2842049 I can resolve this issue by applying either solution 24 or 31. ...
0
votes
0answers
61 views

sql-dump piping output to the screen

I am trying to dump a remote Drupal site to a local SQL dump file. In Drush 8 this worked a treat: drush @site.alias sql-dump > ~/Dumps/dumpy.2019-02-19.sql Now, if I run this command in Drush 9 (...
0
votes
0answers
44 views

Drush not functioning

I upgraded my DevDesktop a few months ago and since that time Drush has stopped working for all my ADD sites. When I run drush -v, for example, I get this: -bash: drush: command not found I ran ...
0
votes
1answer
23 views

drush language importing untranslated strings

I am having 2 environments. A staging and a production one. I want all string to sync the strings, so that whenever a new string comes to staging it is available for translation in production. For ...