viglesiasce / chef-provisioning-recipes

Recipes for provisioning software stacks using Chef Provisioning
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Consistent fail on AWS #1

Open pdehlke opened 8 years ago

pdehlke commented 8 years ago

Hey, so this looks like a really interesting demo, but for me, when provisioning cassandra on AWS, it consistently fails:

Running handlers: [2016-02-29T14:14:42+00:00] ERROR: Running exception handlers Running handlers complete [2016-02-29T14:14:42+00:00] ERROR: Exception handlers complete [2016-02-29T14:14:42+00:00] FATAL: Stacktrace dumped to /root/chef-provisioning-recipes/chef-repo/.chef/local-mode-cache/cache/chef-stacktrace.out Chef Client failed. 3 resources updated in 128.185971602 seconds [2016-02-29T14:14:42+00:00] ERROR: machine_batchConverge recipes had an error: RuntimeError: Error: command 'chef-client -l info' exited with code 1.

[2016-02-29T14:14:43+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Fatal error: local() encountered an error (return code 1) while executing 'chef-client -c /root/chef-provisioning-recipes/chef-repo/.chef/client.rb -z /root/chef-provisioning-recipes/common/configure.rb /root/chef-provisioning-recipes/common/stage.rb /root/chef-provisioning-recipes/cassandra/recipe.rb'

Aborting.

If I ssh into one of the cassandra instances and run chef-client -l info, it attempts to contact a chef server on localhost:

root@ip-172-31-5-53:~# chef-client -l info [2016-02-29T14:16:13+00:00] INFO: Forking chef instance to converge... Starting Chef Client, version 12.7.2 [2016-02-29T14:16:13+00:00] INFO: * Chef 12.7.2 * [2016-02-29T14:16:13+00:00] INFO: Chef-client pid: 3949 [2016-02-29T14:16:16+00:00] ERROR: Connection refused connecting to http://localhost:8901/nodes/cassandra-aws-3, retry 1/5

I'm not enough of a chef-head to know how to fix this :(

viglesiasce commented 8 years ago

Sorry for the delay!

This uses chef-zero so to debug, try running this from the node: chef-client -c /root/chef-provisioning-recipes/chef-repo/.chef/client.rb -z /root/chef-provisioning-recipes/common/configure.rb /root/chef-provisioning-recipes/common/stage.rb /root/chef-provisioning-recipes/cassandra/recipe.rb