You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just downloaded ddev local on my windows 10 computer and enabled Mutagen. So far everything has worked fine until I tried to use Drush in the command line. I installed drush using the command: ddev composer require drush/drush as part of the Drupal setup. However, whenever I try and use a drush command I get the following message: /mnt/ddev_config/.global_commands/web/drush: line 14: /var/www/html/vendor/bin/drush: Permission denied Failed to run drush --version: exit status 126
While there are some fixed available online, all of them seem to be tailored towards Mac OS or a Linux Distro.
Expected Behavior
I expected Drush commands to execute normally having installed Drush using the quick setup guide for Drupal in the ddev documentation.
Steps To Reproduce
Setup ddev in a local windows environment
Follow the quickstart guide for Drupal on ddev's documentation page:
Enable Mutagen in the environment with the command ddev config global --mutagen-enabled
Try and run a Drush command. For example: ddev exec drush
A permission denied error should appear.
Anything else?
A temporary solution to the issue was given on the discord for the problem by @rfay. By running ddev exec chmod +x /var/www/html/vendor/bin/* in the command line so that permissions are granted and the issue is solved until the environment is restarted. Furthermore, by creating a post-start exec hook the problem can basically be solved permanently by automatically running this command every time the environment is set up.
The text was updated successfully, but these errors were encountered:
rfay
changed the title
Drush Not Working Windows
With mutagen on, files that should be executable (like drush) aren't executable in traditional Windows
Aug 11, 2022
Thanks for creating the issue. It shouldn't be a hard fix once I understand the correct mutagen.yml settings.
rfay
changed the title
With mutagen on, files that should be executable (like drush) aren't executable in traditional Windows
Windows with mutagen: files that should be executable (like drush) aren't executable in traditional Windows
Aug 11, 2022
Is there an existing issue for this?
Run a Diagnostic and Paste Link Here
No response
Current Behavior
I just downloaded ddev local on my windows 10 computer and enabled Mutagen. So far everything has worked fine until I tried to use Drush in the command line. I installed drush using the command:
ddev composer require drush/drush
as part of the Drupal setup. However, whenever I try and use a drush command I get the following message:/mnt/ddev_config/.global_commands/web/drush: line 14: /var/www/html/vendor/bin/drush: Permission denied
Failed to run drush --version: exit status 126
While there are some fixed available online, all of them seem to be tailored towards Mac OS or a Linux Distro.
Expected Behavior
I expected Drush commands to execute normally having installed Drush using the quick setup guide for Drupal in the ddev documentation.
Steps To Reproduce
ddev config global --mutagen-enabled
ddev exec drush
Anything else?
A temporary solution to the issue was given on the discord for the problem by @rfay. By running
ddev exec chmod +x /var/www/html/vendor/bin/*
in the command line so that permissions are granted and the issue is solved until the environment is restarted. Furthermore, by creating a post-start exec hook the problem can basically be solved permanently by automatically running this command every time the environment is set up.The text was updated successfully, but these errors were encountered: