Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
0answers
14 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 ...
1
vote
3answers
1k views

How do I perform outstanding entity updates after 8.7?

I have just tested the update to 8.7.1 (from 8.6.x) which includes the removal of the old automatic entity update functionality, which means drush entup no longer works. As far as I understand the ...
0
votes
0answers
21 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
32 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
1answer
46 views

Drush not fully installed

I have installed Drush 8.2.3 globally on a Lubuntu 18.04 image. This was done without Composer (I used the default install instructions here) However, if I run drush topic and select any topic number ...
0
votes
0answers
40 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
1answer
29 views

How can I create dynamic options based on the existing bundles from hook_drush_command()?

I want to create dynamic options based on the entity types (returned by entity_get_info() function) inside the hook_drush_command(). There's no bootstrapped Drupal available at all, so the db_query() ...
-3
votes
1answer
68 views

Running Drupal's drush cron jobs with a newer PHP version from Software Collections

How do you run Drupal's drush cron jobs when your server has a newer PHP version installed from Software Collections? The server is running Scientific Linux 7, which comes with PHP 5.4, but we need, ...
0
votes
0answers
140 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 ...
1
vote
1answer
927 views

Running drush entity:updates claimed successful but not changing anything

I am working on a project with custom entity type. My module works fine in my local environment. But when I deployed to my staging site, things are strange. For instance, I tried to change my entity ...
0
votes
1answer
58 views

How can I query a database created using the previous core version from the new core version?

I want to query users, nodes etc in my D7 database that I am currently migrating to D8 to compare with the migrated content. I want to use custom Drush commands to run some checks. Is this possible?
0
votes
1answer
91 views

Drush 9 on Windows 7 problem

I installed drush 9 and now I'm getting the following error whenever I run a drush command: /usr/bin/sh: /cygdrive/c/mysite/vendor/drush/drush/drush.launcher: No such file or directory Details: I ...
0
votes
2answers
49 views

Drush error when attempting Drupal update: unable to copy/move [closed]

I have a Drupal site running on localhost (Windows) that I'm trying to update from 8.6.7 to 8.6.15. When using Drush to perform the update (drush up drupal -y), I encounter the following error: ...
2
votes
1answer
38 views

How to replace drush_download_file in Drush 9

drush_download_file() existed in includes/drush.inc for Drush 8 and below, but this has been removed in Drush 9 as far as I can tell. Is there a standard way that file downloads should be executed in ...
1
vote
1answer
86 views

No such file or directory in Drupal\Component\DependencyInjection\PhpArrayContainer->createService()

I installed a fresh D8 (Drupal 8.6.15) site on my local dev and I am unable to use drush. After I installed the site, I also did a composer install. My dev is set up on php 7.1 using AMMPS and drush ...
0
votes
1answer
132 views

Drush: How do I change the Drupal root

My Drush commands doesn't work because my Drupal files are in another directory than the one set in Drush. Everything is set up to this path so I can't just change the folder name. Drush status [..]...
0
votes
1answer
302 views

Drush command to run cron won't work in Crontab

I am attempting to run two Drush commands from my crontab: # m h dom mon dow command */2 * * * * drush -r /path -l https://www.domain.com/ cron */2 * * * * drush -r /path -l https://www.domain.com/...
-2
votes
1answer
134 views

How does `drush cim` find and handle the config-directory? [closed]

I would like to know where the config directory is, and how drush cim command exactly handles it? Edit: The old title (i.e. "Where is Drush's command-specific documentation?") was because I thought ...
0
votes
1answer
67 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
34 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 ...
2
votes
1answer
148 views

Set site URI for drush uli without 'default'

Versions discussed: Drupal 8.6.13, Drush 9.6.1. This is somewhat similar to How to have an environment specific drush.yml? except that the other thread is now four or five months out-of-date and ...
1
vote
1answer
213 views

Revert back to the previous dev version of a module using composer

Current last dev release of the Field Group module for drupal 8 was out on (29 Mar 2019). However, I need to download the previous dev version before the dev version release mentioned above. The last ...
1
vote
0answers
67 views

Cannot update Acquia Dev Desktop Drupal Core 7.61 to 7.65 through Drush

I did a brand new install of Drupal 7.61 using Acquia Dev Desktop 2. I selected a "Standard" installation profile after launching the site in a browser. I tried to update Drupal Core through the Drush ...
1
vote
1answer
379 views

How to install drush properly

I am trying to install drush on my new computer and it's a mess I'm on Mac Os High Sierra, with Mamp 5.3, PHP 7.2.14 I'm mainly interested in Drupal 7 On my previous computer, it was simple i just ...
0
votes
1answer
69 views

How do I tell Drush where the root directory is?

I have successfully installed Drupal 8 with Composer and I also installed Drush with Composer. When I use Drush, it says that the Drupal root is not found. I am passing the root, but it still says ...
1
vote
0answers
72 views

Body, files, and paths problems

I was suggested so many times to migrate my old project from D6, so I finally decided to jump into this. And as it always happens with Drupal, things never work as expected at first attempt. The old ...
0
votes
2answers
861 views

Core doesn't update with Composer

We use commands: composer outdated drupal/* drupal/core 8.6.10 8.6.13 Drupal is an open source content management platform powering millions of websites and applications. It does show 8.6.13. We ...
1
vote
0answers
68 views

Post update hook fails to run via Drush, but works via update.php

I've implemented hook_post_update_NAME to bulk import some files into Drupal (creating file and media entities for them). This hook runs correctly when I use update.php. But it seems to silently fail ...
2
votes
1answer
33 views

How do I clear a specific cache entry?

I saved a cache entry using cache_set(). How can I clear this entry using Drush?
0
votes
1answer
418 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
37 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 ...
1
vote
1answer
45 views

setContainer Error When Registering an EventSubscriber Service

I am trying to create a basic event subscriber, but when I add the services.yml file and attempt to rebuild the cache with drush cr, I get this error. In Drupal.php line 130: \Drupal::$...
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
34 views

Running Drush commands on a given path

Instead doing: drt="/var/www/html` domain="example.com" cd "$drt"/"$domdain" drush pm install redirect token metatag draggableviews elementor drush en language content_translation redirect token ...
1
vote
1answer
21 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
43 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. ...
1
vote
1answer
135 views

Non-standard port with aliases

I'm running Drush 9.5.2. I set up a site alias. Drush recognizes it, but it will not connect via SSH. I get the following error: ssh: connect to host mysite.com port 22: Operation timed out The ...
4
votes
1answer
493 views

Generate installed modules into a composer.json for existing site: I need to manage via Composer, not via UI

I have a Drupal 8 site up and running with modules that were manually installed. I want to generate an appropriate composer.json file to manage these using Composer. The closest I could find to ...
2
votes
1answer
146 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
83 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
27 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 ...
0
votes
1answer
67 views

Enabling custom content entity module throws error

While enabling my custom module that creates a custom content entity through Drush, I get the following error: [error] Drush command terminated abnormally due to an unrecoverable error. Error: ...
2
votes
1answer
146 views

Why does Drush need the --uri option to return absolute URLs?

I want to execute a View and export the JSON file to the files directory. I am using Views Data Export and VDE drush add-on modules. My view has a file/PDF field and I want to provide a direct link to ...
0
votes
0answers
60 views

How to set drush alias for remote site behind jump server?

Drupal 8 site (8.5.3) with drush 8 (8.1.16) both equal on local and remote. Connection to remote is through jump server - log in to jump (ssh -L 2004:remote.com:22 -l username jump.server.com), in ...
0
votes
1answer
151 views

sql:sync not working

I'm using drush 9 on a remote server and I'm trying to perform a sql:sync. This is my alias: live: host: www.mysite.com paths: drush-script: '/home/wodby/drush-wrapper.sh' files: files ...
0
votes
1answer
66 views

Drush command from contrib module not recognized

I have installed a new module called S3fs using Composer. When I try to execute /root/.composer/vendor/bin/drush drush_s3fs_copy_local, it shows the following error. Command "drush_s3fs_copy_local" ...
0
votes
0answers
254 views

Drush 8.1.18 not working in Drupal 7.63 [duplicate]

Just updated a project to Drupal 7.63. Attempting to execute updb or other commands results in the following error: PHP Fatal error: Uncaught TYPO3\PharStreamWrapper\Exception: Unexpected file ...
0
votes
1answer
29 views

Why is “drush make” installing a library in /sites/all/libraries instead of /libraries?

I am trying to allow prospective users to demo my module on simplytest.me, however, it requires an external javascript library. I recently created a drush make file for the D7 version of this module, ...
2
votes
1answer
2k views

Why am i getting this Drush error after updating a site? [closed]

I use Drush 8.1.17 to update my Drupal 7 sites, and as I have been updating my sites today after the latest security update I have noticed that after I update a site if I try to run any update related ...