Created
February 4, 2013 22:41
-
-
Save pmocek/4710420 to your computer and use it in GitHub Desktop.
Failure to bootstrap Chef 11 server using chef-solo
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
root@chef:~# cat /etc/chef/chef.json | |
{"chef_server": {"server_url": "http://localhost:4000", "webui_enabled": "true"}, "run_list": ["recipe[chef-server::rubygems-install]"]} | |
root@chef:~# chef-solo -c /etc/chef/solo.rb -j /etc/chef/chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz | |
Starting Chef Client, version 11.0.0 | |
Compiling Cookbooks... | |
[2013-02-04T22:24:32+00:00] WARN: Cloning resource attributes for link[/etc/chef/webui.rb] from prior resource (CHEF-3694) | |
[2013-02-04T22:24:32+00:00] WARN: Previous link[/etc/chef/webui.rb]: /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:114:in `block in from_file' | |
[2013-02-04T22:24:32+00:00] WARN: Current link[/etc/chef/webui.rb]: /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:114:in `block in from_file' | |
[2013-02-04T22:24:32+00:00] WARN: Cloning resource attributes for link[/etc/chef/expander.rb] from prior resource (CHEF-3694) | |
[2013-02-04T22:24:32+00:00] WARN: Previous link[/etc/chef/expander.rb]: /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:118:in `block in from_file' | |
[2013-02-04T22:24:32+00:00] WARN: Current link[/etc/chef/expander.rb]: /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:118:in `block in from_file' | |
[2013-02-04T22:24:32+00:00] WARN: Cloning resource attributes for directory[/var/lib/chef] from prior resource (CHEF-3694) | |
[2013-02-04T22:24:32+00:00] WARN: Previous directory[/var/lib/chef]: /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:98:in `block in from_file' | |
[2013-02-04T22:24:32+00:00] WARN: Current directory[/var/lib/chef]: /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:123:in `from_file' | |
[2013-02-04T22:24:32+00:00] WARN: Cloning resource attributes for directory[/var/run/chef] from prior resource (CHEF-3694) | |
[2013-02-04T22:24:32+00:00] WARN: Previous directory[/var/run/chef]: /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:98:in `block in from_file' | |
[2013-02-04T22:24:32+00:00] WARN: Current directory[/var/run/chef]: /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:145:in `from_file' | |
[2013-02-04T22:24:32+00:00] WARN: Cloning resource attributes for directory[/var/run/chef] from prior resource (CHEF-3694) | |
[2013-02-04T22:24:32+00:00] WARN: Previous directory[/var/run/chef]: /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:145:in `from_file' | |
[2013-02-04T22:24:32+00:00] WARN: Current directory[/var/run/chef]: /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:180:in `from_file' | |
Converging 70 resources | |
Recipe: chef-server::rubygems-install | |
* user[chef] action create (up to date) | |
Recipe: erlang::default | |
* package[erlang-nox] action install (up to date) | |
* package[erlang-dev] action install (up to date) | |
Recipe: couchdb::default | |
* package[couchdb] action install (up to date) | |
* template[/etc/couchdb/local.ini] action create (up to date) | |
* directory[/var/lib/couchdb] action create (up to date) | |
* service[couchdb] action enable (up to date) | |
* service[couchdb] action start (up to date) | |
Recipe: java::openjdk | |
* ruby_block[set-env-java-home] action run | |
- execute the ruby block set-env-java-home | |
* file[/etc/profile.d/jdk.sh] action create (up to date) | |
* ruby_block[update-java-alternatives] action nothing (up to date) | |
* package[openjdk-6-jdk] action install (up to date) | |
Recipe: java::default | |
* package[sun-java6-jdk] action purge (skipped due to only_if) | |
* package[sun-java6-bin] action purge (skipped due to only_if) | |
* package[sun-java6-jre] action purge (skipped due to only_if) | |
Recipe: chef-server::rabbitmq | |
* package[rabbitmq-server] action install (up to date) | |
* service[rabbitmq-server] action enable (up to date) | |
* service[rabbitmq-server] action start (up to date) | |
* execute[rabbitmqctl add_vhost /chef] action run (skipped due to not_if) | |
* execute[rabbitmqctl add_user chef testing] action run (skipped due to not_if) | |
* execute[rabbitmqctl set_permissions -p /chef chef ".*" ".*" ".*"] action run (skipped due to not_if) | |
Recipe: apt::default | |
* execute[apt-get-update] action run (skipped due to not_if) | |
* execute[apt-get update] action nothing (up to date) | |
* execute[apt-get autoremove] action nothing (up to date) | |
* execute[apt-get autoclean] action nothing (up to date) | |
* package[update-notifier-common] action install (up to date) | |
* execute[apt-get-update-periodic] action run (skipped due to only_if) | |
* directory[/var/cache/local] action create (up to date) | |
* directory[/var/cache/local/preseeding] action create (up to date) | |
Recipe: gecode::package | |
* apt_package[libgecode-dev] action upgrade (up to date) | |
Recipe: zlib::default | |
* package[zlib-devel] action install (up to date) | |
Recipe: xml::default | |
* package[libxml2-dev] action install (up to date) | |
* package[libxslt-dev] action install (up to date) | |
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 repository | |
ERROR: 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 2 | |
Resource Declaration: | |
--------------------- | |
# In /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb | |
83: gem_package gem do | |
84: version node['chef_packages']['chef']['version'] | |
85: end | |
86: end | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:83:in `block in from_file' | |
gem_package("chef-server-api") do | |
provider Chef::Provider::Package::Rubygems | |
action :install | |
retries 0 | |
retry_delay 2 | |
package_name "chef-server-api" | |
version "11.0.0" | |
cookbook_name :"chef-server" | |
recipe_name "rubygems-install" | |
gem_binary "/opt/chef/embedded/bin/gem" | |
end | |
[2013-02-04T22:24:45+00:00] ERROR: Running exception handlers | |
[2013-02-04T22:24:45+00:00] ERROR: Exception handlers complete | |
Chef Client failed. 1 resources updated | |
[2013-02-04T22:24:45+00:00] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out | |
[2013-02-04T22:24:45+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: gem_package[chef-server-api] (chef-server::rubygems-install line 83) had an error: 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 repository | |
ERROR: 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 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment