Questions tagged [drush]

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

368 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
553 views

Drush 8.0.3 Failed to get available update data and simplexml_load_file warning

Please, can someone offer help with this error: drush dl simplexml_load_file(): I/O warning : failed to load external entity [warning] "" Project.php:74 Failed to get available update data from [...
1
vote
0answers
663 views

Drush make: external command could not be executed

OS: Ubuntu 14.04 php: PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 2015 01:34:46) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Zend ...
1
vote
1answer
33 views

How can I set an API key, which contains equal sign set at Drush site-install?

When I use the drush site-install command and a form value contains the equal sign (an API key for example), then Drush cuts the value at the equal sign. For example: drush si -y profile_name ...
1
vote
0answers
103 views

Drush: can't change User Password?

According to http://drushcommands.com/drush-6x/user/user-password/ the command drush user-password someuser --password="correct horse battery staple" should change a user's password. I am trying ...
1
vote
1answer
176 views

Running drush site-install on Windows

I ran the following commands: drush dl drupal-8 --drupal-project-rename=drupal_8 cd drupal_8 drush site-install standard --account-name=****** --account-pass=******** --db-url=mysql://*****:******@...
1
vote
0answers
172 views

Error using Drush on Windows 7 using Cgwin & Composer for Installation - The system cannot find the path specified

I am using Windows 7 64, with WAMPServer64, with Cygwin and composer installed. C:\cygwin64 C:\wamp C:\Users\dev\AppData\Roaming\Composer I have followed all the steps required to complete a ...
1
vote
0answers
2k views

How do I run “drush sql-query”?

I am using Drush 6.0 for my Drupal 7.x site. When I run drush sqlq "select * from users where uid=1", it always shows the following error: 'mysql' is not recognized as an internal or external ...
1
vote
0answers
663 views

How do I install Drush?

I am struggling on how to install Drush. I have only seen this as a similar question which doesn't answer my question. Drush's own tutorial from here, doesn't offer much. Its a little vague ...
1
vote
1answer
111 views

Continuous migration

I would like to know what is the best way to achieve a continuous migration from external DB (via Migrate). Basically, there are several migration classes that need to be to repeatedly migrated in an ...
1
vote
0answers
278 views

Why Are we getting “WD view: View name 'XXX' is already taken” when running Drush; and how can it be fixed?

We are getting the following output whenever we run the drush script. This is problematic in logs when the drush cron is run. What is causing this and how do we fix it? This started showing up ...
1
vote
0answers
33 views

Why is omega-guard giving me an error?

I installed drush on Mac and tried running drush omega-guard from within my theme directory like I had done before on linux. However I keep getting this error: The drush command 'omega-guard' could ...
1
vote
1answer
192 views

Custom migration from external DB

I'm trying to migrate content from an Expression Engine database to Drupal 8. I set up a $databases['migrate']['default'] in settings.php and copied and modified BeerNode.php from migrate_plus ...
1
vote
0answers
57 views

Need clarification Rebuild Registry instructions

From the module page: You can just drush dl registry_rebuild and drush will download it into your .drush folder. (Alternately, you can obtain the package another way and copy the folder into .drush ...
1
vote
0answers
144 views

drush site install to a different database host

I created a new Drupal site from a PHP script on a web server. The web server and database server is on different hardware, different ip addresses. drush si --db-url=mysql://mytest:mytest@dbserver:...
1
vote
0answers
82 views

Manage multiple feeds import using cli

How can I optimize multiple feed importer from cli? Is there any way to optimize multisites using multicron for each site in drupal 7.? I want to implement like this https://www.drupal.org/node/...
1
vote
0answers
170 views

import from wordpress migrate with drush

UPDATE: I managed to import my 64MB of content!!!! I ket expecting to see something new appearing in the confirguration tab from migrate, but that's never been the case. I also kept having the AJAX ...
1
vote
0answers
54 views

drush sql-sync fails on access denied

Both dev and prod are on the same server, but not in a multi-site install. I have set up an alias file including %dump-dir path - a path that should be writeable by the account I'm doing the command ...
1
vote
0answers
45 views

Change profile makefile download location?

This is similar to Changing Drush make default subdir for install profiles, but with a twist. I'm using a set of nested profiles to inherit default modules, each with a makefile. Unfortunately, this ...
1
vote
1answer
133 views

Why didn't the Drush command bam-restore work?

I'm a new admin of a Drupal site (core 7.38 on an OpenSUSE 11 server). Yesterday I ran Drush up to update VBO to 7.x-3.3 and suddenly I could no longer access the site. The homepage displayed the site'...
1
vote
1answer
275 views

Drush not selecting database

I'm using a Vagrant environment generated from https://puphpet.com/ for a Drupal project & it is all going well except for Drush which gives me an error any time I try running "drush cc -all", see ...
1
vote
0answers
170 views

drupal issue with install profile and domain module?

I had generated the make file with the contrib module domain. When we enable the domain module, we just want to append the following code to the settings.php file. include_once DRUPAL_ROOT.'/profiles/...
1
vote
0answers
396 views

drush.bat fails with Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY'

I have a production apache server (which I have limited capabilities to fix) and I'm struggling to install drush on it. It's Win 2008 R2 server, the php is 5.3.8 and the Mysql server is 5.1.60. ...
1
vote
2answers
324 views

Upgraded Drupal 7.37 to 7.38 using Drush and its not working. update needs a higher bootstrap level to run - Error

I am new to Drupal. I am reading a book called Definitive Guide to Drupal 7. I had installed Drush on Windows 7 with Git as well. It was working last week. Since 7.38 is released I tried to ...
1
vote
0answers
395 views

Database info mising from drush status

My drush isn't working as expected. I think it's because the database information isn't being read properly. There is no DB info in the status command. httpdocs]# drush st Drupal version : ...
1
vote
1answer
31 views

Save my link configuration with drush or else?

I just modified my database so I can translate 2 link from a block that I made. The translation won't show up until I go here admin/structure/menu/item/1022/edit and press Save. I would like to know ...
1
vote
1answer
40 views

“drush up” turns off all of my modules

I'm using drush to make version updates and any time a module (in todays case, recaptcha) needs to be updated, it successfully does the update. However it seems to reset the database turning off ...
1
vote
0answers
131 views

Drush 7 downloads modules in zip format

I had Drush 6 working correctly. I had been using Drush 7 on Mac working correctly but now I installed Drush 7 on Windows. Now when I download modules using drush like drush dl Panels, it downloads ...
1
vote
0answers
64 views

Automate Drupal Reindex

I wrote a ruby script to create a "Help" doc installation on a test machine (CentOS, VM). On step of the process is to reindex the data for the "Help" doc installation (5GB of data). The total amount ...
1
vote
0answers
828 views

Drush site-install fails with SQLSTATE[HY000] [2002]

I am having difficulties installing a d7 drupal site using Drush. The files downloaded fine using Drush. From within the renamed folder for the drush install I type Pauls-iMac:drush-test Trotter$ ...
1
vote
1answer
101 views

Drush with multiple sites (all/modules)

I've searched around but found no satisfying answer yet. I have all modules in sites/all/modules, so no site specific modules are present. I'm working on a VM. First problem - creating a dump file ...
1
vote
0answers
97 views

Calling HttpRequest with Drush produce PHP fatal error

I created a drush command which call a function which send emails. When I'm calling this method with the devel help module, the function is called correctly and my emails are sent. But when I tried to ...
1
vote
2answers
338 views

Drush dl not working on Ubuntu with postgresql backend

modules can be added manually, but drush dl or drush en produce errors and will not download a module database section from settings.php $databases['default']['default'] = array( 'driver' => '...
1
vote
0answers
124 views

Drush site-upgrade always gives mysql error: Access Denied

I am trying to run "sudo drush site-upgrade @alias" however I invariably get the same large HTML output containing the error block: <p>The site is currently not available due to technical ...
1
vote
0answers
135 views

Drupal update system not detecting latest (security) releases

This morning I got e-mails about security updates and I know one of the modules, path_breadcrumb is installed on some of my sites. So I ssh into these sites, do drush pm-update --security-only and it ...
1
vote
1answer
36 views

Using drush into remote host is showing me local data

I have an alias setup for my remote host with the following in the script: <?php $aliases['lws'] = array( 'root' => 'domain.com:/home/user/public_html', 'uri' => 'domain.com', '...
1
vote
1answer
85 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
53 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
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
402 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
126 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
87 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
545 views

Drush - nothing happens

if i'm in my drush console at my drupal dir /xampp/htdocs/drupal and type in something like "drush en color" nothing happens. why? @tunic same again
1
vote
1answer
106 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
178 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
157 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
3answers
546 views

Why doesn't my watchdog() function run when I execute my custom module from Drush

I have a custom module that performs an import from an xml file. It can be invoked two different ways. From a menu callback or a custom drush command. The import works fine and all of it's many ...
1
vote
1answer
263 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
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....