On Monday, February 4, 2013 at 15:59, Phil Mocek wrote:
I would appreciate any suggestions for troubleshooting my failedChef server bootstrap process.I installed chef-solo by running the [Omnibus installer script][1],then, as described on the [Installing Chef Server using Chef Solopage][2], I ran chef-solo with a JSON attributes file referencingthe rubygems-install recipe of the chef-server cookbook. I'm usingversion 1.1.1 of that cookbook.The [output from chef-solo][3] includes the following:Recipe: chef-server::rubygems-install* gem_package[chef-server-api] action install================================================================================Error executing action `install` on resource 'gem_package[chef-server-api]'================================================================================Mixlib::ShellOut::ShellCommandFailed------------------------------------Expected process to exit with [0], but received '2'---- Begin output of /opt/chef/embedded/bin/gem install chef-server-api -q --no-rdoc --no-ri -v "11.0.0" ----STDOUT:STDERR: ERROR: Could not find a valid gem 'chef-server-api' (= 11.0.0) in any repositoryERROR: Possible alternatives: chef-server-api---- End output of /opt/chef/embedded/bin/gem install chef-server-api -q --no-rdoc --no-ri -v "11.0.0" ----Ran /opt/chef/embedded/bin/gem install chef-server-api -q --no-rdoc --no-ri -v "11.0.0" returned 2Resource Declaration:---------------------# In /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb83: gem_package gem do84: version node['chef_packages']['chef']['version']85: end86: endCompiled Resource:------------------# Declared in /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:83:in `block in from_file'gem_package("chef-server-api") doprovider Chef::Provider::Package::Rubygemsaction :installretries 0retry_delay 2package_name "chef-server-api"version "11.0.0"cookbook_name :"chef-server"recipe_name "rubygems-install"gem_binary "/opt/chef/embedded/bin/gem"endI'm running chef-solo 11.0.0::~# chef-solo --versionChef: 11.0.0:~# which chef-solo/usr/bin/chef-solo:~# ll /usr/bin/chef-sololrwxrwxrwx 1 root root 23 Feb 4 22:03 /usr/bin/chef-solo -> /opt/chef/bin/chef-solo*Thanks in advance for any guidance. I'll follow up here withresolution.References:[1]: <https://www.opscode.com/chef/install.sh>[2]: <http://wiki.opscode.com/display/chef/Installing+Chef+Server+using+Chef+Solo>[3]: <https://gist.github.com/4710420>--Phil Mocekhttp://mocek.org/
Archive powered by MHonArc 2.6.16.