No internet access with trellis, landrush and multisite

I followed the MultiSite Wiki (https://github.com/roots/trellis/wiki/Multisite) and get the following errors. Seems that the VM has no internet access.

==> default: Mounting NFS shared folders…
==> default: Mounting shared folders…
default: /vagrant => /Users/fabianhenzler/Development/local.matrix42.com
==> default: Bindfs seems to not be installed on the virtual machine
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

apt-get install -y bindfs

Stdout from the command:

Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  bindfs
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.1 kB of archives.
After this operation, 89.1 kB of additional disk space will be used.
Err http://archive.ubuntu.com/ubuntu/ trusty/universe bindfs amd64 1.12.3-1
  Could not resolve 'archive.ubuntu.com'


Stderr from the command:

stdin: is not a tty
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/b/bindfs/bindfs_1.12.3-1_amd64.deb  Could not resolve 'archive.ubuntu.com'

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

seems to have something to do with the MultiSite setup (https://github.com/roots/trellis/wiki/Multisite), because without at least the vagrant up is running through

Appears you are going for a subdomain install? I (and others iirc) saw similar errors to this due to issues with site_hosts. See my post here as it references a very similar error. Specifically, if you have the wildcard: - "*.yourdomain.com" it will lead to issues.

There is discussion of the multisite issues here that may help you. And here is the in-progress pull request with a working solution for multisite installs, including subdomain ones. The pull request has full instructions as well. Hope this helps.

2 Likes