Closed JHSheridan closed 3 years ago
Thanks for opening your first issue here! Be sure to follow the issue template and include your OS/Vagrant/VVV versions! Don't forget you can get support in the VVV slack at https://varyingvagrantvagrants.org/docs/en-US/slack/
VVVJoin the VVV Slack Workspace
I don't know what was the previous VVV version.
Probably you need to do a vagrant destroy
and provision everything again.
I don't know what was the previous VVV version. Probably you need to do a
vagrant destroy
and provision everything again.
I believe I was on vvv 3.2.0 before the update
A vagrant destroy is the thermonuclear last resort after all other options are exhausted.
It also destroys all useful debugging information
This is probably related to the most recent commits. A chmod should fix this
-rwxr-xr-x 1 vagrant vagrant 6094601 Jun 2 20:32 wp
Is what it should be if you run ls -al /usr/local/bin/wp
vagrant@vvv:/usr/local/bin$ ls -al /usr/local/bin/wp
-rwxr-xr-x 1 vagrant vagrant 6094601 Jun 2 20:32 /usr/local/bin/wp
@JHSheridan can you test this PR? https://github.com/Varying-Vagrant-Vagrants/VVV/pull/2493
@tomjn I was able to resolve the issue by ssh'ing into my vagrant box and chmod'ing the path causing the problem.
More than happy to help you test your PR, but unfortunately I'm completely out of time today. I'll come back to it this weekend.
Thank you so much for your help!
What was The Command Used To Provision
What Kind of VVV Provision Was This
This was a reprovision of an already working VVV
Logs/What Broke
I had a working VVV environment with 6 or 7 sites on it (see config below for specifics). I'm about to start on some new projects, so I decided I'd update my VVV. I git pulled to the latest version and was running into some issues. I decided to vagrant box update, vagrant destroy, and then vagrant up --provision. When I do this, I get the expected behavior. All of my sites work just as they did before.
I then added the 3 new sites to my config.yml and ran vagrant reload --provision. That's when I got the following error: "sudo: unable to execute /usr/local/bin/wp: Permission denied"
I then removed those 3 new sites from config.yml, ran vagrant destroy, vagrant up --provision, and all my original sites were back again. In an effort to narrow down what could be causing the problem, I then ran vagrant reload --provision without adding the 3 new sites and I still get the same error:
Here is a gist with the full provisioner log: https://gist.github.com/JHSheridan/b4cd28ab7c6fd2bb6d6177dff54a1f41
Here is my config file
Your Environment
Thanks in advance for your help!