Multisite provisioning failure

After successfully getting several single sites configured and up without issue, I’m moving up to multisite attempts. I’ve read through the wiki, the bug/issue re: multisite and thought I was on the right path. It appears not. Here’s the output I’m seeing (apologies for the length):

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/trusty64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: Setting the name of the VM: multisitedev_default_1437689355580_20203
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: [landrush] Need to configure the host.
==> default: [landrush] Mometarily using sudo to put the host config in place...
Password:
==> default: [landrush] starting dns server
[landrush] Starting daemon...
[landrush] Waiting for daemon to start...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if its present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: [landrush] setting up machine's DNS to point to our server
==> default: [landrush] network: :private_network, {:ip=>"192.168.50.5", :protocol=>"tcp", :id=>"e896702f-0cb0-4097-98f7-459afd3d54bf"}
==> default: [landrush] network: :forwarded_port, {:guest=>22, :host=>2222, :host_ip=>"127.0.0.1", :id=>"ssh", :auto_correct=>true, :protocol=>"tcp"}
==> default: Checking for guest additions in VM...
==> default: Checking for host entries
==> default: adding to (/etc/hosts) : 192.168.50.5  multisite.dev  # VAGRANT: f49ece5971bcd47b7c54472eb5158ed2 (default) / dd48d9ec-9a13-4f3d-812a-71d8e95670cc
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: [landrush] adding machine entry: multisite.dev => 192.168.50.5
==> default: [landrush] adding static entry: *.multisite.dev => 192.168.50.5
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
==> default: Mounting NFS shared folders...
==> default: Mounting shared folders...
    default: /vagrant => /Users/alan-c/sites/multisite.dev
==> 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?

Up to that point, everything, including Landrush seemed to be going ok. Any thoughts on where I’m messing up the setup?

And here’s the data from the ruby process that hangs around and block vagrant destroy/anything afterwards.

/Users/alan-c/.vagrant.d/data/landrush
/opt/vagrant/embedded/bin/ruby
/opt/vagrant/embedded/lib/libruby.2.0.0.dylib
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/enc/encdb.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/enc/trans/transdb.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/etc.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/pathname.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/digest/sha1.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/digest.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/fcntl.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/stringio.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/json/ext/parser.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/enc/utf_16be.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/enc/utf_16le.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/enc/utf_32be.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/enc/utf_32le.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/fiber.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/digest/md5.bundle
/opt/vagrant/embedded/lib/libcrypto.1.0.0.dylib
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/socket.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/json/ext/generator.bundle
/opt/vagrant/embedded/rgloader/rgloader20.darwin.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/openssl.bundle
/opt/vagrant/embedded/lib/libssl.1.0.0.dylib
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/psych.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/strscan.bundle
/opt/vagrant/embedded/lib/libz.dylib
/opt/vagrant/embedded/lib/libyaml.dylib
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/date_core.bundle
/Users/alan-c/.vagrant.d/gems/gems/eventmachine-1.0.7/lib/rubyeventmachine.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/io/console.bundle
/opt/vagrant/embedded/lib/ruby/2.0.0/universal-darwin12.5.0/zlib.bundle
/usr/lib/dyld
/private/var/db/dyld/dyld_shared_cache_x86_64h
/dev/null
/Users/alan-c/.vagrant.d/data/landrush/log/Landrush-Server.log
/Users/alan-c/.vagrant.d/data/landrush/log/Landrush-Server.log
->0x7957f4ff5a31d231
->0x7957f4ff5a31cec1
->0x7957f4ff5a31d4f1
->0x7957f4ff5a31d391
->0x7957f4ff5a31cf71
->0x7957f4ff5a31d441
/Users/alan-c/.vagrant.d/data/lock.machine-action-9f96c5138d4c1f57c633368910d355fc.lock
*:10053
*:10053
/Users/alan-c/.vagrant.d/data/lock.fpcollision.lock

Well the error is pretty straightforward itself:

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'

That’s an error from the VM. It can’t resolve archive.ubuntu.com meaning the DNS lookup failed. You can ssh into the VM and try dig archive.ubuntu.com.

If it works you’d see output like this:

; ANSWER SECTION:
archive.ubuntu.com.	49	IN	A	91.189.92.200
archive.ubuntu.com.	49	IN	A	91.189.91.24
archive.ubuntu.com.	49	IN	A	91.189.91.23
archive.ubuntu.com.	49	IN	A	91.189.91.15
archive.ubuntu.com.	49	IN	A	91.189.91.14
archive.ubuntu.com.	49	IN	A	91.189.92.201
archive.ubuntu.com.	49	IN	A	91.189.91.13

If it doesn’t work I’d make sure networking works first of all, then check if other domains resolve (like google.com for example).

Yeah, I get what the error is, I’m just trying to identify what’s causing it. Getting SERVFAILs on all dig attempts, +trace showing nothing. IP address pings are working.

ifconfig claims eth1 is up. /etc/network/interfaces looked correct. I took down and cleared out eth1 and brought it back up, but no success.

hostname --fqdn is giving me the canonical name.

/etc/resolve.conf shows nameserver 10.0.2.3, which I’m guessing is Landrush, but I’ll have to look closer. /etc/hosts has the correct hostname. getent hosts multisite.dev resolves fine, as expected.

dig @locahost multisite.dev are giving me (1 server found) but the connections are timing out. Same for subdomains.

Something wrong with or related to Landrush I’m guessing, but I haven’t worked out what. FWIW the only changes I’ve made to the Vagrantfile are the ones given in the wiki/instructions.

Identified the culprit. I had added:

site_hosts:
  - "multisite.dev"
  - "*.multisite.dev"

based on the discussion here. The last line is responsible for the issue. Removing the line allows vagrant up to get past that point.

Unfortunately, one problem solved only to bring me to the WP installed? failures mentioned in that same discussion. Back to the drawing board.

There are currently issues with multisite and Trellis as @austin points out in that issue you linked in the first post.

If you can help get it fixed, PR’s are accepted! :relaxed: :kissing_closed_eyes: