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
27 views

“drush updatedb” failes with “The provided host name is not valid for this server”

I run my site with Drupal 9.1.6 on Strato Webhosting. The site is well accessible via Webbroser either under mydomain.tld or www.mydomain.tld. I can perform a database update running update.php, but ...
0
votes
1answer
17 views

RuntimeException when running drush commands in root folder

I am setting up a local site for development on a ubuntu server 18.04 VM. I pull our repo into my windows machine and then mount this onto the VM as a shared folder. I run composer install and it ...
1
vote
1answer
30 views

“drush config-split:export” returns “Not enough arguments (missing: 'split').”

I recently upgraded from Drupal 8 to Drupal 9. I've used drush config-split:export (drush csex) quite often. After the upgrade, it keeps throwing an error which is very vague. Not enough arguments (...
0
votes
0answers
20 views

Drush Error: environment settings not found or configured for Drush command

I'm working on a legacy project and am trying to see if Drush can be set up properly. I installed the drush executable locally, I'm not sure if that is the issue. But when I go to run a basic command ...
1
vote
1answer
23 views

How do I create nodes with comments enabled using drush?

I have a drupal 9.1.5 site with a custom node type. I can create test content for it using drush by running; drush genc 1 --bundles=mynode --authors=test However, half of the content has comments ...
0
votes
0answers
18 views

It's not allowed to store backups inside the Drupal root directory

I must be missing something because I can't determine what I'm doing wrong. I've got a D7 site, and we're running Drush 8.1.10 I'm trying to run through some updates but I keep running into this error:...
1
vote
0answers
29 views

“Class \Drupal\rsvplist\Controller\ReportController does not exist” [closed]

I'm following this Youtube tutorial to get a better grasp of module development, and I am not understanding the error I'm getting in my cli when flushing my caches. I've created an extension of ...
0
votes
1answer
40 views

How to uninstall OAuth2 OR fix it

i'm new in Drupal. I tried on my site to mount the OAuth2 world but I can't get to the top. The website shows an error that is Error: Interface 'League\OAuth2\Server\Repositories\...
0
votes
0answers
20 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
30 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
33 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 ...
1
vote
1answer
27 views

Are Drush vbo-execute actions supported?

I've been trying to find an efficient back-end way to delete large numbers of nodes based on some filter criteria to implement data retention policies. I have read that it's possible to perform ...
0
votes
0answers
47 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
24 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: "/...
2
votes
1answer
74 views

When “drush updatedb” is executed, are scripts cached by OPCache invalidated?

For sites that have PHP OPCache enabled: Does updating site using Drush require restarting the webserver to invalidate the scripts cached by OPCache? Does Drupal core or Drush invalidate OPCache ...
1
vote
0answers
31 views

Configuration export via drush randomly change the value of labels\other content in multilanguage sites

I've a multilanguage site, with Italian set as default and English as secondary language. When exporting the configuration via drush - drush cex command - sometimes the labels of other kind of content ...
6
votes
1answer
88 views

What is the significance of dumping the tablespaces?

While recently running drush sql-dump on a server where there were never any error messages, I have started to get: mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(...
0
votes
1answer
108 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
1answer
46 views

Is it possible to install Drush 9 without using Composer?

Is it somehow possible to install Drush 9 without using Composer?
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
2answers
21 views

how to specify the file directory in drush config:status

drush config:import has the --source flag to specify where the import should come from. drush config:export has the --destination flag to specify where the import should go. I am trying to automate a ...
1
vote
1answer
57 views

How can I switch back and forth between globally installed Drush versions?

I installed Drush 8 using cgr (which is a safer replacement for composer global require): cgr drush/drush:8.x-dev --prefer-source But now I also want to install Drush 9 for certain sites. Is there a ...
3
votes
1answer
58 views

How to I trigger Xdebug 3.x with Drush in PHPStorm

Has anyone has success with getting CLI debugging (drush) working with Xdebug 3.x? There are several obsolete posts here... but all obsolete with the new version of Xdebug. Expected behavior After ...
0
votes
0answers
35 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 ...
1
vote
1answer
20 views

How to use the filter flag in drush config:status

I am using Drush 10.3.6. Drush config:status gives me: # drush config:status --------------------------------- ------------ Name State -------------------------...
0
votes
1answer
28 views

Command “generate-votes” is not defined

I'd like to use Drush 10.3.6 to generate votes on my development server. Based on these instructions for a previous Drush version (8.x), there is some kind of module/extension for this. drush generate-...
0
votes
0answers
26 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
54 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 ...
2
votes
1answer
64 views

How do I generate taxonomy terms with drush 10/drupal 9.1.x [closed]

I'm trying to use drush to generate some taxonomy terms for a sandbox/development instance. This might be an error report by I'm a drush noob so I wanted to ask first. When I run drush devel-generate:...
0
votes
1answer
140 views

Database error when execute drush migrate:status

I'm trying to do a 'file to media' migration on a d8 installation. Following the readme on the module I have created a custom module and created the two yaml files. After enabling the module and drush ...
0
votes
1answer
31 views

hook_init() equivalent for console command

I have a module which subscribes to the kernel.request event to set some environment variables for use with LDAP. E.g. setting the LDAP_CACERT environment variable. I'm using it to replace hook_init() ...
0
votes
0answers
39 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-...
1
vote
1answer
112 views

How to update Drupal custom module after changing .install file

I am working on a pre-created Drupal 8 project that has a custom module called CCA(named out of project title). I have done the below update in the .install file to add a new column to the backend via ...
1
vote
0answers
19 views

Drush 10, Drupal 9, views-bulk-operations:execute using entity:delete_action:node seems to work but won't save its changes

I'm trying a command: drush -vvv views-bulk-operations:execute -d deleteme_content entity:delete_action:node where deleteme_content is a View with translations of entities that I want to delete. The ...
2
votes
0answers
535 views

“Drupal root not found. Pass --root or a @siteAlias in order to see Drupal-specific commands”

I have multiple sites inside the same htdocs directory. In one, I removed all the folders except vendor under Web. Now drush will not work (it worked before I moved the folders). But now, it cannot ...
0
votes
0answers
50 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
1answer
81 views

Is there any way to capture only the updates from “drush cex”?

I did a cex to "reset" my config being exported. I then made a bunch of changes to a bundle. Now when I do a new cex I see only the yml files containing my most recent changes. Is there any ...
1
vote
1answer
39 views

“drush cc” fails

Does anyone know why Drush doesn't recognize the Drupal 7 installation when I run drush cache:clear? It gives me the following error message. Command cache-rebuild requires Drupal core version 8+ to ...
0
votes
0answers
86 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 ...
0
votes
0answers
150 views

Issues with Drush 10.3.5 version in Ubuntu 20.04

I installed Drush 10.3.5 version via composer in Drupal 9.0.7 but I am getting a website error as follows after I ran command drush cache-rebuild. I can not access the admin page as well. The website ...
3
votes
2answers
297 views

How can I export only one paragraph type, the fields, the form settings and the display settings?

Some days ago I've exported and imported a full configuration with drush cex and drush cim. What are the steps to export 1 paragraph type including the fields, form settings, display settings etc ... ...
0
votes
0answers
25 views

Drush not picking up rsync parameters from site alias

In self.yml I've got two site aliases defined like this: dev: root: /var/www/example-dev/web uri: https://dev.example.co.uk paths: public: 'sites/default/files' private: '../private' ...
0
votes
1answer
58 views

How do I generate-content of a particular type with drush 9.x+

root@0a581055a6ad:/opt/drupal# drush genc 10 --types=article The "--types" option does not exist. devel-generate:content [--kill] [--bundles [BUNDLES]] [--authors [AUTHORS]] [--feedback [...
0
votes
0answers
69 views

Drush can't bootstrap sites

I have an Ubuntu 18.04 server where I have one Drupal 8 and two Drupal 7 sites. I have installed drush 8.4.5 which works great for the Drupal 8 site but on the 7 ones it can't bootstrap. After some ...
0
votes
0answers
28 views

drush_backend_invoke_concurrent() alternatives

Release notes for Drush 10 claim that most of the Drush 9 commands will still run on Drush 10. So I wonder what is the alternative for drush_backend_invoke_concurrent() from backend.inc?
2
votes
1answer
41 views

Drush download, what port does it use?

I work on a Drupal 7 intranet site for a large company. The firewall on the server it is housed on currently does not allow any access to the Internet. I've been upgrading Drupal core and modules by ...
0
votes
0answers
51 views

Drush Launcher looking for Drush in public_html when using updb

I have a drupal 8 website up and running on a server. On this server I use the Drush Launcher to work with Drush on my site. For some reason the Drush command drush updb doesn't work I get the ...
0
votes
1answer
33 views

How do I update an old project?

I have been tasked with updating my code shop's long-abandoned Drupal 7 codebase to the most recent Drupal core, in order to bring in the latest security fixes (it's currently using v7.67). But all ...
0
votes
1answer
28 views

It doesn't work without public_html symlink

I have just updated to Ubuntu 20.04 so have a fresh install of everything. I have a working Drupal 7 site I'll call mysite. I have Drush-launcher installed globally at /usr/local/bin/drush The file ...
1
vote
2answers
57 views

How do I set a Boolean config variable to false?

I can't set a boolean config value to FALSE with drush. I'm using Drush 8.9.4. pk@DC:~/$ lando drush config-set advagg.settings enabled 0 -y // Do you want to update enabled key in advagg.settings ...

1
2 3 4 5
39