Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Support Request: drush updb gives permission denied #99

Open
mbomb007 opened this issue Apr 21, 2022 · 3 comments
Open

Support Request: drush updb gives permission denied #99

mbomb007 opened this issue Apr 21, 2022 · 3 comments

Comments

@mbomb007
Copy link

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
Copy link

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
Copy link
Collaborator

webflo commented Sep 6, 2022

@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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants