drush-ops / drush-launcher

A small wrapper around Drush for your global $PATH.
GNU General Public License v2.0
237 stars 50 forks source link

Support Request: `drush updb` gives permission denied #99

Open mbomb007 opened 2 years ago

mbomb007 commented 2 years ago

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.

back-2-95 commented 2 years ago

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

webflo commented 2 years ago

@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.

back-2-95 commented 2 years ago

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