Try this SO solution deleting and recreating the exports file:
$ sudo rm -f /etc/exports
$ sudo touch /etc/exports
$ vagrant destroy
$ trellis up
Now it looks like this:
# VAGRANT-BEGIN: 501 2fb1e1ab-22fb-4ab7-b408-ae01cea6fae3
"/System/Volumes/Data/Volumes/Path/To/example.com/site" -alldirs -mapall=501:20 192.168.50.5
"/System/Volumes/Data/Volumes/Path/To/example.com/trellis" -alldirs -mapall=501:20 192.168.50.5
# VAGRANT-END: 501 2fb1e1ab-22fb-4ab7-b408-ae01cea6fae3
Hmmm.
(virtualenv) which vagrant
/usr/local/bin/vagrant
(virtualenv) vagrant --version
Vagrant 2.2.16
VirtualBox Version 6.1.22
Same issue in another, newer Trellis codebase, on Big Sur, working from an external drive.
Was hopeful, again, briefly, when this thread suggested that iTerm may need further permissions (which it does), but I had already done that.
Noticed that the etc/hosts
file didn’t have entries for the two trellis projects, which lead me to running sudo trellis up
, which returned something new:
Installing plugin vagrant-bindfs
Installing plugin vagrant-hostmanager
`vagrant up` must be re-run now that plugins are installed
Same result with trellis up
.
Tried installing vagrant-vbguest
plugin with errors:
Vagrant failed to properly resolve required dependencies. These
errors can commonly be caused by misconfigured plugin installations
or transient network issues. The reported error is:
ERROR: Failed to build gem native extension.
current directory: /Volumes/Ochosi/vagrant_home/gems/2.6.7/gems/oroku_saki-1.1.1/ext/oroku_saki
/opt/vagrant/embedded/bin/ruby -I /opt/vagrant/embedded/lib/ruby/2.6.0 -r ./siteconf20210706-30781-fsgyx5.rb extconf.rb
creating Makefile
current directory: /Volumes/Ochosi/vagrant_home/gems/2.6.7/gems/oroku_saki-1.1.1/ext/oroku_saki
make "DESTDIR=" clean
current directory: /Volumes/Ochosi/vagrant_home/gems/2.6.7/gems/oroku_saki-1.1.1/ext/oroku_saki
make "DESTDIR="
compiling memzero.c
clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' [-Wmissing-sysroot]
memzero.c:16:10: fatal error: 'assert.h' file not found
#include <assert.h>
^~~~~~~~~~
1 error generated.
make: *** [memzero.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Volumes/Ochosi/vagrant_home/gems/2.6.7/gems/oroku_saki-1.1.1 for inspection.
Results logged to /Volumes/Ochosi/vagrant_home/gems/2.6.7/extensions/x86_64-darwin-19/2.6.0/oroku_saki-1.1.1/gem_make.out
Now had to run vagrant plugin expunge
before trellis up
(vagrant up
) would even run.
Incremented the vagrant ip
here as per @ben recommendation.
Wait a minute
Don’t know if this will solve the problem, but I am seeing that the IP address specified by vagrant_ip
in the default file (above), is vagrant_ip: '192.168.50.5'
, but in the error messages, it is 192.168.50.1
.
@swalkinshaw @strarsis your input would be very welcome.