Skip to content

Instantly share code, notes, and snippets.

@cswingler
Created January 13, 2016 20:53
Show Gist options
  • Save cswingler/cb3bbfb8d873d5f88c4e to your computer and use it in GitHub Desktop.
Save cswingler/cb3bbfb8d873d5f88c4e to your computer and use it in GitHub Desktop.
Reproducing Vagrant issue #6801
techops_chef git:(master) ✗ vagrant plugin uninstall berkshelf vagrant-berkshelf vagrant-omnibus
Uninstalling the 'berkshelf' plugin...
Uninstalling the 'vagrant-berkshelf' plugin...
Uninstalling the 'vagrant-omnibus' plugin...
➜ techops_chef git:(master) ✗ vagrant --version
Vagrant 1.8.1
➜ techops_chef git:(master) ✗ vagrant up ubuntu14.04
There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.
Path: /Users/chrisswingler/Sprout/src/techops_chef/techops_chef/Vagrantfile
Line number: 15
Message: LoadError: cannot load such file -- vagrant-berkshelf
➜ techops_chef git:(master) ✗ vagrant plugin install berkshelf vagrant-berkshelf vagrant-omnibus
Installing the 'berkshelf' plugin. This can take a few minutes...
Installed the plugin 'berkshelf (4.0.1)'!
Installing the 'vagrant-berkshelf' plugin. This can take a few minutes...
Installed the plugin 'vagrant-berkshelf (4.1.0)'!
Post install message from the 'vagrant-berkshelf' plugin:
The Vagrant Berkshelf plugin requires Berkshelf from the Chef Development Kit.
You can download the latest version of the Chef Development Kit from:
https://downloads.chef.io/chef-dk/
Installing Berkshelf via other methods is not officially supported.
Installing the 'vagrant-omnibus' plugin. This can take a few minutes...
Installed the plugin 'vagrant-omnibus (1.4.1)'!
➜ techops_chef git:(master) ✗ vagrant up ubuntu14.04
Bringing machine 'ubuntu14.04' up with 'virtualbox' provider...
The following berks command failed to execute:
/Users/chrisswingler/.rbenv/versions/2.3.0/bin/berks --version --format json
The stdout and stderr are shown below:
stdout:
stderr: Ignoring dep-selector-libgecode-1.0.2 because its extensions are not built. Try: gem pristine dep-selector-libgecode --version 1.0.2
Ignoring dep_selector-1.0.3 because its extensions are not built. Try: gem pristine dep_selector --version 1.0.3
Ignoring ffi-1.9.10 because its extensions are not built. Try: gem pristine ffi --version 1.9.10
Ignoring hitimes-1.2.3 because its extensions are not built. Try: gem pristine hitimes --version 1.2.3
Ignoring nio4r-1.2.0 because its extensions are not built. Try: gem pristine nio4r --version 1.2.0
Ignoring nokogiri-1.6.3.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.3.1
Ignoring unf_ext-0.0.7.1 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.1
Ignoring wdm-0.1.1 because its extensions are not built. Try: gem pristine wdm --version 0.1.1
/Users/chrisswingler/.vagrant.d/gems/gems/hitimes-1.2.3/lib/hitimes.rb:46:in `<top (required)>': Unable to find binary extension, was hitimes installed correctly? (LoadError)
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/timers-4.0.4/lib/timers/group.rb:4:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/timers-4.0.4/lib/timers.rb:4:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/celluloid-0.16.0/lib/celluloid/receivers.rb:3:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/celluloid-0.16.0/lib/celluloid.rb:475:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/ridley-4.4.2/lib/ridley.rb:2:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/berkshelf-4.0.1/lib/berkshelf.rb:7:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/berkshelf-4.0.1/lib/berkshelf/cli.rb:1:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/berkshelf-4.0.1/bin/berks:3:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/bin/berks:23:in `load'
from /Users/chrisswingler/.rbenv/versions/2.3.0/bin/berks:23:in `<main>'
It appears that you are not using the ChefDK. Please note that Vagrant Berkshelf
works best when used with the ChefDK, and other installation methods are not
officially supported.
Please download and install the latest version of the ChefDK from:
https://downloads.chef.io/chef-dk
and follow the installation instructions. Do not forget to add the ChefDK to
your PATH.
➜ techops_chef git:(master) ✗ rm -rf ~/.vagrant.d
➜ techops_chef git:(master) ✗ vagrant plugin install berkshelf vagrant-berkshelf vagrant-omnibus
Installing the 'berkshelf' plugin. This can take a few minutes...
Installed the plugin 'berkshelf (4.0.1)'!
Installing the 'vagrant-berkshelf' plugin. This can take a few minutes...
Installed the plugin 'vagrant-berkshelf (4.1.0)'!
Post install message from the 'vagrant-berkshelf' plugin:
The Vagrant Berkshelf plugin requires Berkshelf from the Chef Development Kit.
You can download the latest version of the Chef Development Kit from:
https://downloads.chef.io/chef-dk/
Installing Berkshelf via other methods is not officially supported.
Installing the 'vagrant-omnibus' plugin. This can take a few minutes...
Installed the plugin 'vagrant-omnibus (1.4.1)'!
➜ techops_chef git:(master) ✗ vagrant up ubuntu14.04
Bringing machine 'ubuntu14.04' up with 'virtualbox' provider...
==> ubuntu14.04: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
ubuntu14.04: Box Provider: virtualbox
ubuntu14.04: Box Version: >= 0
==> ubuntu14.04: Loading metadata for box 'ubuntu/trusty64'
ubuntu14.04: URL: https://atlas.hashicorp.com/ubuntu/trusty64
==> ubuntu14.04: Adding box 'ubuntu/trusty64' (v20160107.1.0) for provider: virtualbox
ubuntu14.04: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20160107.1.0/providers/virtualbox.box
==> ubuntu14.04: Successfully added box 'ubuntu/trusty64' (v20160107.1.0) for 'virtualbox'!
The following berks command failed to execute:
/Users/chrisswingler/.rbenv/versions/2.3.0/bin/berks --version --format json
The stdout and stderr are shown below:
stdout:
stderr: Ignoring dep-selector-libgecode-1.0.2 because its extensions are not built. Try: gem pristine dep-selector-libgecode --version 1.0.2
Ignoring dep_selector-1.0.3 because its extensions are not built. Try: gem pristine dep_selector --version 1.0.3
Ignoring ffi-1.9.10 because its extensions are not built. Try: gem pristine ffi --version 1.9.10
Ignoring hitimes-1.2.3 because its extensions are not built. Try: gem pristine hitimes --version 1.2.3
Ignoring nio4r-1.2.0 because its extensions are not built. Try: gem pristine nio4r --version 1.2.0
Ignoring nokogiri-1.6.3.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.3.1
Ignoring unf_ext-0.0.7.1 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.1
Ignoring wdm-0.1.1 because its extensions are not built. Try: gem pristine wdm --version 0.1.1
/Users/chrisswingler/.vagrant.d/gems/gems/hitimes-1.2.3/lib/hitimes.rb:46:in `<top (required)>': Unable to find binary extension, was hitimes installed correctly? (LoadError)
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/timers-4.0.4/lib/timers/group.rb:4:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/timers-4.0.4/lib/timers.rb:4:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/celluloid-0.16.0/lib/celluloid/receivers.rb:3:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/celluloid-0.16.0/lib/celluloid.rb:475:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/ridley-4.4.2/lib/ridley.rb:2:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/berkshelf-4.0.1/lib/berkshelf.rb:7:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/berkshelf-4.0.1/lib/berkshelf/cli.rb:1:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/chrisswingler/.vagrant.d/gems/gems/berkshelf-4.0.1/bin/berks:3:in `<top (required)>'
from /Users/chrisswingler/.rbenv/versions/2.3.0/bin/berks:23:in `load'
from /Users/chrisswingler/.rbenv/versions/2.3.0/bin/berks:23:in `<main>'
It appears that you are not using the ChefDK. Please note that Vagrant Berkshelf
works best when used with the ChefDK, and other installation methods are not
officially supported.
Please download and install the latest version of the ChefDK from:
https://downloads.chef.io/chef-dk
and follow the installation instructions. Do not forget to add the ChefDK to
your PATH.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment