Created
June 6, 2011 01:03
-
-
Save hh/1009612 to your computer and use it in GitHub Desktop.
chef-server::apache-proxy failing out of bootstrap-latest.tar.gz
This file contains hidden or 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
# this is run on a ubuntu 11.04 on ec2 via my user-data script | |
# https://github.com/hh/cookbooks/blob/master/chefserver-ec2-userdata.sh#L78 | |
# but the meaty broken bits are here: | |
gem install chef | |
cat <<SOLOCONFIG>/root/chef-solo.rb | |
file_cache_path "/tmp/chef-solo" | |
cookbook_path "/tmp/chef-solo/cookbooks" | |
SOLOCONFIG | |
cat<<DNACONFIG>/root/chef.json | |
{ | |
"chef_server": { | |
"server_url": "http://localhost:4000", | |
"webui_enabled": true, | |
"init_style": "init", | |
"ssl_req": "/C=US/ST=Several/L=Locality/O=Example/OU=Operations/CN=$PUBLIC_HOSTNAME/[email protected]" | |
}, | |
"run_list": [ "recipe[chef-server::rubygems-install]", "recipe[chef-server::apache-proxy]" ] | |
} | |
DNACONFIG | |
# basically the contents of this repo | |
chef-solo -c ~/chef-solo.rb -j ~/chef.json -r http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz | |
.... | |
[Mon, 06 Jun 2011 00:22:32 +0000] INFO: Processing template[/etc/apache2/sites-available/chef-server-proxy.conf] action create (chef-server::apache-proxy line 29) | |
[Mon, 06 Jun 2011 00:22:32 +0000] ERROR: template[/etc/apache2/sites-available/chef-server-proxy.conf] (chef-server::apache-proxy line 29) has had an error | |
[Mon, 06 Jun 2011 00:22:32 +0000] ERROR: Running exception handlers | |
[Mon, 06 Jun 2011 00:22:32 +0000] ERROR: Exception handlers complete | |
[Mon, 06 Jun 2011 00:22:32 +0000] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out | |
[Mon, 06 Jun 2011 00:22:32 +0000] FATAL: Chef::Mixin::Template::TemplateError: undefined method `each' for nil:NilClass | |
This file contains hidden or 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
Generated at Mon Jun 06 01:02:47 +0000 2011 | |
Chef::Mixin::Template::TemplateError: | |
Chef::Mixin::Template::TemplateError (undefined method `each' for nil:NilClass) on line #4: | |
2: <VirtualHost *:443> | |
3: ServerName <%= @params['server_name'] %> | |
4: ServerAlias <% @params['server_aliases'].each do |a| %><%= "#{a}" %> <% end %> | |
5: | |
6: DocumentRoot <%= node['chef_server']['doc_root'] %> | |
(erubis):4:in `evaluate' | |
/usr/lib/ruby/gems/1.8/gems/erubis-2.7.0/lib/erubis/evaluator.rb:74:in `instance_eval' | |
/usr/lib/ruby/gems/1.8/gems/erubis-2.7.0/lib/erubis/evaluator.rb:74:in `evaluate' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/mixin/template.rb:41:in `render_template' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/provider/template.rb:99:in `render_with_context' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/provider/template.rb:39:in `action_create' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource.rb:417:in `send' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource.rb:417:in `run_action' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:45:in `run_action' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:78:in `converge' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:78:in `each' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:78:in `converge' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:76:in `converge' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/client.rb:312:in `converge' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/client.rb:160:in `run' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application/solo.rb:192:in `run_application' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application/solo.rb:183:in `loop' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application/solo.rb:183:in `run_application' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application.rb:66:in `run' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/chef-solo:25 | |
/usr/bin/chef-solo:19:in `load' | |
/usr/bin/chef-solo:19 | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/mixin/template.rb:43:in `render_template' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/provider/template.rb:99:in `render_with_context' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/provider/template.rb:39:in `action_create' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource.rb:417:in `send' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource.rb:417:in `run_action' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:45:in `run_action' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:78:in `converge' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:78:in `each' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:78:in `converge' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:76:in `converge' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/client.rb:312:in `converge' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/client.rb:160:in `run' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application/solo.rb:192:in `run_application' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application/solo.rb:183:in `loop' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application/solo.rb:183:in `run_application' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application.rb:66:in `run' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/chef-solo:25 | |
/usr/bin/chef-solo:19:in `load' | |
/usr/bin/chef-solo:19 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment