Following a return of this issue, decided to update trellis codebase (like a pro!)
(Note that in the above tutorial, the writer assumes that the root directory of your git project is in the trellis
directory. If the project root is above the trellis directory:
.git
trellis
site
You will need to first run git init
within the trellis directory, otherwise you will have a bunch of updated trellis files above the trellis directory. I like the kDiff app for managing git merge conflicts.
Then destroyed and rebuilt trellis/.trellis
using trellis-cli (trellis init
), using Python v3.8.
Now I get this error:
==> default: Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o vers=3,udp 192.168.50.1:/System/Volumes/Data/Volumes/Path/To/example.com/site /vagrant-nfs-example.test
Stdout from the command:
mount.nfs: mounting 192.168.50.1:/System/Volumes/Data/Volumes/Path/To/example.com/site failed, reason given by server: No such file or directory
exit status 1
And at that point vagrant reload
returns:
default: Running ansible-playbook...
ERROR! Unable to retrieve file contents
Could not find or access '/Volumes/Path/To/example.com/trellis/dotenv.yml' on the Ansible Controller.
If you are using a module and expect the file to exist on the remote, see the remote_src option
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
exit status 1
Remove the example.test
entry from ~/.ssh/config
.
Try running trellis up --with-galaxy
and it says there’s no galaxy.yml
file, which I have added from the Trellis repo.
Destroy again (vagrant destroy
), then run trellis dotenv
then trellis up --with-galaxy
.
Same error:
mount.nfs: mounting 192.168.50.1:/System/Volumes/Data/Volumes/Drive/Clients/Client/example.com/site failed, reason given by server: No such file or directory
exit status 1
The directory is there:
ls /System/Volumes/Data/Volumes/path/to/example.com/site
total 176
CHANGELOG.md LICENSE.md README.md auth.json composer.json composer.lock config/ scripts/ vendor/ web/ wp-cli.yml