Error provisioning vagrant machine

86 views
Skip to first unread message

Mark Taylor

unread,
Jul 15, 2014, 2:12:14 PM7/15/14
to rapi...@googlegroups.com
Hi,

A couple of us at the London code jam are trying to get vagrant set up but are running into difficulty. When we do a vagrant up (after pulling the latest code) we get the output below.

Anyone have any ideas what might be going wrong for us?

Thanks

Mark

Bringing machine 'dev' up with 'virtualbox' provider...
==> dev: Box 'hashicorp/precise32' could not be found. Attempting to find and install...
    dev: Box Provider: virtualbox
    dev: Box Version: >= 0
==> dev: Loading metadata for box 'hashicorp/precise32'
    dev: URL: https://vagrantcloud.com/hashicorp/precise32
==> dev: Adding box 'hashicorp/precise32' (v1.0.0) for provider: virtualbox
    dev: Downloading: https://vagrantcloud.com/hashicorp/precise32/version/1/provider/virtualbox.box
==> dev: Successfully added box 'hashicorp/precise32' (v1.0.0) for 'virtualbox'!
==> dev: Importing base box 'hashicorp/precise32'...
==> dev: Matching MAC address for NAT networking...
==> dev: Checking if box 'hashicorp/precise32' is up to date...
==> dev: Setting the name of the VM: RapidFTR_dev_1405446245265_27810
==> dev: The cookbook path '/Users/mtaylor/Projects/RapidFTR/infrastructure/site-cookbooks' doesn't exist. Ignoring...
==> dev: The cookbook path '/Users/mtaylor/Projects/RapidFTR/infrastructure/roles' doesn't exist. Ignoring...
==> dev: Clearing any previously set network interfaces...
==> dev: Preparing network interfaces based on configuration...
    dev: Adapter 1: nat
==> dev: Forwarding ports...
    dev: 3000 => 3000 (adapter 1)
    dev: 5984 => 5984 (adapter 1)
    dev: 22 => 2222 (adapter 1)
==> dev: Booting VM...
==> dev: Waiting for machine to boot. This may take a few minutes...
    dev: SSH address: 127.0.0.1:2222
    dev: SSH username: vagrant
    dev: SSH auth method: private key
==> dev: Machine booted and ready!
==> dev: Checking for guest additions in VM...
    dev: The guest additions on this VM do not match the installed version of
    dev: VirtualBox! In most cases this is fine, but in rare cases it can
    dev: prevent things such as shared folders from working properly. If you see
    dev: shared folder errors, please make sure the guest additions within the
    dev: virtual machine match the version of VirtualBox you have installed on
    dev: your host and reload your VM.
    dev:
    dev: Guest Additions Version: 4.2.0
    dev: VirtualBox Version: 4.3
==> dev: Mounting shared folders...
    dev: /vagrant => /Users/mtaylor/Projects/RapidFTR
    dev: /usr/local/rvm/archives => /Users/mtaylor/Projects/RapidFTR/tmp/vagrant/rubies
    dev: /var/cache/apt/archives => /Users/mtaylor/Projects/RapidFTR/tmp/vagrant/apt
    dev: /usr/local/rvm/gems/ruby-1.9.3-p392@rapidftr/cache => /Users/mtaylor/Projects/RapidFTR/tmp/vagrant/gems
==> dev: Running provisioner: chef_solo...
Generating chef JSON and uploading...
==> dev: Running chef-solo...
==> dev: stdin: is not a tty
==> dev: [2014-07-15T17:44:16+00:00] INFO: *** Chef 10.14.2 ***
==> dev: [2014-07-15T17:44:16+00:00] INFO: Setting the run_list to ["role[development]"] from JSON
==> dev: ================================================================================
==> dev: Error expanding the run_list:
==> dev: ================================================================================
==> dev: Unexpected Error:
==> dev: -----------------
==> dev: TypeError: can't convert nil into String
==> dev: [2014-07-15T17:44:16+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> dev: [2014-07-15T17:44:16+00:00] FATAL: TypeError: can't convert nil into String
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

Subhas Dandapani

unread,
Jul 15, 2014, 2:21:39 PM7/15/14
to rapi...@googlegroups.com
Hi Mark,

Just a quick check - does your "infrastructure" folder exist and populated? If not please run "git submodule update --init" and then try vagrant again

Let's chat on IRC

- Subhas


--
You received this message because you are subscribed to the Google Groups "rapidftr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapidftr+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
- Subhas

Subhas Dandapani

unread,
Jul 15, 2014, 2:24:20 PM7/15/14
to rapi...@googlegroups.com
(When trying vagrant again - if vagrant VM is still running then run "vagrant provision", if vagrant VM is stopped or destroyed then run "vagrant up --provision")

You can quickly join the IRC from the web browser here - http://webchat.freenode.net/?channels=rapidftr
--
- Subhas

Mark Taylor

unread,
Jul 15, 2014, 2:26:52 PM7/15/14
to rapi...@googlegroups.com
Yup, that was the problem - thanks Subhas! That explains why it worked for someone who was starting fresh - they were actually following the instructions ;-)

Subhas Dandapani

unread,
Jul 15, 2014, 2:28:41 PM7/15/14
to rapi...@googlegroups.com
Awesome :)

Adding the wiki link here just in case anyone else stumbles upon this thread: https://github.com/rapidftr/RapidFTR/wiki/Develop-with-Vagrant

Subhas Dandapani

unread,
Jul 15, 2014, 2:31:49 PM7/15/14
to rapi...@googlegroups.com
And Mark - just one thing - the first time you run "vagrant up" it will provision the VM using Chef, and in process it will install CouchDB, JDK, Ruby, Bundle, etc. That will take quite a while, but they are all cached in the "tmp" folder in the codebase.

So you could simply copy the "tmp" folder over to others for lesser delays :)


--
- Subhas

Subhas Dandapani

unread,
Jul 15, 2014, 2:41:29 PM7/15/14
to rapi...@googlegroups.com
Updated wiki with the "Sharing downloaded files" section:

https://github.com/rapidftr/RapidFTR/wiki/Develop-with-Vagrant#sharing-downloaded-files
--
- Subhas

Mark Taylor

unread,
Jul 15, 2014, 2:42:17 PM7/15/14
to rapi...@googlegroups.com
ah, great tip, thanks!

Mark Taylor

unread,
Jul 15, 2014, 2:55:53 PM7/15/14
to rapi...@googlegroups.com
Ok, So it got further but has failed with a different error - I've joined the chat room...
Reply all
Reply to author
Forward
0 new messages