drush-launcher icon indicating copy to clipboard operation
drush-launcher copied to clipboard

Support Request: `drush updb` gives permission denied

Open mbomb007 opened this issue 2 years ago • 3 comments

Background

I am setting up an Ubuntu 20.04 Linux box with Drupal. Drush is managed by Composer.

$ drush --version
Drush Launcher Version: 0.10.1
Drush Commandline Tool 11.0.9

Problem

When I run drush updb -vvv from the site root, it shows .../vendor/bin/drush: Permission denied. However, other Drush commands work fine, such as drush status, drush cr, drush cim, etc.

Drush Launcher is at /usr/local/bin/bush with 755 permissions on the file and parent folders.
Drush is at /var/www/mysite/vendor/bin/drush with 640 permissions.

Still, the permissions and owners should not be an issue, because I have another webserver where this setup works. I can't figure out why this single command fails but others work.

mbomb007 avatar Apr 21 '22 16:04 mbomb007

We encounter the same with RHEL 8 (Ootpa).

$ drush --version
Drush Launcher Version: 0.10.1
Drush Commandline Tool 11.1.1

PHP is 8.0

back-2-95 avatar Sep 06 '22 06:09 back-2-95

@back-2-95 Can you run updb with --debug -vvv? Thanks.

Or maybe its related to xdebug-handler. Try to run it with DRUSH_ALLOW_XDEBUG=1 in front of the command.

webflo avatar Sep 06 '22 07:09 webflo

@webflo no luck. It seems it's something deep as I get Permission denied even if run with root user. 😕

back-2-95 avatar Sep 06 '22 08:09 back-2-95