Created
March 25, 2014 15:57
-
-
Save gswallow/9764920 to your computer and use it in GitHub Desktop.
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
sudo chef-client -E qa1 | |
Starting Chef Client, version 11.6.0 | |
resolving cookbooks for run list: ["chef_handler", "chef_handler::hipchat", "chef_handler::updated_resources", "ulimit", "apt", "git", "resolvconf", "ntp", "ascent-common::linux", "ascent-common::users", "ascent-common::hostsfile", "ascent-wrappers::mongodb", "ascent-logs::mongodb"] | |
Synchronizing Cookbooks: | |
- chef_handler | |
- ulimit | |
- apt | |
- git | |
- dmg | |
- build-essential | |
- windows | |
- runit | |
- yum | |
- yum-epel | |
- resolvconf | |
- ntp | |
- ascent-common | |
- hostsfile | |
- mongodb | |
- python | |
- users | |
- sudo | |
- line | |
- ascent-wrappers | |
- rabbitmq | |
- erlang | |
- yum-erlang_solutions | |
- ascent-logs | |
- chocolatey | |
- powershell | |
- java | |
- logstash | |
- ant | |
- ark | |
- logrotate | |
Compiling Cookbooks... | |
Recipe: chef_handler::default | |
* remote_directory[/var/chef/handlers] action createRecipe: <Dynamically Defined Resource> | |
* cookbook_file[/var/chef/handlers/updated_resources.rb] action create (up to date) | |
* cookbook_file[/var/chef/handlers/hipchat.rb] action create (up to date) | |
* cookbook_file[/var/chef/handlers/README] action create (up to date) | |
(up to date) | |
Recipe: chef_handler::hipchat | |
* gem_package[httparty] action install (up to date) | |
* gem_package[hipchat] action install (up to date) | |
* chef_handler[HipChat::NotifyRoom] action enable | |
Recipe: chef_handler::updated_resources | |
* chef_handler[SimpleReport::UpdatedResources] action enable | |
Recipe: mongodb::mongo_gem | |
* chef_gem[mongo] action install (up to date) | |
* chef_gem[bson_ext] action install (up to date) | |
* chef_gem[rubyzip] action install (up to date) | |
[2014-03-25T11:46:48-04:00] WARN: Cloning resource attributes for template[/etc/mongodb.conf] from prior resource (CHEF-3694) | |
[2014-03-25T11:46:48-04:00] WARN: Previous template[/etc/mongodb.conf]: /var/chef/cache/cookbooks/mongodb/recipes/install.rb:14:in `from_file' | |
[2014-03-25T11:46:48-04:00] WARN: Current template[/etc/mongodb.conf]: /var/chef/cache/cookbooks/mongodb/definitions/mongodb.rb:139:in `block in from_file' | |
[2014-03-25T11:46:48-04:00] WARN: Cloning resource attributes for template[/etc/init/mongodb.conf] from prior resource (CHEF-3694) | |
[2014-03-25T11:46:48-04:00] WARN: Previous template[/etc/init/mongodb.conf]: /var/chef/cache/cookbooks/mongodb/recipes/install.rb:35:in `from_file' | |
[2014-03-25T11:46:48-04:00] WARN: Current template[/etc/init/mongodb.conf]: /var/chef/cache/cookbooks/mongodb/definitions/mongodb.rb:171:in `block in from_file' | |
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/ascent-wrappers/recipes/mongodb.rb | |
================================================================================ | |
RuntimeError | |
------------ | |
nil "ascent" "default" "qa1" | |
Cookbook Trace: | |
--------------- | |
/var/chef/cache/cookbooks/mongodb/definitions/mongodb.rb:202:in `block in from_file' | |
/var/chef/cache/cookbooks/mongodb/recipes/replicaset.rb:27:in `from_file' | |
/var/chef/cache/cookbooks/ascent-wrappers/recipes/mongodb_install.rb:17:in `from_file' | |
/var/chef/cache/cookbooks/ascent-wrappers/recipes/mongodb.rb:4:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/var/chef/cache/cookbooks/mongodb/definitions/mongodb.rb: | |
195: notifies :create, 'ruby_block[config_replicaset]' if new_resource.is_replicaset && new_resource.auto_configure_replicaset | |
196: notifies :create, 'ruby_block[config_sharding]', :immediately if new_resource.is_mongos && new_resource.auto_configure_sharding | |
197: # we don't care about a running mongodb service in these cases, all we need is stopping it | |
198: ignore_failure true if new_resource.name == 'mongodb' | |
199: end | |
200: | |
201: # Fuck. | |
202>> raise("#{new_resource.replicaset['mongodb_is_replicaset'].inspect} " + | |
203: "#{new_resource.replicaset['mongodb']['cluster_name'].inspect} " + | |
204: "#{new_resource.replicaset['mongodb']['shard_name'].inspect} " + | |
205: "#{new_resource.replicaset.chef_environment.inspect} ") | |
206: | |
207: # replicaset | |
208: if new_resource.is_replicaset && new_resource.auto_configure_replicaset | |
209: rs_nodes = search( | |
210: :node, | |
211: "mongodb_cluster_name:#{new_resource.replicaset['mongodb']['cluster_name']} AND \ | |
[2014-03-25T11:46:48-04:00] ERROR: Running exception handlers | |
[2014-03-25T11:46:49-04:00] ERROR: Exception handlers complete | |
[2014-03-25T11:46:49-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
Chef Client failed. 2 resources updated | |
[2014-03-25T11:46:50-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment