Berks install giving errors


#1

I was trying to install all the dependency cookbooks using berkshelf and ran berks install and I am getting the following error.

solving cookbook dependencies…
tching ‘jenkins’ from source at .
tching ‘jenkins_authentication’ from source at test/fixtures/cookbooks/jenkins_authentication
tching ‘jenkins_command’ from source at test/fixtures/cookbooks/jenkins_command
tching ‘jenkins_credentials’ from source at test/fixtures/cookbooks/jenkins_credentials
tching ‘jenkins_job’ from source at test/fixtures/cookbooks/jenkins_job
tching ‘jenkins_plugin’ from source at test/fixtures/cookbooks/jenkins_plugin
tching ‘jenkins_script’ from source at test/fixtures/cookbooks/jenkins_script
tching ‘jenkins_server_wrapper’ from source at test/fixtures/cookbooks/jenkins_server_wrapper
tching ‘jenkins_slave’ from source at test/fixtures/cookbooks/jenkins_slave
tching ‘jenkins_smoke’ from source at test/fixtures/cookbooks/jenkins_smoke
tching ‘jenkins_user’ from source at test/fixtures/cookbooks/jenkins_user
tching cookbook index from https://supermarket.chef.io
/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.5/lib/berkshelf/installer.rb:27:in join': No live threads left. Deadlock? (fatal) from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.5/lib/berkshelf/installer.rb:27:inmap’
from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.5/lib/berkshelf/installer.rb:27:in build_universe' from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.5/lib/berkshelf/installer.rb:161:ininstall_from_universe’
from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.5/lib/berkshelf/installer.rb:39:in run' from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.5/lib/berkshelf/berksfile.rb:421:ininstall’
from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.5/lib/berkshelf/cli.rb:143:in install' from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:inrun’
from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:indispatch’
from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.5/lib/berkshelf/cli.rb:52:in dispatch' from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:instart’
from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.5/lib/berkshelf/cli.rb:27:in execute!' from c:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/berkshelf-4.3.5/bin/berks:5:in<top (required)>‘
from c:/opscode/chefdk/embedded/bin/berks:22:in `load’

Can anyone help me on this.


#2

You might try using the ruby solver for berks mentioned in this previous post: Strategies for debugging with dependency resolution issues?


#3

Its also worth trying to nuke your user gems. There is a known issue where clearing these out unblocks this error.

rm -rf ~/.chefdk


#4

I am using windows as work-station and I am unable to resolve the issue after following the procedures specified. I have updated the chef gem as well.


#5

On windows the user gems are at $env:LocalAppData\chefdk. I’d also suggest trying the latest chef-dk (0.18.26).