schubergphilis / vagrant-chef-zero Goto Github PK
View Code? Open in Web Editor NEWVagrant Plugin for Chef Zero
License: Apache License 2.0
Vagrant Plugin for Chef Zero
License: Apache License 2.0
Use the monkey patching trick to allow for exclusion of a Chef Server url in the Vagrantfile. Instead, allow Vagrant-Chef-Zero to pick one on the default port.
Running the Vagrantfile from here : https://github.com/stackforge/openstack-chef-repo/blob/master/Vagrantfile
gives me the error : Ridley::Errors::ClientKeyFileNotFoundOrInvalid: client key is invalid or not found at: '/etc/chef/client.pem'
full logs of vagrant up can be found :- https://gist.github.com/paulczar/7d335ffb63c37c85e5d0
It looks like it's either not creating the /etc/chef/client.pem file, or not telling Berkshelf what to use instead of that.
I just installed vagrant-chef-zero (0.7.1) on vagrant v1.6.1 on OS X Mavericks. A Gist with output from a vagrant up
is here. Berkshelf is not being used.
This is a multi-VM Vagrantfile and I've added:
config.chef_zero.chef_repo_path = "../../.."
which ends up going to my primary chef-repo directory containing roles, nodes, cookbooks, etc.
Not sure if chef-zero itself is to blame, but...
This is with vagrant 1.4.3 and vagrant-chef-zero 0.6.0
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[Chef Zero] Starting Chef Zero at http://172.16.64.3:4000
sh: line 1: 95695 Abort trap: 6 /Users/eherot/.vagrant.d/gems/gems/chef-zero-1.7.3/bin/chef-zero --host 172.16.64.3 --port 4000 2>&1 > /dev/null
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Waiting for Chef Zero to start
...
And you can see the full trace by calling the Vagrant ruby directly:
https://gist.github.com/eherot/8589770
Chef-zero issue? Vagrant issue? Or Ruby issue? Currently chef-zero is the only thing on my machine showing symptoms.
When I try to use this provisioner with Vagrant, I get the following errors. Why is it looking for a server URL? Shouldn't it default to something like localhost:8889?
There are errors in the configuration of this machine. Please fix
the following errors and try again:
chef client provisioner:
* Chef Server URL must be populated.
* Validation key path must be valid path to your Chef Server validation key.
My vagrant plugin list:
vagrant-aws (0.5.0)
vagrant-berkshelf (4.0.1)
vagrant-cachier (1.1.0)
vagrant-chef-zero (0.7.1)
vagrant-hostsupdater (0.0.11)
vagrant-ohai (0.1.7)
vagrant-omnibus (1.4.1)
vagrant-share (1.1.4, system)
vagrant-vmware-fusion (3.1.2)
The relevant part of my Vagrantfile:
w.vm.provision :chef_client do |chef|
chef.node_name = config.vm.hostname
chef.run_list = [
"recipe[training-laptop::default]"
]
end
Commit 4c845d0 introduced file path expansion to some of the config attributes. However, some of those attributes can actually be arrays of paths and in that case vagrant will throw and exception like the following:
lib/vagrant-chef-zero/config.rb:79:in `expand_path': no implicit conversion of Array into String (TypeError)
from /Users/mferreira/development/git/vagrant-chef-zero/lib/vagrant-chef-zero/config.rb:79:in `finalize!'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/v2/root.rb:50:in `block in finalize!'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/v2/root.rb:49:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/v2/root.rb:49:in `finalize!'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/v2/loader.rb:21:in `finalize'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/config/loader.rb:158:in `load'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/vagrantfile.rb:28:in `initialize'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:691:in `new'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:691:in `vagrantfile'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:441:in `host'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:207:in `block in action_runner'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:33:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:33:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:428:in `hook'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:673:in `unload'
from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant:177:in `ensure in <main>'
from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant:177:in `<main>'
To reproduce set, for instance, the cookbooks attribute in Vagrant file like this:
...
config.chef_zero.cookbooks = [ 'test/fixtures/cookbooks', 'test/fixtures/test_cookbooks' ]
...
On 0.5.2...
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
/Users/joelmoss/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.2/lib/vagrant-chef-zero/env_helpers.rb:53:in `get_chef_server_url': undefined method `ip_address' for nil:NilClass (NoMethodError)
from /Users/joelmoss/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.2/lib/vagrant-chef-zero/action/reconfig.rb:17:in `initialize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:90:in `new'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:90:in `finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:20:in `block in initialize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:20:in `map'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:20:in `initialize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/builder.rb:170:in `new'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/builder.rb:170:in `to_app'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/builder.rb:116:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/runner.rb:61:in `block in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/util/busy.rb:19:in `busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/runner.rb:61:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/machine.rb:147:in `action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'
from /Users/joelmoss/.vagrant.d/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `call'
from /Users/joelmoss/.vagrant.d/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
ERROR root: -- Error: #<Gem::LoadError: Unable to activate chef-11.6.2, because json-1.8.0 conflicts with json (<= 1.7.7, >= 1.4.4)>
I suspect that Ridley is causing 1.8.0 to be loaded, as it has a >= 1.7.7 version constraint.
Push over a set of testing fixtures that can be ported with the repo, excluding a .box
file.
Sanitized versions needed:
nodes/
environments/
roles/
data_bags/
After installing vagrant-chef-zero on my Windows 7 machine, vagrant is no longer able to create VMs, even when the chef-zero provisioner is not used. Here's the error I got:
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
the ffi-yajl and yajl-ruby gems have incompatible C libyajl libs and should not be loaded in the same Ruby VM
falling back to ffi which might work (or might not, no promises)
C:/Users/smartt/.vagrant.d/gems/gems/chef-11.6.0/lib/chef/provider/env/windows.rb:20:in `require': cannot load such file -- ruby-wmi (LoadEr
ror)
from C:/Users/smartt/.vagrant.d/gems/gems/chef-11.6.0/lib/chef/provider/env/windows.rb:20:in `<top (required)>'
from C:/Users/smartt/.vagrant.d/gems/gems/chef-11.6.0/lib/chef/providers.rb:51:in `require'
from C:/Users/smartt/.vagrant.d/gems/gems/chef-11.6.0/lib/chef/providers.rb:51:in `<top (required)>'
from C:/Users/smartt/.vagrant.d/gems/gems/chef-11.6.0/lib/chef.rb:25:in `require'
from C:/Users/smartt/.vagrant.d/gems/gems/chef-11.6.0/lib/chef.rb:25:in `<top (required)>'
from C:/Users/smartt/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:1:in `require'
from C:/Users/smartt/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:1:in `<top (required)>'
from C:/Users/smartt/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action.rb:19:in `block in chef_zero_provisio
n'
from C:/Users/smartt/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action.rb:17:in `tap'
from C:/Users/smartt/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action.rb:17:in `chef_zero_provision'
from C:/Users/smartt/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/plugin.rb:20:in `provision'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:42:in `call'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:42:in `block (2 levels) in run'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:41:in `tap'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:41:in `block in run'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:40:in `map'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/action/runner.rb:40:in `run'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:214:in `action_raw'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:191:in `block in action'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/environment.rb:516:in `lock'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:178:in `call'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/machine.rb:178:in `action'
from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
Vagrant Plugins:
$ vagrant plugin list
vagrant-berkshelf (3.0.1)
- Version Constraint: 3.0.1
vagrant-chef-zero (0.7.1)
vagrant-omnibus (1.4.1)
vagrant-proxyconf (1.4.0)
vagrant-share (1.1.3)
vagrant-vbguest (0.10.0)
Relevant gems:
$ gem list | grep 'yajl\|ffi\|wmi\|chef\|vagrant'
chef (12.0.0.rc.0 x86-mingw32, 11.18.0.rc.1 x86-mingw32, 11.16.4 x86-mingw32, 11.6.0, 10.34.4 x86-mingw32, 0.8.10)
chef-dk (0.3.5)
chef-provisioning (0.16.1)
chef-provisioning-aws (0.1.1)
chef-provisioning-azure (0.1)
chef-provisioning-fog (0.11)
chef-provisioning-vagrant (0.8.1)
chef-vault (2.2.4)
chef-zero (3.2, 2.2.1, 1.5.6)
cheffish (0.9)
chefspec (4.2.0.beta.1)
ffi (1.9.6 x86-mingw32, 1.3.1 x86-mingw32)
ffi-yajl (1.2.0)
kitchen-vagrant (0.15.0)
libyajl2 (1.1.0)
rdp-ruby-wmi (0.3.1)
wmi-lite (1.0.0)
yajl-ruby (1.2.1)
Then I uninstall the vagrant-chef-zero plugin and it runs fine. Before uninstalling the plugin, I also tried updating the relevant gems, using older versions of libyajl, yajl-ruby, and ffi-yajl. I even tried uninstalling chefdk and all the gems, then reinstalling a clean version, but no luck.
I'm having trouble getting this plugin to work even with the example Vagrantfile in the readme. I'm on Vagrant 1.2.4, OSX 10.8.5, Ruby 1.9.3p392, and I can consistently reproduce the error with vagrant-chef-zero 0.5.1 and 0.5.2.
I must be doing something really wrong as I cannot find that anyone else has had this trouble. I had some dependency issues while I had some other Vagrant plugins installed, so I removed those plugins and reinstalled vagrant-chef-zero.
Any ideas? Do I need to upgrade Vagrant?
โ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Destroying VM and associated drives...
/Applications/Vagrant/embedded/lib/ruby/1.9.1/net/protocol.rb:141:in `read_nonblock': end of file reached (EOFError)
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:2562:in `read_status_line'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:2551:in `read_new'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1319:in `block in transport_request'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1316:in `catch'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1316:in `transport_request'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1293:in `request'
from /Volumes/CHEETAH/.vagrant.d/gems/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1286:in `block in request'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:745:in `start'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/net/http.rb:1284:in `request'
from /Volumes/CHEETAH/.vagrant.d/gems/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request'
from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/server_helpers.rb:49:in `is_a_chef_zero_server?'
from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/server_helpers.rb:34:in `block in chef_zero_server_running?'
from /Applications/Vagrant/embedded/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/server_helpers.rb:33:in `chef_zero_server_running?'
from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/server_helpers.rb:11:in `start_chef_zero'
from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/action/start.rb:20:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:13:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/set_name.rb:35:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `block in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/util/busy.rb:19:in `busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/call.rb:51:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `block in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/util/busy.rb:19:in `busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/call.rb:51:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `block in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/util/busy.rb:19:in `busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/call.rb:51:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/call.rb:57:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Volumes/CHEETAH/.vagrant.d/gems/gems/vagrant-chef-zero-0.5.1/lib/vagrant-chef-zero/action/reconfig.rb:33:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/env_set.rb:19:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builtin/call.rb:57:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/builder.rb:116:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `block in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/util/busy.rb:19:in `busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/action/runner.rb:61:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/machine.rb:147:in `action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'
Currently only vagrant up
and vagrant destroy
monkey patch validation properly, all Vagrant actions should be included.
I was getting a similar error trying to install vagrant-chef-zero as a Vagrant plugin using Vagrant 1.3.5 on OSX 10.8.5 and XCode 5.01.
/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:562:in rescue in block in build_extensions':
ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/Applications/Vagrant/embedded/bin/ruby extconf.rb
creating Makefile
make
make: *** No rule to make target/Applications/Vagrant/embedded/include/ruby-1.9.1/x86_64-darwin12.3.0/ruby/config.h', needed by `yajl.o'. Stop.
I found a workaround solve on the Vagrant Issue #2402 that allows the install to work.
See the Vagrant issue here: hashicorp/vagrant#2402
sudo vagrant plugin install vagrant-chef-zero && sudo chown -R "$USER":staff ~/.vagrant.d/*
I am using OSX 10.8.5
XCode 5.01
Vagrant 1.3.5
VirtualBox 4.2.18
After I sorted out #10 , it still wouldn't start. It looks like it came down to this line:
pid = %x[ lsof -i tcp:#{port} | grep ruby | awk '{print $2}' ]
For whatever reason, my lsof was setting the "command" to be "chef-zero" instead of ruby. Thus, I was getting this:
[harlan@clay zabbix]$ lsof -i tcp:4000 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME chef-zero 19379 harlan 9u IPv4 283915 0t0 TCP clay.local:4000 (LISTEN)
which the above line was never finding. So I just did this and it worked:
pid = %x[ lsof -i tcp:#{port} | grep 'chef-zero' | awk '{print $2}' ]
Maybe something like this handles both?
pid = %x[ lsof -i tcp:#{port} | grep -E 'ruby|chef-zero' | awk '{print $2}' ]
Both this and #10 are no big deal. I'm good to go for now. Just a heads up in case anyone else gets this.
Since I upgraded everything (vagrant plugins + vagrant + ChefDK + chef-zero) on my OS X system I get the following errors when I'm trying to re-provision my vagrant box.
โ jenkins-chef-traceability-example git:(master) โ vagrant --version
Vagrant 1.6.3
โ jenkins-chef-traceability-example git:(master) โ vagrant plugin list
vagrant-aws (0.5.0)
vagrant-berkshelf (3.0.1)
vagrant-chef-zero (0.7.1)
vagrant-login (1.0.1, system)
vagrant-omnibus (1.4.1)
vagrant-share (1.1.1, system)
vagrant-vbguest (0.10.0)
โ jenkins-chef-traceability-example git:(master) โ cat Berksfile
source "https://supermarket.getchef.com"
cookbook 'webinar', :path => 'cookbooks/webinar'
cookbook 'chef_handler', "~> 1.1.6"
โ jenkins-chef-traceability-example git:(master) โ cat Vagrantfile
Vagrant.configure("2") do |config|
# install chef on the system using the omnibus installer
# this requires the vagrant-omnibus plugin:
# vagrant plugin install vagrant-omnibus
config.berkshelf.enabled = true
config.berkshelf.freeze = false
config.omnibus.chef_version = :latest
config.vm.hostname = "cloudbees-chef"
config.vm.box = "hashicorp/precise64"
config.chef_zero.enabled = true
config.chef_zero.chef_repo_path = "."
config.vm.network :forwarded_port, host: 8808, guest: 8080
config.vm.provision :chef_client do |chef|
chef.add_recipe "webinar::default"
end
end
It's pretty sure that the Ridley uses the following cookbook.upload options: {:validate=>true, :force=>false, :freeze=>false, :options=>{:name=>"webinar"}}
, so it should not freeze.
How can I "force" it to upload the cookbooks even if they're frozen, but somehow the cookbook version is frozen after the very first vagrant up. I'm using chef-zero. Or maybe it's a chef-zero bug? I tried to browse the code but haven't find any suspicious..
/Users/apapai/.vagrant.d/gems/gems/celluloid-0.16.0/lib/celluloid/responses.rb:29:in `value': The cookbook webinar (0.0.0) already exists and is frozen on the Chef server. Use the 'force' option to override. (Ridley::Errors::FrozenCookbook)
from /Users/apapai/.vagrant.d/gems/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in `value'
from /Users/apapai/.vagrant.d/gems/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
from /Users/apapai/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:42:in `block in upload_cookbooks'
from /Users/apapai/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:39:in `each'
from /Users/apapai/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:39:in `upload_cookbooks'
from /Users/apapai/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:27:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Users/apapai/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/start.rb:23:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `block in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in `busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `block in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in `busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Users/apapai/.vagrant.d/gems/gems/vagrant-berkshelf-3.0.1/lib/berkshelf/vagrant/action/configure_chef.rb:22:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Users/apapai/.vagrant.d/gems/gems/vagrant-berkshelf-3.0.1/lib/berkshelf/vagrant/action/load_shelf.rb:27:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/env_set.rb:19:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Users/apapai/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/reconfig.rb:33:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/env_set.rb:19:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `block in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in `busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:196:in `action_raw'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:173:in `block in action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:434:in `lock'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in `action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/commands/provision/command.rb:35:in `block in execute'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/plugin/v2/command.rb:226:in `block in with_target_vms'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/plugin/v2/command.rb:220:in `each'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/plugin/v2/command.rb:220:in `with_target_vms'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/commands/provision/command.rb:34:in `execute'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/cli.rb:42:in `execute'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:252:in `cli'
from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.3/bin/vagrant:166:in `<main>'
Given this code,
node.vm.provision :chef_client do |chef|
chef.chef_server_url = "https://10.0.0.4:4443/"
chef.validation_key_path = "validation.pem"
chef.add_role "web-server"
chef.environment = "dev"
end
The chef provisioning step will fail with,
/Users/adrian.smith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/server_helpers.rb:95:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)
from /Users/adrian.smith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/server_helpers.rb:95:in `new'
from /Users/adrian.smith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/server_helpers.rb:95:in `port_open?'
from /Users/adrian.smith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/server_helpers.rb:73:in `block in chef_zero_server_running?'
The cause of the problem is in env_helpers.get_port(). The parsing code doesn't strip the trailing slash. In the example above it would try to connect to the port '4443/'.
Note: The trailing slash isn't a problem for the regular chef provisioner.
Using vagrant-chef-zero (0.7.1) with vagrant 1.6.3
I faced a faraday gem issue:
STDERR: Vagrant failed to initialize at a very early stage:
The plugins failed to load properly. The error message given is
shown below.
undefined method `register_middleware' for #<Faraday::Connection:0x0000010221f018>
Couldn't get the repo to vagrant up:
$ vagrant plugin list
vagrant-berkshelf (2.0.1)
- Version Constraint: 2.0.1
vagrant-cachier (0.7.2)
vagrant-chef-zero (0.7.0)
vagrant-omnibus (1.4.1)
[env] 22/05 2014 22:39:20 jpic@lisa /tmp/vagrant-chef-zero ()
$ vagrant up
Vagrant.require_plugin is deprecated and has no effect any longer.
Use `vagrant plugin` commands to manage plugins. This warning will
be removed in the next version of Vagrant.
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'precise64'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: vagrant-chef-zero_default_1400791175641_9349
E, [2014-05-22T22:39:36.269825 #8544] ERROR -- : Actor crashed!
KeyError: key not found: :retries
/opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `fetch'
/opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `block in slice'
/opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `each'
/opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `slice'
/home/jpic/.vagrant.d/gems/gems/ridley-3.1.0/lib/ridley/client.rb:10:in `initialize'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `public_send'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `dispatch'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:63:in `dispatch'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/cell.rb:60:in `block in invoke'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/cell.rb:71:in `block in task'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/actor.rb:362:in `block in task'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/tasks.rb:55:in `block in initialize'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
E, [2014-05-22T22:39:36.270468 #8544] ERROR -- : Actor crashed!
KeyError: key not found: :retries
/opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `fetch'
/opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `block in slice'
/opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `each'
/opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `slice'
/home/jpic/.vagrant.d/gems/gems/ridley-3.1.0/lib/ridley/client.rb:10:in `initialize'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `public_send'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `dispatch'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:63:in `dispatch'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/cell.rb:60:in `block in invoke'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/cell.rb:71:in `block in task'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/actor.rb:362:in `block in task'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/tasks.rb:55:in `block in initialize'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
(celluloid):0:in `remote procedure call'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:92:in `value'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/proxies/cell_proxy.rb:17:in `_send_'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid.rb:169:in `new'
/home/jpic/.vagrant.d/gems/gems/ridley-3.1.0/lib/ridley/client.rb:146:in `initialize'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `public_send'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `dispatch'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:63:in `dispatch'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/cell.rb:60:in `block in invoke'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/cell.rb:71:in `block in task'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/actor.rb:362:in `block in task'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/tasks.rb:55:in `block in initialize'
/home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
==> default: Destroying VM and associated drives...
==> default: Running cleanup tasks for 'chef_client' provisioner...
/opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `fetch': key not found: :retries (KeyError)
from /opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `block in slice'
from /opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `each'
from /opt/vagrant/embedded/gems/gems/i18n-0.6.9/lib/i18n/core_ext/hash.rb:4:in `slice'
from /home/jpic/.vagrant.d/gems/gems/ridley-3.1.0/lib/ridley/client.rb:10:in `initialize'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `public_send'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `dispatch'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:63:in `dispatch'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/cell.rb:60:in `block in invoke'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/cell.rb:71:in `block in task'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/actor.rb:362:in `block in task'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/tasks.rb:55:in `block in initialize'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
from (celluloid):0:in `remote procedure call'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:92:in `value'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/proxies/cell_proxy.rb:17:in `_send_'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid.rb:169:in `new'
from /home/jpic/.vagrant.d/gems/gems/ridley-3.1.0/lib/ridley/client.rb:146:in `initialize'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `public_send'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `dispatch'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:63:in `dispatch'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/cell.rb:60:in `block in invoke'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/cell.rb:71:in `block in task'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/actor.rb:362:in `block in task'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/tasks.rb:55:in `block in initialize'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
from (celluloid):0:in `remote procedure call'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:92:in `value'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/proxies/sync_proxy.rb:33:in `method_missing'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid/proxies/cell_proxy.rb:17:in `_send_'
from /home/jpic/.vagrant.d/gems/gems/celluloid-0.16.0.pre/lib/celluloid.rb:169:in `new'
from /home/jpic/.vagrant.d/gems/gems/ridley-3.1.0/lib/ridley.rb:27:in `new'
from /home/jpic/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.0/lib/vagrant-chef-zero/action/upload.rb:189:in `setup_connection'
from /home/jpic/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.0/lib/vagrant-chef-zero/action/upload.rb:26:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /home/jpic/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.0/lib/vagrant-chef-zero/action/start.rb:23:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /home/jpic/.vagrant.d/gems/gems/vagrant-cachier-0.7.2/lib/vagrant-cachier/action/configure_bucket_root.rb:20:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:15:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/set_name.rb:50:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/box_check_outdated.rb:36:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/match_mac_address.rb:16:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/import.rb:32:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/customize.rb:40:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /home/jpic/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.0/lib/vagrant-chef-zero/action/reconfig.rb:33:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/env_set.rb:19:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /home/jpic/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/configure_chef.rb:13:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /home/jpic/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/load_shelf.rb:13:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /home/jpic/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.1/lib/berkshelf/vagrant/action/set_ui.rb:11:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/env_set.rb:19:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/handle_box.rb:56:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/machine.rb:196:in `action_raw'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/machine.rb:173:in `block in action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/environment.rb:434:in `lock'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/machine.rb:161:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/machine.rb:161:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
[env] 22/05 2014 22:39:39 jpic@lisa /tmp/vagrant-chef-zero ()
$ vagrant --version
Vagrant 1.6.2
When using vagrant-chef-zero with the latest version of Chef (11.8.2), a Bad request method for '/data/users/': PUT (Ridley::Errors::HTTPMethodNotAllowed)
error was received, which is equivalent to a 405
HTTP error.
I believe this is related to the following CHEF ticket: https://tickets.opscode.com/browse/CHEF-4435
Some companies will only use gems with a certain license.
The canonical and easy way to check is via the gemspec
via e.g.
spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']
There is even a License Finder to help companies ensure all gems they use
meet their licensing needs. This tool depends on license information being available in the gemspec.
Including a license in your gemspec is a good practice, in any case.
How did I find you?
I'm using a script to collect stats on gems, originally looking for download data, but decided to collect licenses too,
and make issues for missing ones as a public service :)
https://gist.github.com/bf4/5952053#file-license_issue-rb-L13 So far it's going pretty well
My default shell is ZSH, vagrant is running in Bash for some reason. As RVM isn't sourced in bash, it causes issues with native gems. Is there a way to force Vagrant to use the current shell of the user to prevent this issue?
dep_selector is the gem that causes issues. It's resolved with just installing it via ZSH still broken even with switching shells and getting RVM sourced.
Since we do not have Chef, we cannot easily read in .rb
files and convert them to JSON, for now we should opt to only accept JSON files for:
environments/
roles/
nodes/
data_bags/
$ vagrant plugin install vagrant-chef-zero
Installing the 'vagrant-chef-zero' plugin. This can take a few minutes...
Installed the plugin 'vagrant-chef-zero (0.5.1)'!
$ vagrant up
Failed to load the "vagrant-chef-zero" plugin. View logs for more details.
Looks like there is a trouble with building native extensions for ffi-yajl-1.4.0.
I do not know who depends on it, but I face the problem installing vagrant-chef-zero
plugin.
I have a Mac with Vagrant 2.0.1 installed and latest chefDk:
Chef Development Kit Version: 2.3.4
chef-client version: 13.4.19
delivery version: master (73ebb72a6c42b3d2ff5370c476be800fee7e5427)
berks version: 6.3.1
kitchen version: 1.17.0
inspec version: 1.36.1
vagrant plugin install vagrant-chef-zero
Installing the 'vagrant-chef-zero' plugin. This can take a few minutes...
Fetching: vagrant-share-1.1.9.gem (100%)
Fetching: mixlib-log-1.7.1.gem (100%)
Fetching: hashie-2.1.2.gem (100%)
Fetching: libyajl2-1.2.0.gem (100%)
Building native extensions. This could take a while...
Fetching: ffi-yajl-1.4.0.gem (100%)
Building native extensions. This could take a while...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
ERROR: Failed to build gem native extension.
current directory: /Users/user/.vagrant.d/gems/2.4.2/gems/ffi-yajl-1.4.0/ext/ffi_yajl/ext/encoder
/opt/vagrant/embedded/bin/ruby -r ./siteconf20171108-6740-csrr4x.rb extconf.rb
-I/Users/user/.vagrant.d/gems/2.4.2/gems/libyajl2-1.2.0/lib/libyajl2/vendored-libyajl2/include -I/opt/vagrant/embedded/include -I/vagrant-substrate/cache/ruby-2.4.2/include -O3 -fno-common -pipe
-L/Users/user/.vagrant.d/gems/2.4.2/gems/libyajl2-1.2.0/lib/libyajl2/vendored-libyajl2/lib -L. -L/opt/vagrant/embedded/lib -Wl,-rpath,@loader_path/../lib -Wl,-rpath,@executable_path/../lib -Wl,-rpath,/$pt/vagrant/embedded/lib -fstack-protector -L/usr/local/lib -L/opt/vagrant/embedded/lib
checking for yajl/yajl_tree.h... yes
creating Makefile
current directory: /Users/user/.vagrant.d/gems/2.4.2/gems/ffi-yajl-1.4.0/ext/ffi_yajl/ext/encoder
make "DESTDIR=" clean
current directory: /Users/user/.vagrant.d/gems/2.4.2/gems/ffi-yajl-1.4.0/ext/ffi_yajl/ext/encoder
make "DESTDIR="
compiling encoder.c
encoder.c:382:20: error: use of undeclared identifier 'rb_cFixnum'
rb_define_method(rb_cFixnum, "ffi_yajl", rb_cFixnum_ffi_yajl, 2);
^
encoder.c:383:20: error: use of undeclared identifier 'rb_cBignum'
rb_define_method(rb_cBignum, "ffi_yajl", rb_cBignum_ffi_yajl, 2);
^
2 errors generated.
make: *** [encoder.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/user/.vagrant.d/gems/2.4.2/gems/ffi-yajl-1.4.0 for inspection.
Results logged to /Users/user/.vagrant.d/gems/2.4.2/extensions/x86_64-darwin-13/2.4.0/ffi-yajl-1.4.0/gem_make.out
I am struggling to install the vagrant-chef-zero plugin on OSX due to net-ssh compatibility issues.
$ vagrant plugin install vagrant-chef-zero
Installing the 'vagrant-chef-zero' plugin. This can take a few minutes...
The plugin(s) can't be installed due to the version conflicts below.
This means that the plugins depend on a library version that conflicts
with other plugins or Vagrant itself, creating an impossible situation
where Vagrant wouldn't be able to load the plugins.
You can fix the issue by either removing a conflicting plugin or
by contacting a plugin author to see if they can address the conflict.
Vagrant could not find compatible versions for gem "net-ssh":
In Gemfile:
vagrant (= 1.8.1) ruby depends on
net-ssh (~> 3.0.1) ruby
vagrant (= 1.8.1) ruby depends on
net-scp (~> 1.1.0) ruby depends on
net-ssh (>= 2.6.5) ruby
vagrant (= 1.8.1) ruby depends on
net-scp (~> 1.1.0) ruby depends on
net-ssh (>= 2.6.5) ruby
vagrant-chef-zero (>= 0) ruby depends on
net-ssh (~> 2.6.6) ruby
Here is some system information:
vagrant version && vagrant plugin list
Installed Version: 1.8.1
Latest Version: 1.8.1
You're running an up-to-date version of Vagrant!
vagrant-berkshelf (4.1.0)
vagrant-omnibus (1.4.1)
vagrant-share (1.1.5, system)
vagrant-vbguest (0.11.0)
vagrant-vmware-fusion (4.0.5)
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.2
BuildVersion: 15C50
General info:
C:>vagrant -v
Vagrant 1.4.3
C:>vagrant plugin list
vagrant-berkshelf (1.3.7)
vagrant-chef-zero (0.6.0)
vagrant-omnibus (1.2.1)
vagrant-windows (1.5.1)
Error text:
INFO environment: Loading plugin from JSON: vagrant-chef-zero
ERROR root: Failed to load plugin: vagrant-chef-zero
ERROR root: -- Error: #<Gem::LoadError: Unable to activate chef-11.8.2-x86-mingw32, because ffi-1.9.3-x86-mingw32 conflicts with ffi (= 1.3.1)>
ERROR root: -- Backtrace:
ERROR root: C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/rubygems/specification.rb:2007:in `raise_if_conflicts'
This code in lib/vagrant-chef-zero/env_helpers.rb incorrectly detects address of chef-zero server (it takes address of another interface with private address)
ip_address = Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.ip_address
i saw this pull request #28
a few days ago but it seems that this is not been released yet
Hi,
Is there provision to add the path to encrypted_data_bag_secret into the VagrantFile using chef zero?
I'd like to test decryption of encrypted data bags using vagrant and chef zero.
Thanks!
$ gem fetch vagrant-chef-zero
Fetching: vagrant-chef-zero-0.7.1.gem (100%)
Downloaded vagrant-chef-zero-0.7.1
$ tar xzOf vagrant-chef-zero-0.7.1.gem data.tar.gz | tar tz | grep '.gem$'
pkg/vagrant-chef-zero-0.7.1.gem
I'm trying to get this plugin to work with Vagrant 1.5.4...I fixed one bug and submitted a pull request...now I'm getting a different issue. This appears to be a mess of a dependency issue...
vagrant-chef-zero
depends on ridley >= 1.0.0
. That's fine.vagrant
depends on celluloid =0.15.2
However, ridley 3.1.0 recently changed the version that they depend on. They now ridley
depends on ~> 0.16.0.pre
. My initial thought was to change vagrant-chef-zero
to depend on ridley >= 1.0.0, <= 3.0.0
, however, the vagrant-berkshelf
plugin depends on ridley ~> 3.1.0
.
I guess my next step would be to see if I can downgrade vagrant-berkshelf
...but do we have any other options?
Just installed and tried vagrant-chef-zero plugin first time. Mac OS, virtualbox provider. vagrant 1.6.3
I have tried installing uninstalling both vagrant plugin and chef, always the same error:
service name too long...
Bringing machine 'ubuntu' up with 'virtualbox' provider...
==> ubuntu: Importing base box 'ubuntuvbox'...
==> ubuntu: Matching MAC address for NAT networking...
==> ubuntu: Setting the name of the VM: my_vm
==> ubuntu: Destroying VM and associated drives...
==> ubuntu: Running cleanup tasks for 'chef_client' provisioner...
/Volumes/LaCie/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/server_helpers.rb:95:in initialize': service name too long (37) (ArgumentError) from /Volumes/LaCie/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/server_helpers.rb:95:in
new'
from /Volumes/LaCie/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/server_helpers.rb:95:in port_open?' from /Volumes/LaCie/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/server_helpers.rb:73:in
block in chef_zero_server_running?'
from /Volumes/LaCie/Applications/Vagrant/embedded/lib/ruby/2.0.0/timeout.rb:66:in timeout' from /Volumes/LaCie/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/server_helpers.rb:72:in
chef_zero_server_running?'
from /Volumes/LaCie/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/server_helpers.rb:11:in start_chef_zero' from /Volumes/LaCie/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/start.rb:20:in
call'
from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:15:in
call'
from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/set_name.rb:50:in
call'
from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in
call'
from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_accessible.rb:18:in
call'
from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6. from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
block in run'
from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
run'
from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:196:in action_raw' from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:173:in
block in action'
from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:434:in lock' from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in
call'
from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in action' from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/batch_action.rb:82:in
block (2 levels) in run'
from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in call' from /Volumes/LaCie/Applications/Vagrant/embedded/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in
block in create_with_logging_context'
Hey,
Just to give a heads up that since I upgraded Vagrant to 1.5 I'm getting this error:
/Users/cassiano/.vagrant.d/gems/gems/vagrant-chef-zero-0.6.0/lib/vagrant-chef-zero/env.rb:13:in `initialize': undefined method `scope' for #<Vagrant::UI::Colored:0x0000010133ecb0> (NoMethodError)
from /Users/cassiano/.vagrant.d/gems/gems/vagrant-chef-zero-0.6.0/lib/vagrant-chef-zero/action.rb:37:in `new'
from /Users/cassiano/.vagrant.d/gems/gems/vagrant-chef-zero-0.6.0/lib/vagrant-chef-zero/action.rb:37:in `block in chef_zero_ui_setup'
from /Users/cassiano/.vagrant.d/gems/gems/vagrant-chef-zero-0.6.0/lib/vagrant-chef-zero/action.rb:36:in `tap'
from /Users/cassiano/.vagrant.d/gems/gems/vagrant-chef-zero-0.6.0/lib/vagrant-chef-zero/action.rb:36:in `chef_zero_ui_setup'
from /Users/cassiano/.vagrant.d/gems/gems/vagrant-chef-zero-0.6.0/lib/vagrant-chef-zero/plugin.rb:15:in `reconfig'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:45:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:45:in `block (2 levels) in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:44:in `tap'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:44:in `block in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:43:in `map'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/action/runner.rb:43:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/environment.rb:300:in `hook'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/vagrant/environment.rb:141:in `initialize'
from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.5.0/bin/vagrant:138:in `new'
from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.5.0/bin/vagrant:138:in `<main>'
With this Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = '2'
Vagrant.require_version '>= 1.5.0'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.chef_zero.enabled = true
config.chef_zero.chef_repo_path = "chef"
config.vm.box = 'ubuntu/trusty32'
config.vm.provision :chef_client do |chef|
chef.run_list = []
end
end
It fails with
The following berks command failed to execute:
/usr/bin/berks upload --berksfile /home/vilisseranen/co-rabbitmq/Berksfile --no-freeze --force
The stdout and stderr are shown below:
stdout: E, [2015-07-27T09:33:11.214641 #6659] ERROR -- : Ridley::Errors::ClientKeyFileNotFoundOrInvalid: client key is invalid or not found at: '/etc/chef/client.pem'
E, [2015-07-27T09:33:11.214751 #6659] ERROR -- : /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.2.0/lib/ridley/client.rb:144:in `initialize'
I thought the authentication was handled by the plugin so I don't understand why I can't connect.
Add friendly logging to the output of vagrant up
so that it is clear where [Chef Zero]
is running.
I'm going to kick the tires on upgrading vagrant-chef-zero to 2.0 and replacing Ridley with https://github.com/sethvargo/chef-api to see how it behaves. Putting this issue in to reference for anyone interested in that progress.
Having trouble getting vagrant-chef-zero to register clients and execute.
I also cannot connect to the chef-zero server using knife.
Questions:
Do I need to add json files in the nodes directory for each vm in the vagrantfile by name? I tried this but got no love.
Does vagrant-chef-zero/chef-zero automatically upload all the cookbooks in the paths specified in the config.chef_zero blocks? or do I need to use knife to do this?
Here is my local environment:
OSX Lion 10.8.4
RVM with 1.9.3
VirtualBox 4.2.12 (with ext pack 4.2.12)
Vagrant 1.2.2
Chef gem under the 1.9.3 RVM environment
Here is my Vagrantfile
Vagrant.configure("2") do |config|
#VAGRANT_LOG = debug
#config.berkshelf.enabled = true
config.ssh.timeout = 120
#chef-zero configuration block
#chef-zero runs on the host machine not the guest
# config.chef_zero.enabled = false
config.chef_zero.nodes = "/Users/jeff/git-repos/vagrantprojects/vagrant-chef-zero/nodes"
config.chef_zero.environments = "/Users/jeff/git-repos/vagrantprojects/vagrant-chef-zero/environments"
config.chef_zero.data_bags = "/Users/jeff/git-repos/vagrantprojects/vagrant-chef-zero/data_bags"
config.chef_zero.cookbooks = "/Users/jeff/git-repos/vagrantprojects/vagrant-chef-zero/cookbooks"
config.chef_zero.roles = "/Users/jeff/git-repos/vagrantprojects/vagrant-chef-zero/roles"
config.vm.provider :virtualbox do |vb|
vb.gui = true
end
config.vm.define :vm1 do |vm1|
vm1.vm.hostname = "vagrantvm1-local"
vm1.vm.box = "centos64basebox"
vm1.vm.provision :chef_client do |chef|
chef.run_list = [
]
end
end
Here is the error I get when doing vagrant up with my vagrant file:
[vm1] Importing base box 'centos64basebox'...
[vm1] Matching MAC address for NAT networking...
[vm1] Setting the name of the VM...
[vm1] Clearing any previously set forwarded ports...
[Chef Zero] Starting Chef Zero at http://192.168.1.52:4000
[Chef Zero] Waiting for Chef Zero to start
[Chef Zero] Creating Node vagrantvm1-local
[Chef Zero] Creating Node vagrantvm2-local
[vm1] Creating shared folders metadata...
[vm1] Clearing any previously set network interfaces...
[vm1] Preparing network interfaces based on configuration...
[vm1] Forwarding ports...
[vm1] -- 22 => 2222 (adapter 1)
[vm1] Booting VM...
[vm1] Waiting for VM to boot. This can take a few minutes.
[vm1] VM booted and ready for use!
[vm1] Setting hostname...
[vm1] Configuring and enabling network interfaces...
[vm1] Mounting shared folders...
[vm1] -- /vagrant
[vm1] Running provisioner: chef_client...
Creating folder to hold client key...
Uploading chef client validation key...
Generating chef JSON and uploading...
[vm1] Warning: Chef solo run list is empty. This may not be what you want.
Running chef-client...
[2013-07-05T19:40:48-07:00] INFO: *** Chef 11.4.4 ***
[2013-07-05T19:40:48-07:00] INFO: [inet6] no default interface, picking the first ipaddress
[2013-07-05T19:40:49-07:00] INFO: Client key /etc/chef/client.pem is not present - registering
[2013-07-05T19:40:49-07:00] INFO: Run List is []
[2013-07-05T19:40:49-07:00] INFO: Run List expands to []
[2013-07-05T19:40:49-07:00] INFO: HTTP Request Returned 404 Not Found: Object not found: /reports/nodes/vagrantvm1-local/runs
[2013-07-05T19:40:49-07:00] INFO: Starting Chef Run for vagrantvm1-local
[2013-07-05T19:40:49-07:00] INFO: Running start handlers
[2013-07-05T19:40:49-07:00] INFO: Start handlers complete.
[2013-07-05T19:40:49-07:00] INFO: Loading cookbooks []
[2013-07-05T19:40:49-07:00] WARN: Node vagrantvm1-local has an empty run list.
[2013-07-05T19:40:49-07:00] INFO: Chef Run complete in 0.039698792 seconds
[2013-07-05T19:40:49-07:00] INFO: Running report handlers
[2013-07-05T19:40:49-07:00] INFO: Report handlers complete
It seems like provisioning the guests work just fine. If I ssh into the guest and try to run chef-client I see there isn't a /etc/chef/client.rb, so it doesn't know how to find the chef-zero server running on the host.
It seems like the vagrant chef_client should be creating that config but maybe I'm missing something. Is there any way to pass that value into the guest in a way I can create the config file from?
I wish to use chef zero with vagrant for provisioning developer environments. These developers are involved in application development and are not involved in maintaining chef recipes.
I have a chef server which acts as a repository for all chef components. Is it possible to configure chef zero with this chef server, so that a developer can leverage the roles and environments?
I can use berkshelf to download cookbooks using chef_api but role's runlist and environment's attributes will have to replicated in Vagrant file.
The advantage with this approach is that a developer can replicate production or QA environments by changing environment in Vagrantfile.
Pretty simple setup for my first pass at using chef-zero ...
[harlan@clay zabbix]$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Importing base box 'CentOS-6.4-x86_64-Minimal'... [default] Matching MAC address for NAT networking... [default] Setting the name of the VM... [default] Clearing any previously set forwarded ports... [Chef Zero] Starting Chef Zero at http://10.20.55.149:4000 [Chef Zero] Waiting for Chef Zero to start [Chef Zero] Waiting for Chef Zero to start [Chef Zero] Waiting for Chef Zero to start [Chef Zero] Waiting for Chef Zero to start [Chef Zero] Waiting for Chef Zero to start [Chef Zero] Waiting for Chef Zero to start [Chef Zero] Waiting for Chef Zero to start [Chef Zero] Waiting for Chef Zero to start [Chef Zero] Waiting for Chef Zero to start [Chef Zero] Waiting for Chef Zero to start [Chef Zero] Waiting for Chef Zero to start [Chef Zero] Waiting for Chef Zero to start`
And it never starts ...
I poked around some and it seems like this line in lib/vagrant-chef-zero/server_helpers.rb seems like it expects to find only one directory:
vagrant_gems = ENV['GEM_PATH'].split(':').select { |gp| gp.include?('vagrant')}
but (at least on my system it finds two):
/home/harlan/.vagrant.d/gems /opt/vagrant/bin/../embedded/gems
So then the next line joins the two together and adds the bin/chef-zero:
chef_zero_binary = ::File.join(vagrant_gems, "bin", "chef-zero")
to form this:
/home/harlan/.vagrant.d/gems/opt/vagrant/bin/../embedded/gems/bin/chef-zero
which obviously fails.
To work around this problem I just added a '.d' to the include and got it to start:
vagrant_gems = ENV['GEM_PATH'].split(':').select { |gp| gp.include?('vagrant.d')}
I have no idea if that's a good idea or not. :-)
Here's my setup if it matters:
[harlan@clay ~]$ lsb_release -d Description: Ubuntu 12.04.2 LTS [harlan@clay ~]$ ruby -v ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] [harlan@clay ~]$ vagrant -v Vagrant version 1.2.2 [harlan@clay ~]$ vagrant plugin list buff-config (0.2.0) vagrant-berkshelf (1.3.2) vagrant-chef-zero (0.2.4) vagrant-omnibus (1.1.0)
You might want to consider using chef-zero in repository mode instead of the in-memory mode. This would have two excellent effects:
If you include knife-essentials and chef-zero as libraries, you can do something like this: (copied and tailored to your situation from https://github.com/opscode/test-kitchen/blob/the-stretch/support/chef-client-zero.rb#L31-L48)
require 'chef/config'
require 'chef_fs/chef_fs_data_store'
require 'chef_fs/config'
require 'chef_zero/server'
Chef::Config.chef_repo_path = "/Users/jkeiser/repo"
# some optional parameters that are like the ones you are using:
# Chef::Config.cookbook_path = "/Users/jkeiser/repo/cookbook"
# Chef::Config.data_bag_path = "/Users/jkeiser/repo/data_bags"
# ...
data_store = ChefFS::ChefFSDataStore.new(
ChefFS::Config.new(Chef::Config).local_fs
)
server_opts = {
:host => "127.0.0.1",
:port => 8889,
:generate_real_keys => false,
:data_store => data_store
}
Chef::Log.info("Starting Chef Zero server in background")
server = ChefZero::Server.new(server_opts)
server.start_background
From looking at the chef-zero code, updates to _default will fail:
https://github.com/opscode/chef-zero/blob/master/lib/chef_zero/endpoints/environment_endpoint.rb#L20
My chef-repo has environments/_default.json and https://github.com/andrewgross/vagrant-chef-zero/blob/master/lib/vagrant-chef-zero/action/upload.rb#L81 tries to update _default environment.
@conn.environment.update(environment) unless environment['name'] == '_default'
Not sure what the impact of this would be for environments with specific environment configurations / attributes etc, but I know I had to remove cookbook version constraints for environments in order to run chef-client in local-mode - it might be the same for chef-zero and so a safe bet to make this change.
Worked fine with chef-11.10.4, gonna guess 11.12 changed its deps.
vagrant plugin install vagrant-chef-zero
Installing the 'vagrant-chef-zero' plugin. This can take a few minutes...
/opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:211:in gather_dependencies': Unable to resolve dependencies: vagrant-chef-zero requires chef-zero (~> 1.3); chef requires chef-zero (>= 2.0.2, ~> 2.0) (Gem::DependencyError) from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:333:in
install'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/action/install_gem.rb:65:in block in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/gem_helper.rb:42:in
block in with_environment'
from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/user_interaction.rb:40:in use_ui' from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/gem_helper.rb:41:in
with_environment'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/action/install_gem.rb:52:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in
call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/action/bundler_check.rb:20:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in
call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builder.rb:116:in call' from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in
block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/util/busy.rb:19:in busy' from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in
run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/command/base.rb:17:in action' from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/command/install.rb:27:in
execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/command/root.rb:56:in execute' from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/cli.rb:38:in
execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/environment.rb:484:in cli' from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/bin/vagrant:127:in
<top (required)>'
from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in load' from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in
Many projects are going to keep all their data under one top level subdirectory. knife-essentials introduced a new config option, chef_repo_path
, which signifies that all your data is under there. To wit:
chef_repo_path '/Users/jkeiser/repo'
# implies these things:
# cookbook_path '/Users/jkeiser/repo/cookbooks'
# data_bag_path '/Users/jkeiser/repo/data_bags'
# node_path '/Users/jkeiser/repo/nodes'
# client_path '/Users/jkeiser/repo/clients
# etc...
This would make configuration of vagrant-chef-zero much simpler for many cases.
Bringing machine 'base-1404' up with 'virtualbox' provider...
Bringing machine 'base-1204' up with 'virtualbox' provider...
==> base-1404: Importing base box 'Vagrant-Ubuntu_14.04-1404691259.box'...
==> base-1404: Matching MAC address for NAT networking...
==> base-1404: Setting the name of the VM: chef_base-1404_1404777594085_26470
Loading cookbooks from ./cookbooks
Uploading Cookbook 7-zip
E, [2014-07-07T16:59:54.903005 #764] ERROR -- : Ridley::CookbookResource crashed!
NameError: uninitialized constant Solve::Version
/Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook/metadata.rb:105:in initialize' /Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook/metadata.rb:29:in
new'
/Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook/metadata.rb:29:in from_json' /Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook.rb:37:in
from_path'
/Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/resources/cookbook_resource.rb:190:in upload' /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in
public_send'
/Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in dispatch' /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in
dispatch'
/Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in block in handle_message' /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in
block in task'
/Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in block in initialize' /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/tasks/task_thread.rb:20:in
block in create'
/Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/thread_handle.rb:13:in block in initialize' /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/internal_pool.rb:100:in
call'
/Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/internal_pool.rb:100:in block in create' E, [2014-07-07T16:59:54.960980 #764] ERROR -- : Ridley::SandboxResource crashed! NameError: uninitialized constant Solve::Version /Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook/metadata.rb:105:in
initialize'
/Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook/metadata.rb:29:in new' /Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook/metadata.rb:29:in
from_json'
/Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook.rb:37:in from_path' /Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/resources/cookbook_resource.rb:190:in
upload'
/Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in public_send' /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in
dispatch'
/Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in dispatch' /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in
block in handle_message'
/Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in block in task' /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in
block in initialize'
/Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/tasks/task_thread.rb:20:in block in create' /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/thread_handle.rb:13:in
block in initialize'
/Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/internal_pool.rb:100:in call' /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/internal_pool.rb:100:in
block in create'
(celluloid):0:in remote procedure call' /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/calls.rb:92:in
value'
/Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/proxies/sync_proxy.rb:33:in method_missing' /Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:42:in
block in upload_cookbooks'
/Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:39:in each' /Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:39:in
upload_cookbooks'
/Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:27:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/start.rb:23:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:15:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/set_name.rb:50:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_accessible.rb:18:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in
busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in
block in finalize_action'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
block in run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
run'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in
busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/box_check_outdated.rb:36:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/config_validate.rb:25:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in
block in finalize_action'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/match_mac_address.rb:16:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/import.rb:32:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/customize.rb:40:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_accessible.rb:18:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in
busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/config_validate.rb:25:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/reconfig.rb:33:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/env_set.rb:19:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in
block in finalize_action'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/handle_box.rb:56:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in
busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in
call'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in
busy'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:196:in
action_raw'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:173:in block in action' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:434:in
lock'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in call' /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in
action'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/batch_action.rb:82:in block (2 levels) in run' W, [2014-07-07T16:59:55.065098 #764] WARN -- : Terminating task: type=:finalizer, meta={:method_name=>:__shutdown__}, status=:callwait ==> base-1404: Destroying VM and associated drives... ==> base-1404: Running cleanup tasks for 'chef_client' provisioner... W, [2014-07-07T16:59:57.120010 #764] WARN -- : Terminating task: type=:finalizer, meta={:method_name=>:__shutdown__}, status=:callwait W, [2014-07-07T16:59:57.123355 #764] WARN -- : Terminating task: type=:finalizer, meta={:method_name=>:__shutdown__}, status=:callwait W, [2014-07-07T16:59:57.125142 #764] WARN -- : Terminating task: type=:finalizer, meta={:method_name=>:__shutdown__}, status=:callwait /Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook/metadata.rb:105:in
initialize': uninitialized constant Solve::Version (NameError)
from /Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook/metadata.rb:29:in new' from /Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook/metadata.rb:29:in
from_json'
from /Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/chef/cookbook.rb:37:in from_path' from /Users/tsmith/.vagrant.d/gems/gems/ridley-2.5.0/lib/ridley/resources/cookbook_resource.rb:190:in
upload'
from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in public_send' from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in
dispatch'
from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in dispatch' from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in
block in handle_message'
from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in block in task' from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in
block in initialize'
from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/tasks/task_thread.rb:20:in block in create' from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/thread_handle.rb:13:in
block in initialize'
from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/internal_pool.rb:100:in call' from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/internal_pool.rb:100:in
block in create'
from (celluloid):0:in remote procedure call' from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/calls.rb:92:in
value'
from /Applications/Vagrant/embedded/gems/gems/celluloid-0.15.2/lib/celluloid/proxies/sync_proxy.rb:33:in method_missing' from /Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:42:in
block in upload_cookbooks'
from /Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:39:in each' from /Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:39:in
upload_cookbooks'
from /Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/upload.rb:27:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/start.rb:23:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:15:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/set_name.rb:50:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_accessible.rb:18:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in
busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in
block in finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
block in run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in busy' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in
busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/box_check_outdated.rb:36:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/config_validate.rb:25:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in
block in finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/match_mac_address.rb:16:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/import.rb:32:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/customize.rb:40:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_accessible.rb:18:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in
busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/config_validate.rb:25:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Users/tsmith/.vagrant.d/gems/gems/vagrant-chef-zero-0.7.1/lib/vagrant-chef-zero/action/reconfig.rb:33:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/env_set.rb:19:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in
block in finalize_action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/handle_box.rb:56:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in
busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/call.rb:53:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:in
call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in block in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:in
busy'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in run' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:196:in
action_raw'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:173:in block in action' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:434:in
lock'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in call' from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in
action'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
Would be great if these commands would actually work so that a complete teardown of the instance is not required every time I fix a cookbook bug.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.