Open prandelicious opened 9 years ago
Did you managed to solve this?
Yes. I edited the spec files and replaced it with the version that is supported.
From: eliram Sent: Thursday, February 5, 2015 2:42 PM To: chef/knife-container Cc: Francis Vidal
Did you managed to solve this?
— Reply to this email directly or view it on GitHub.
Getting same error on clean ubuntu 14.04 install with ChefDK 0.4.0 and knife-container-0.2.4.
Any non-hacky solutions :) ?
P.S.
I had to edit .chefdk/gem/ruby/2.1.0/specifications/knife-container-0.2.4.gems
s.add_runtime_dependency(%q
this is absolutely terrible
Same issue on ubuntu 14.04 and chefdk 0.4.0
chef -v Chef Development Kit Version: 0.4.0
Linux jump-02 3.13.0-46-generic #75-Ubuntu SMP Tue Feb 10 15:24:04 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
/opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:2104:in `raise_if_conflicts': Unable to activate knife-container-0.2.4, because json-1.8.2 conflicts with json (<= 1.8.1, >= 1.4.4) (Gem::ConflictError)
@prandelicious can you precise the spec file you edited and how ?
@prandelicious @GenaSG Can you please give some details on your solutions please ?
I've edited ~/.chefdk/gem/ruby/2.1.0/specifications/knife-container-0.2.4.gems Changed all json related version info to needed (%q, ["<= 1.8.1", ">= 1.4.4"]) to (%q, ["<= 1.8.2", ">= 1.4.4"]) But it's a dirty hack. Right now I'm just using chef-solo provisioning described inside Dockerfile. So docker build would do all needed things.
Same here after installing chefdk 0.4.0 knife is borged :( on json 1.8.2
Got the same issue on windows ChefDK install, but can't find that file anywhere :sob:
i got past all these errors, but its not showing up as a knife-submodule
I've got the same error on the latest version but I solved using GenaSG's approach. My version is running on Docker:
root@ec33ddcd4e34:/# chef -v Chef Development Kit Version: 0.6.0 chef-client version: 12.3.0 berks version: 3.2.4 kitchen version: 1.4.0 root@ec33ddcd4e34:/# uname -a Linux ec33ddcd4e34 3.18.11-tinycore64 #1 SMP Thu Apr 16 17:46:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Same error here, using the latest Chef-DK + Json 1.8.3 + RVM System-wide.
Building native extensions. This could take a while... Successfully installed json-1.8.3 Parsing documentation for json-1.8.3 Done installing documentation for json after 0 seconds 1 gem installed
Chef Development Kit Version: 0.6.2 chef-client version: 12.3.0 berks version: 3.2.4 kitchen version: 1.4.0
I've tried to use the Gena's solution, but I had no success with it, because knife raises another error:
/usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb:2104:in `raise_if_conflicts': Unable to activate winrm-s-0.2.4, because winrm-1.3.3 conflicts with winrm (~> 1.2.0) (Gem::ConflictError)
I searched this line in .chefdk/gem/ruby/2.1.0/specifications/knifecontainer
Btw: I needed to uninstall the knife-container plugin after this, because the bug has spreaded for the all knife subcommands. Now, it's working ok.
The container plugin is a great idea, but it's bork from now =(.
Try blowing away the ~/.chefdk directory. I've had to do this too many times because other troubleshoot ingmethods are too much work ... but this often works for me, to the point where I wonder it the chefdk installer/(updater) shouldn't just check in that directory and figure out what the conflict is and remove the gem(s) or cache file(s) that is causing the issue.
Sure, I will try it later.
Btw, I saw that the developer has discontinued the support to knife container, and recomends using the Chef Provisioning plugin for Docker. I think that this is not a problem anymore, so...
Blowing away the ~/.chefdk directory fixed this for me also looks like
got the same error and really have no idea how it happened but solution by @GenaSG seems to have solved the problem
I installed Chef DK 0.3.6 on Ubuntu 12.04:
and installed the knife-container via
chef gem install knife-container
. When I ranchef verify
, it gave me this error message: