Created
January 6, 2015 11:17
-
-
Save vinyar/24ac66c9fe723bc0427f to your computer and use it in GitHub Desktop.
Chef verify failure on clean ChefDK installation on OSX 10.9.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ chef verify | |
Running verification for component 'berkshelf' | |
Running verification for component 'test-kitchen' | |
Running verification for component 'chef-client' | |
Running verification for component 'chef-dk' | |
Running verification for component 'chefspec' | |
.... | |
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chefspec-4.2.0.beta.1/lib/chefspec/berkshelf.rb:4:in `rescue in <top (required)>': I could not load the 'Berkshelf' gem! You must have the gem installed (ChefSpec::Error::GemLoadError) | |
on your local system before you can use the berkshelf plugin. | |
You can install berkshelf by running: | |
gem install berkshelf | |
or add Berkshelf to your Gemfile and run the `bundle` command to install. | |
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chefspec-4.2.0.beta.1/lib/chefspec/berkshelf.rb:1:in `<top (required)>' | |
from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from /private/var/folders/9r/g1wlns1j29bg0c7b_6fr7b480000gp/T/d20150106-75745-7a38qa/spec/spec_helper.rb:2:in `<top (required)>' | |
from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from /opt/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from /private/var/folders/9r/g1wlns1j29bg0c7b_6fr7b480000gp/T/d20150106-75745-7a38qa/spec/foo_spec.rb:1:in `<top (required)>' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `block in load_spec_files' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `each' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load_spec_files' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:96:in `setup' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:84:in `run' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:69:in `run' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:37:in `invoke' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/exe/rspec:4:in `<top (required)>' | |
from /opt/chefdk/embedded/bin/rspec:23:in `load' | |
from /opt/chefdk/embedded/bin/rspec:23:in `<main>' | |
--------------------------------------------- | |
Verification of component 'chef-dk' succeeded. | |
Verification of component 'berkshelf' succeeded. | |
Verification of component 'chef-client' succeeded. | |
Verification of component 'chefspec' failed. | |
Verification of component 'test-kitchen' succeeded. |
my system ruby state:
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.14
- RUBY VERSION: 2.0.0 (2014-05-08 patchlevel 481) [universal.x86_64-darwin13]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.0.0
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-13
- GEM PATHS:
- /Library/Ruby/Gems/2.0.0
- /Users/alexvinyar/.gem/ruby/2.0.0
- /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org"]
- :benchmark => false
- "gem" => "--no-ri --no-rdoc"
- REMOTE SOURCES:
- http://rubygems.org
alexvinyar@seavinyar02 ~ $ gem list
*** LOCAL GEMS ***
bigdecimal (1.2.0)
CFPropertyList (2.2.0)
io-console (0.4.2)
json (1.7.7)
libxml-ruby (2.6.0)
minitest (4.3.2)
nokogiri (1.5.6)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
sqlite3 (1.3.7)
test-unit (2.0.0.0)
Vagrant state
$ vagrant -v
Vagrant 1.6.5
vagrant plugin list
vagrant-berkshelf (4.0.2)
vagrant-cachier (1.1.0)
vagrant-login (1.0.1, system)
vagrant-omnibus (1.4.1)
vagrant-share (1.1.4, system)
echo $PATH
/Users/alexvinyar/Applications/packer:/usr/local:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/alexvinyar/.yadr/bin:/Users/alexvinyar/.yadr/bin/yadr
alexvinyar@seavinyar02 ~ $ env
PATH=/Users/alexvinyar/Applications/packer:/usr/local:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/alexvinyar/.yadr/bin:/Users/alexvinyar/.yadr/bin/yadr
TMPDIR=/var/folders/9r/g1wlns1j29bg0c7b_6fr7b480000gp/T/
LOGNAME=alexvinyar
HOME=/Users/alexvinyar
Apple_PubSub_Socket_Render=/tmp/launch-0u39iW/Render
LANG=en_US.UTF-8
COLORFGBG=12;8
USER=alexvinyar
SSH_AUTH_SOCK=/tmp/launch-wX12MZ/Listeners
TERM=xterm-256color
ITERM_PROFILE=Default
TERM_PROGRAM=iTerm.app
ITERM_SESSION_ID=w0t4p0
__CHECKFIX1436934=1
SHELL=/bin/zsh
PWD=/Users/alexvinyar
__CF_USER_TEXT_ENCODING=0x1F6:0:0
SHLVL=1
OLDPWD=/Users/alexvinyar
BROWSER=open
EDITOR=vim
VISUAL=vim
PAGER=less
LESS=-F -g -i -M -R -S -w -X -z-4
GREP_COLOR=1;33
GREP_OPTIONS=--color=auto
LESS_TERMCAP_mb=
LESS_TERMCAP_md=
LESS_TERMCAP_me=
LESS_TERMCAP_se=
LESS_TERMCAP_so=
LESS_TERMCAP_ue=
LESS_TERMCAP_us=
SCREEN_NO=
LSCOLORS=exfxcxdxbxGxDxabagacad
LS_COLORS=di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:
proxy_url=http://3.239.240.177:3389
_=/usr/bin/env
after removing the .chefdk folder and going through the uninstall steps on the docs page, followed by reinstalling chefdk again
$ be kitchen create
-----> Starting Kitchen (v1.3.0)
-----> Creating <default-win2012-chef11-14-2>...
Bringing machine 'default' up with 'virtualbox' provider...
The following berks command failed to execute:
/Users/alexvinyar/.chefdk/gem/ruby/2.1.0/bin/berks --version --format json
The stdout and stderr are shown below:
stdout:
stderr: /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'berkshelf' (>= 0) among 63 total gem(s) (Gem::LoadError)
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /Users/alexvinyar/.chefdk/gem/ruby/2.1.0/bin/berks:22:in `<main>'
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #create action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant up --no-provision --provider=virtualbox ----
STDOUT: Bringing machine 'default' up with 'virtualbox' provider...
STDERR: The following berks command failed to execute:
/Users/alexvinyar/.chefdk/gem/ruby/2.1.0/bin/berks --version --format json
The stdout and stderr are shown below:
stdout:
stderr: /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'berkshelf' (>= 0) among 63 total gem(s) (Gem::LoadError)
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /Users/alexvinyar/.chefdk/gem/ruby/2.1.0/bin/berks:22:in `<main>'
---- End output of vagrant up --no-provision --provider=virtualbox ----
Ran vagrant up --no-provision --provider=virtualbox returned 1]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
After removing vagrant plugins kitchen create and converge succeed.
However, chef verify
still fails with the same error as originally.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the result is the same with and w/o eval "$(chef shell-init bash)"