schubergphilis / vagrant-chef-zero

Vagrant Plugin for Chef Zero
Apache License 2.0
91 stars 42 forks source link

Installation succeeds, but running vagrant fails #25

Open joelmoss opened 10 years ago

joelmoss commented 10 years ago
$ 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.
joelmoss commented 10 years ago

More details...

 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 vagrant-chef-zero-0.5.1, because json-1.8.0 conflicts with json (<= 1.7.7, >= 1.4.4)>
ERROR root:  -- Backtrace:
ERROR root: /Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/specification.rb:1637:in `raise_if_conflicts'
/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/specification.rb:746:in `activate'
/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems.rb:212:in `rescue in try_activate'
/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems.rb:209:in `try_activate'
/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
/Applications/Vagrant/embedded/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant.rb:193:in `require_plugin'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/environment.rb:744:in `block in load_plugins'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/environment.rb:741:in `each'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/environment.rb:741:in `load_plugins'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/environment.rb:132:in `initialize'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/bin/vagrant:74:in `new'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/bin/vagrant:74:in `<top (required)>'
/Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `load'
/Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `<main>'
 INFO interface: error: Failed to load the "vagrant-chef-zero" plugin. View logs for more details.
dustinmm80 commented 10 years ago

I was able to fix this by installing the plugins in the correct order, as detailed here:

https://github.com/andrewgross/vagrant-chef-zero/issues/23#issuecomment-27515655

andrewgross commented 10 years ago

OK Thanks.

luisgarcc commented 10 years ago

The solution on https://github.com/andrewgross/vagrant-chef-zero/issues/25#issuecomment-28592432 did not work for me. I am still seeing the issue.

alanivey commented 10 years ago

I installed 0.5.2 today (first time using vagrant-chef-zero) and I had to uninstall/reinstall plugins in the correct order as mentioned in #23 like @dustinmm80 mentioned.

andrewgross commented 10 years ago

Thanks for the update, will try to reproduce once I get back on a real internet connection.

kramvan1 commented 10 years ago

Install 0.5.2 in ordered mentioned above and issue still exists.

andrewgross commented 10 years ago

Using a newer version of Vagrant (>= 1.4) I was able to remove my extra version locking on Json, i18n and Activesupport. Check out version 0.6.0 and let me know.

kramvan1 commented 10 years ago

cleaned up all and reinstalled Vagrant 1.4.2, then plugins: vagrant-berkshelf (1.3.7) vagrant-chef-zero (0.6.0) vagrant-omnibus (1.2.1)

Conflict is now with ffi:

DEBUG environment: Loading plugins from: C:/Users/IBM_ADMIN/.vagrant.d/plugins.json INFO environment: Loading plugin from JSON: vagrant-omnibus INFO manager: Registered plugin: vagrant-omnibus INFO manager: Registered required plugin: vagrant-omnibus INFO root: Loaded plugin vagrant-omnibus, version 1.2.1 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)>

* LOCAL GEMS *

bigdecimal (1.2.0) childprocess (0.3.9) erubis (2.7.0) ffi (1.9.3 x86-mingw32 i18n (0.6.9) io-console (0.4.2) json (1.7.7) log4r (1.1.10) minitest (4.3.2) net-scp (1.1.2) net-ssh (2.7.0) psych (2.0.0) rake (0.9.6) rdoc (4.0.0) test-unit (2.0.0.0) vagrant (1.4.2)

andrewgross commented 10 years ago

Thanks for the update, will try to replicate.