Questions tagged [drush]

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

406 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
87 views

Drush command using chef causing error “Command needs a higher bootstrap level to run”

Expected process to exit with [0], but received '1' ---- Begin output of /usr/local/drush/drush -y en views ---- STDOUT: STDERR: Command pm-enable needs a higher bootstrap level to run - you will [...
1
vote
0answers
54 views

Drush site-upgrade target database

When using the drush site-upgrade (drush sup) to do a D6 to D7 upgrade, does the target database need to be pre-filled with D6 tables? Or can it be completely empty? Thanks
1
vote
1answer
43 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
457 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
146 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
217 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
327 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
100 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
212 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
609 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
522 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
374 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
790 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
628 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
678 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
429 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
69 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
377 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
18 views

Drush failing on preflight: A colon cannot be used in an unquoted mapping value

I can't run drush in my current project. The error I keep getting is: [preflight] A colon cannot be used in an unquoted mapping value at line 3 (near " in Command line code on line 1"). ...
0
votes
0answers
26 views

Drush script to save multiple nodes of different types

I wrote a function that updates fields of an "Intervention" content type and saves it, then saves the "Request" node that contains it, and then saves the "Dossier" node ...
0
votes
0answers
25 views

drush config:import “There are no changes to import.” for “content” view

On a Drupal 8.7.14 system with Drush 9.7.2, I modified the "content" view and now want to roll it back to the previous version that was exported with drush cex. Unfortunately, drupal does ...
0
votes
0answers
46 views

Discover custom services with drush generate

When I create a module and a custom service with drush generate and then create another service, also with drush generate, the first one is not available to inject. What is missing to make it become ...
0
votes
0answers
20 views

Unable to run drush via php's `exec` command

I'm creating an admin page for my module that will allow an admin to trigger scripts from within the module configurations. So far, I've created these routes: my_module.scripts.home: path: "/...
0
votes
1answer
44 views

Stuck in my config import because of guzzlehttp/guzzle error

I am trying to import the config from another of my Drupal 9.1.4 projects with Composer / Drush (drush config-import from a folder source, all two websites on my local repository on Xampp), but a ...
0
votes
0answers
8 views

Drush make and contrib module makefiles

If I run drush make drupal.make.yml . the downloaded contrib module colorbox has a colorbox.make file that is executed and install the library colorbox. How to not permit to run that files, with ...
0
votes
1answer
20 views

I cannot sign into my drupal site. The login page just refreshes and there are no error messages

I cannot login into any account from the login page. I can get to the admin page by doing drush user-login but if I log out of admin and try logging in again, the login page just refreshes and I do ...
0
votes
0answers
32 views

How to migrate PDF files to specific node

I have a directory with PDF files and I have 45 nodes of content type Download. I have to migrate each PDF file to specific node. All PDF file names I read from a CSV. Before these PDF files, I had to ...
0
votes
0answers
25 views

Using drush config import and update db in a rolling deployment (k8s) environment

Disclaimer: complete Drupal newbie here. I'm the infrastructure guy in the team. We are running various Drupal 8.9 instances on Kubernetes using a managed MariaDB outside k8s. We build Docker ...
0
votes
0answers
37 views

Unbuffered query errors and conflict in access to the database

I've been developing on Drupal at work for some time, now I also have a hosted personal site (on fastcomet). The first install was with 8.6 and php 7.2, then it has been idle for a while, now I ...
0
votes
0answers
35 views

How can I query a webform in all instances at once to export a file?

We recently had a security breach and those making the decision opted to remove the capability of end users to create the file upload component. What I am hoping to do is two-fold: 1.) Use drush sql-...
0
votes
0answers
46 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
61 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 ...

1 2 3
4
5
9