Skip to content

Instantly share code, notes, and snippets.

@domofactor
Created January 26, 2016 05:28
Show Gist options
  • Save domofactor/1062d9cfa5e58d6cde69 to your computer and use it in GitHub Desktop.
Save domofactor/1062d9cfa5e58d6cde69 to your computer and use it in GitHub Desktop.
Kitchen::UserError: Could not load or activate Berkshelf (Could not open library '/pipeline/cache/bundle-install/ruby/2.2.0/gems/dep_selector-1.0.3/lib/dep_gecode.so': /pipeline/cache/bundle-install/ruby/2.2.0/gems/dep-selector-libgecode-1.0.2/lib/dep-selector-libgecode/vendored-gecode/lib/libgecodesearch.so.32: file too short)
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/provisioner/chef/berkshelf.rb:108:in `rescue in load_berkshelf!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/provisioner/chef/berkshelf.rb:95:in `load_berkshelf!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/provisioner/chef/berkshelf.rb:54:in `load!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/provisioner/chef_base.rb:268:in `load_needed_dependencies!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/configurable.rb:56:in `finalize_config!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/instance.rb:321:in `setup_provisioner'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/instance.rb:107:in `initialize'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:242:in `new'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:242:in `new_instance'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:139:in `block in build_instances'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:138:in `map'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:138:in `with_index'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:138:in `build_instances'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:114:in `instances'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/rake_tasks.rb:51:in `block in define'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/rake_tasks.rb:50:in `define'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/rake_tasks.rb:37:in `initialize'
/pipeline/source/Rakefile:30:in `new'
/pipeline/source/Rakefile:30:in `<top (required)>'
LoadError: Could not open library '/pipeline/cache/bundle-install/ruby/2.2.0/gems/dep_selector-1.0.3/lib/dep_gecode.so': /pipeline/cache/bundle-install/ruby/2.2.0/gems/dep-selector-libgecode-1.0.2/lib/dep-selector-libgecode/vendored-gecode/lib/libgecodesearch.so.32: file too short
/pipeline/cache/bundle-install/ruby/2.2.0/gems/ffi-1.9.6/lib/ffi/library.rb:133:in `block in ffi_lib'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/ffi-1.9.6/lib/ffi/library.rb:100:in `map'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/ffi-1.9.6/lib/ffi/library.rb:100:in `ffi_lib'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/dep_selector-1.0.3/lib/dep_selector/dep_gecode.rb:39:in `<module:Dep_gecode>'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/dep_selector-1.0.3/lib/dep_selector/dep_gecode.rb:21:in `<top (required)>'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/dep_selector-1.0.3/lib/dep_selector/gecode_wrapper.rb:21:in `<top (required)>'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/dep_selector-1.0.3/lib/dep_selector/dependency_graph.rb:21:in `<top (required)>'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/dep_selector-1.0.3/lib/dep_selector/selector.rb:21:in `<top (required)>'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/dep_selector-1.0.3/lib/dep_selector.rb:22:in `<top (required)>'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/solve-1.2.1/lib/solve/solver.rb:1:in `<top (required)>'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/solve-1.2.1/lib/solve.rb:10:in `require_relative'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/solve-1.2.1/lib/solve.rb:10:in `<module:Solve>'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/solve-1.2.1/lib/solve.rb:3:in `<top (required)>'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/berkshelf-3.2.3/lib/berkshelf.rb:9:in `<top (required)>'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/provisioner/chef/berkshelf.rb:95:in `load_berkshelf!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/provisioner/chef/berkshelf.rb:54:in `load!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/provisioner/chef_base.rb:268:in `load_needed_dependencies!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/configurable.rb:56:in `finalize_config!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/instance.rb:321:in `setup_provisioner'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/instance.rb:107:in `initialize'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:242:in `new'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:242:in `new_instance'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:139:in `block in build_instances'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:138:in `map'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:138:in `with_index'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:138:in `build_instances'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:114:in `instances'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/rake_tasks.rb:51:in `block in define'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/rake_tasks.rb:50:in `define'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/rake_tasks.rb:37:in `initialize'
/pipeline/source/Rakefile:30:in `new'
/pipeline/source/Rakefile:30:in `<top (required)>'
Polyglot::PolyglotLoadError: Failed to load berkshelf using extensions rb, treetop, tt
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:55:in `load'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:68:in `rescue in require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/provisioner/chef/berkshelf.rb:95:in `load_berkshelf!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/provisioner/chef/berkshelf.rb:54:in `load!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/provisioner/chef_base.rb:268:in `load_needed_dependencies!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/configurable.rb:56:in `finalize_config!'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/instance.rb:321:in `setup_provisioner'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/instance.rb:107:in `initialize'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:242:in `new'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:242:in `new_instance'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:139:in `block in build_instances'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:138:in `map'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:138:in `with_index'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:138:in `build_instances'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/config.rb:114:in `instances'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/rake_tasks.rb:51:in `block in define'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/rake_tasks.rb:50:in `define'
/pipeline/cache/bundle-install/ruby/2.2.0/gems/test-kitchen-1.5.0/lib/kitchen/rake_tasks.rb:37:in `initialize'
/pipeline/source/Rakefile:30:in `new'
/pipeline/source/Rakefile:30:in `<top (required)>'
(See full trace by running task with --trace)
!!!!!! The `berkshelf' gem is missing and must be installed or cannot be properly activated. Run `gem install berkshelf` or add the following to your Gemfile if you are using Bundler: `gem 'berkshelf'`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment