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
0
votes
0answers
754 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
0answers
545 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
235 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
93 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
132 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
91 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
358 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
590 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
2answers
2k views

Drush MAMP not working

I'm running with a big problem for hours now and it's driving me crazy, maybe one of you already know the answer. Drush seems to not want to work on my OSX (10.8.5) with MAMP (3.0.5). When I execute $...
0
votes
1answer
491 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
0answers
677 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
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
317 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
775 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
86 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
392 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
0answers
398 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
329 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
0answers
179 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
2answers
241 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
714 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
49 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
417 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
195 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
230 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
241 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
173 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
183 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
181 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
105 views

site created using drush arr failing with missing index.php

I am using drush archive to copy a live site to a test environment. The test environment is on my local machine, the live site is on a hosted platform. The arr command seems to complete successfully ...
0
votes
0answers
744 views

Crontab to trigger scripts with drush commands

I've read this question and the answers links through to Jenkins. Looked into it but was way over my head to install and set up. The other answer links to this page which talks about running cron ...
0
votes
0answers
1k views

Drupal crash recovery - segmentation fault

A drupal 7 website I am developing is repeatingly crashing. After each crash, I can't access any further pages on the website, in any browser, until I restore the database from a backup and remove ...
0
votes
1answer
298 views

Command line submit node

Previously I'm using combination of cURL and sed to submit to Drupal 6 website. It was very flexible but it will works if I submit very frequently. If I want to submit 2 posts in one week, it will ...
0
votes
1answer
48 views

How do I create a “platform” and “site” from CLI, using the drush extension provision

I'm trying to figure out how to use Provision to create new sites from the CLI. I tried looking at what commands Aegir normally passes to Provision when setting up a new platform and then a new site ...
0
votes
3answers
460 views

Error during config export

I have added one field in the content type. So when trying to export configuration it gives an error $ pwd $ /c/xampp/htdocs/Test/docroot/sites/testone.com $ ../../../vendor/bin/drush config:export -...
0
votes
1answer
90 views

Drush not installing correctly

I'm attempting to install Drush on a new system OSX 10.10.4. The process is no longer the simple one it used to be :( I've complied with the requirement to install via Composer (that was not small ...
0
votes
1answer
1k views

Drush rsync command failed: No such file or directory

I am new to use Drush. this following is my .drushrc.php file $aliases['server'] = array ( 'remote-host' => '162.243.78.240', 'remote-user' => 'root', ); $aliases["dxb"] = array ( '#name'...
0
votes
1answer
118 views

Upgrade Commerce Kickstart 1 site with drush

From http://www.drupalcommerce.org/blog/9072/updating-commerce-kickstart-2 I learned that it's possible to upgrade a CK2 site using drush. Is it possible to do a minor upgrade od CK1 using drush ...
0
votes
1answer
788 views

Drush cannot connect to mysql

I have a problem with Drush to enable or disable module. But downloading modules works perfect! However I want to use Drush in its full range. Yesterday, I saw my Drush would not succeed in ...
-1
votes
1answer
505 views

Is it possible to update/remove/install 1 package with composer without updating everything?

I have seen a few posts answering this and saying that "composer require package" or "composer update package" will do this; but absolutely everything i do with composer attempts to update everything ...
-1
votes
1answer
102 views

User password reset link leads to access denied page

Command: drush uli Output: http://default/user/reset/uid/..../...hash.../login The output URL normally logs you in automatically, but it gets takes to access denied error instead.
-1
votes
1answer
91 views

Sql-sync issues with key length

I'm attempting to set up a new remote website for production, and push my development database to it. I've already rsync'ed the files, and set up a new settings.php for the remote site. However, when ...
-1
votes
1answer
179 views

Drush status runs the correct PHP version, drush sql-dump don't

I set the drush alias in my .bash_profile as stated in the doc: alias drush='DRUSH_PHP=/usr/local/php54/bin/php /home/dx_/drush/drush' when I run the "drush status" the correct php version shows up ...
-1
votes
1answer
608 views

Drush 6 installed on a centos server. How do i find out where its installed and upgrade it?

how do i find where is drush installed? its currently on drush 6 and looking to update it to drush 7 for drupal 8. Whats an easy way to find where its installed and update it?
-1
votes
2answers
957 views

It doesn't work in the root directory

I'm trying to get Drush to work in a shared environment where I have limited SSH access. I've managed to install Composer and Drush. In PuTTY I can use Drush outside of my Drupal root folder, ie. /var/...
-2
votes
1answer
41 views

How can I delete vocabulary terms at a certain level?

I know there are several threads here about deleting terms with various techniques; I'm going to experiment deleting terms with drush at a certain level, say level three terms and below in the ...
-2
votes
1answer
157 views

Drush won't work after installing drupal 8 on remote server using composer

After installing drupal 8 on a remote server (I have SSH access) using composer I installed drush using the following command: 'composer require drush/drush'. After I type vendor/bin/drush I get the ...
-2
votes
1answer
468 views

How to use Drush or Migrate module to create/edit/delete nodes hourly

I need to Create new nodes (W/12 fields) hourly from a new table/fields in the Drupal DB (x_table). Update currently created nodes via current x_table rows. Delete nodes once the row has been ...

1
4 5 6 7
8