Questions tagged [drush]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
396 views

Changing Drush make default subdir for install profiles

I have a drush make file which has a default subdir for projects: defaults[projects][subdir] = contrib This places all modules into the sites/all/modules/contrib folder, which is great. The ...
0
votes
1answer
389 views

Running drush from a minimal shell

My goal is to pipe mail with Postfix into a drush command. I made a simple bash script that redirects stdin to the drush command, and I configured Postfix to pipe mail to the script. But executing ...
0
votes
0answers
633 views

The drush command 'import' could not be found

I am connecting to two sites via SSH I used Drush 4.4 export on a D6 site to export a node type. I now want to import that onto a D7 site (running Commerce Kickstart2) which contains a newer version ...
0
votes
1answer
118 views

How to skip “Checked available update data for” all modules when I just want to update core or a specific module?

I'm upgrading a lot of my Drupal sites to 7.32. Unfortunately it takes a lot of time for each site because of some update check that I don't need. On How to upgrade only core with drush? I learned I ...
0
votes
1answer
73 views

Omega 4 without Drush [closed]

Hi [still new to Drupal] Due to certain constraints I can't install drush. Am I able to work on Omega 4 without Drush? The organisation I work for has strict online security and firewall. I have a ...
0
votes
2answers
121 views

How can I invoke a drush hook on a remote alias?

I have a local dev environment and a test server environment. Both are running the exact same code. In a custom module, I added a drush hook to extend the sql_sanitize command in order to ensure all ...
0
votes
1answer
3k views

Drush aliases and Permission denied (publickey,password) problem

Im trying to use Drush Aliases but getting Permission denied (publickey,password) error. I can login to server using publickey without password but Drush can not. I've read the solution mentioned ...
0
votes
0answers
74 views

how to use drush commands for a live site? [duplicate]

I am using drush in my localhost. I am new to drupal and i want to execute some commands in drush for a live site. can anyone know how to use drush for a live site...?
0
votes
0answers
537 views

How do you install Drush 7 for Drupal 8? Installed composer and still doesnt work.

I'm trying to install drush 7 for drupal 8, but im hitting a snag. I installed composer and now i downloaded drush 7 and unzipped it to /opt/drush7 I get the follow error when running drush even ...
0
votes
0answers
231 views

Database issue with Drush aliases on Windows

I'm having issues getting the drush sql-sync command working, and it seems to be related to how my site aliases are set up. When I try to run the sql-sync command with my local and production aliases, ...
0
votes
0answers
91 views

drush ne-import doesn't import field_tags

I'm using module node_export to migrate contents from my local to live. The content type has several fields with field_tags (multi-field term reference) being one. The exported file was created just ...
0
votes
0answers
125 views

Problems with additional trailing slash in when using drush rsync

If I use drush rsync the output is as follows: user@drupal:~/html$ drush rsync @live @local You will destroy data from var/www/ and replace with data from root@eso- meetu.de:/var/www/virtual/eso-...
0
votes
1answer
90 views

Drush ard is working for D6, not for D7 > bootstrap error

Noticed something strange today: drush ard @sites is working in the folder /drupal6/sites/, but not in /drupal7/sites/. When i go to a specific folder, the command runs as expected (drush ard foobar....
0
votes
1answer
352 views

Drush Hangs on wget but wget Works

Every drush command I run hangs on wget. However, if I run wget outside of drush, it works just fine. I am behind an http proxy and suspect that's factoring into the problem. I don't understand why ...
0
votes
3answers
557 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 ...
0
votes
1answer
484 views

Drush make unable to determine mime type for js

On every .js library that needs to be downloaded, I keep getting errors like: https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js. Unable to determine mime type for jquery-ui.min....
0
votes
0answers
54 views

Drush bootstraps fine via root, but fails via regular account (SSH, dedicated server)

I hope someone here can help me out on this one: After pushing our site live, I am now trying to get Drush running on our live server. I have gone for a manual install via our root account, got the ...
0
votes
1answer
46 views

drush make build script tries to download project itself from drupal.org

I use a drush make build script to install a profile. Just started that install profile project. https://raw.githubusercontent.com/groovehunter/releasemanager/master/build-releasemanager.make When ...
0
votes
1answer
188 views

Where drush make downloading my projects?

I have created a drush make file through drushmake.me Which is, I've created a file my.make in public_html folder and run the following command: drush make my.make It shows all the files ...
0
votes
0answers
669 views

Drush “unable to fork” on CentOS 6

On a Centos 6.5 box, I'm having difficulty with drush dl, the following errors are presented: $ drush dl profile2 exec(): Unable to fork [wget --version 2>&1] exec.inc:150 ...
0
votes
2answers
913 views

Drush up error - unable to untar - Destination already exsists

I have verified that the directory does not exist before attempting an update. The error I get is as follows. Do you really want to continue? (y/n): y Executing: svn info /home/sites/lg/public_html/...
0
votes
1answer
412 views

Why does Drush Make usually skip large sections of my .make file with no errors or explanation?

This felt like a bug to me, but I was told it was technical support, so I'm asking here. Running Drush 6.2 on OSX Mavericks, drush make usually skips most of our .make file for some unknown reason. ...
0
votes
0answers
1k views

Drush can't connect to MySQL through socket

When trying to install a new drupal with drush si standard --db-url=mysql://root@localhost/drushtest I get the following error Message: [...] SQLSTATE[HY000] [2002] Can't connect to local MySQL ...
0
votes
1answer
315 views

Omega 4 Sub-Theme problem with file_get_contents(make.libraries) failed to open stream

when creating an omega 4 sub-theme using drush 6 on windows 7 and xampp and drupal 7, see attached pic,'file_get_contents(libraries.make) : failed to open stream : no such file or directory make....
0
votes
0answers
744 views

Drush migrate --idlist error: Migration failed with source plugin exception

When running drush migrate-import with --idlist option I got this error: $ drush mi BeersMigration --update --idlist='1001' -d ... Importing 'BeersMigration' migration [1.2 sec, 30.83 MB] ...
0
votes
1answer
84 views

Upgrading Drush from 4.4 to 7.1

Following instructions here, I used the command drush dl drush to install the newer version of Drush. Then, when I attempted drush omega-export (the reason I was upgrading was to have access to these ...
0
votes
1answer
364 views

Getting Drush to play with MAMP and Acquia

I have a Mac workstation which is shared between two users, User°1 who first installed the machine, and User°2 who came along after, both administrators. User°2 has installed Drush using brew and ...
0
votes
1answer
219 views

Drush on windows - back up goes missing

I am new to drupal and drush, so please do not close this if it's naive. My setup: Windows 7 Xampp 1.8.3 (PHP 5.5.6/Apache 2.4.7/PHP 5.5.6) Drupal 7.26 Drush 6.3-dev Intention: Back up my site ...
0
votes
0answers
392 views

Database error after moving host and renaming the DB

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '<olddb>.semaphore' doesn't exist: SELECT expire, value FROM {semaphore} WHERE name = :name; Array ( [:name] =&...
0
votes
0answers
325 views

Drush command terminated abnormally when exporting content

I have installed node export module and drush and trying to export all content of type story to an xml file, using: root@pc:/path/to/drupal# drush node-export-export --type=story --file=xstory --...
0
votes
1answer
496 views

How to run custom command running drush cron via sudo?

The documentation for drush cron says: You should set up crontab to run your cron tasks as the same user that runs the web server; for example, if you run your webserver as the user www-data: I ...
0
votes
1answer
648 views

Custom field values are not importing with Features

I would like to export example data(nodes) in feature for others to kick start some reusable module that i developed. The example data contains nodes with custom fields. The problem is that while ...
0
votes
0answers
170 views

Can “drush make” command use cached temporary files?

With Drush 6.2.0, after using $ drush make build_my_project.make my_project/ more than once, it results in .. Found makefile: drupal-org.make Install location /private/tmp/make_tmp/profiles/...
0
votes
1answer
250 views

Drush on Windows trouble [closed]

I had installed Drush for Windows and trying use it. I open directory (in CLI, in my example: Z:\home\www\drush-test) where I want install drupal and run drush dl command: Z:\home\drush-test\www>...
0
votes
2answers
127 views

Error in executing drush command

I am trying to execute drush command from my project root directory and i am getting following error bootstrap a site that has not been installed or does not have a configured database. In this case ...
0
votes
0answers
683 views

Drush fails with “PHP Fatal error: Call to undefined function decode_entities()”

My drush installation does not work anymore on an Debian Vserver. I get always the error: PHP Fatal error: Call to undefined function decode_entities() in /usr/share/drush/includes/drush.inc ...
0
votes
1answer
48 views

Drush update for the first time hosed my website

Running latest versions of Drupal, etc. Localhost - dev site Maintenance mode While trying to install Commerce_kickstart and running Drush for first time to update modules, Drupal got completely ...
0
votes
1answer
347 views

drush installing drupal through root ssh is causing 500 internal server error

I have installed the drupal 7 using the root ssh user. The overall installation process seems ok within ssh. I have even downloaded and enabled the modules through drush. But when I tried to open the ...
0
votes
1answer
378 views

Drush not seeing right CLI PHP version

I am not able to get Drush to recognize the installed PHP 5.4.20 (cli). $ php -v PHP 5.4.20 (cli) (built: Oct 10 2013 18:41:48) $ drush Your command line PHP installation is too old. Drush requires ...
0
votes
1answer
194 views

create date type in install profile

I want the german date format in my install profile. I tried in my setup script: drush en l10n_update -y drush vset site_default_country de drush language-add de drush language-default de drush vset ...
0
votes
1answer
229 views

drush make on local gitweb raw url

I moved a git repo from github to local gitweb and want to access the raw build make file http://git.mycompany.com/?p=workflow.git;a=blob_plain;f=build-workflow.make;h=...
0
votes
0answers
237 views

Running drush on pressflow (D6) + nginx server

SO, I have been using drush from past many years on an apache server and it has been working like charm. I have a multisite setup with Drupal and run around 100 subdomains. In my situation, I feel ...
0
votes
1answer
146 views

project/configuration sync from shell (not from ./admin)

With project/configuration (core 7.22 and configuration 7.x-2.0-alpha2), we can sync a new database to the exported .inc files via the admin gui, but need to be able to do it from drush. ...
0
votes
1answer
168 views

What is wrong with this drush command in Drupal 7 Ubercart 3 to delete orders in bulk via command line?

I am trying to delete my Ubercart 3 orders in bulk via the command line with just a one liner: for XX in {1..12}; do drush ev 'uc_order_delete($XX)' -v; done; It beats having to do it via the bulk ...
0
votes
1answer
51 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 ...
0
votes
1answer
424 views

Running drush sql-sync between linux drupal alias as source and windows drupal alias as target throws rsync:chgrp error

i can see from this post that rsync is trying to set group on the file which may not make sense for windows. The question is, how can i pass rsync options while running the sql-sync command as drush ...
0
votes
1answer
292 views

Whats wrong with my drush script when using sql?

Im running the following via drush scr $query = db_query('select node.nid AS nid from {node} node where (type="feed_item") AND (status="0") limit 1'); i am getting this error: WD php: ...
0
votes
1answer
181 views

drush core-config causes 'Permission denied'

When I use command as follow: drush core-config and then enter 1 a error displayed: sh:/etc/php.ini: Permission denied how to solve this problem?
0
votes
1answer
179 views

How can I get views_save_view($view) to return TRUE when using Drush?

I have a script that calls various views API functions, namely views_save_view() or $view->save(). When using Drush 5 to run the script, these functions return false. However, when I run these with ...
0
votes
1answer
535 views

Drush restore to proper folder level

Before working on a site, I take a quick dump of a site via drush arb --destination=/var/backup/latest.tgz --overwrite from the root level /var/www/html. However, on the rare occasion that I need to ...