Created
September 23, 2015 12:14
-
-
Save davekennewell/413cf2a63354548f4e04 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
root@ip-172-31-3-211:/opt/chef-run# ./geoshape-provision.sh | |
====[ Note: | |
This command will re-run the installation of geoshape with the same version already | |
on the machine. you can run this command to apply any changes you have made in dna.json | |
or re-download the corresponding geoserver.war | |
=> Are you sure you want to continue? y | |
[2015-09-23T12:09:50+00:00] INFO: Forking chef instance to converge... | |
Starting Chef Client, version 11.8.2 | |
[2015-09-23T12:09:50+00:00] INFO: *** Chef 11.8.2 *** | |
[2015-09-23T12:09:50+00:00] INFO: Chef-client pid: 14858 | |
[2015-09-23T12:09:51+00:00] INFO: Setting the run_list to ["role[geoshape_core]"] from JSON | |
[2015-09-23T12:09:51+00:00] INFO: Run List is [role[geoshape_core]] | |
[2015-09-23T12:09:51+00:00] INFO: Run List expands to [apt, python, git, rogue::gdal, rogue::postgresql, rogue] | |
[2015-09-23T12:09:51+00:00] INFO: Starting Chef Run for ip-172-31-3-211.ap-southeast-2.compute.internal | |
[2015-09-23T12:09:51+00:00] INFO: Running start handlers | |
[2015-09-23T12:09:51+00:00] INFO: Start handlers complete. | |
Compiling Cookbooks... | |
================================================================================ | |
Recipe Compile Error in /opt/chef-run/cookbooks/rogue/attributes/default.rb | |
================================================================================ | |
NoMethodError | |
------------- | |
undefined method `[]' for nil:NilClass | |
Cookbook Trace: | |
--------------- | |
/opt/chef-run/cookbooks/rogue/attributes/default.rb:37:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/opt/chef-run/cookbooks/rogue/attributes/default.rb: | |
30: default['rogue']['postgresql']['port'] = node.fetch('postgresql',{}).fetch('config', {}).fetch('port', '5432') | |
31: | |
32: | |
33: default['rogue']['ssh']['public_key'] = '' | |
34: default['rogue']['ssh']['public_key_remote_file'] = '/root/.ssh/id_rsa.pub' | |
35: default['rogue']['install_docs'] = true | |
36: default['rogue']['logging']['location'] = '/var/log/rogue' | |
37>> default['rogue']['ip'] = node['network']['interfaces'][node['rogue']['iface']]['addresses'].detect{|k,v| v['family'] == "inet" }[0] | |
38: default['rogue']['setup_db'] = true | |
39: default['rogue']['aws_rds'] = false | |
40: default['rogue']['networking']['application']['hostname'] = 'rogue-geoserver' | |
41: default['rogue']['networking']['application']['address'] = node['rogue']['ip'] | |
42: default['rogue']['networking']['application']['fqdn'] = node['rogue']['ip'] | |
43: default['rogue']['networking']['application']['gateway'] = nil | |
44: default['rogue']['networking']['application']['netmask'] = nil | |
45: | |
46: default['rogue']['networking']['database']['hostname'] = 'rogue-database' | |
[2015-09-23T12:09:51+00:00] ERROR: Running exception handlers | |
[2015-09-23T12:09:51+00:00] ERROR: Exception handlers complete | |
[2015-09-23T12:09:51+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
Chef Client failed. 0 resources updated | |
[2015-09-23T12:09:51+00:00] ERROR: undefined method `[]' for nil:NilClass | |
[2015-09-23T12:09:51+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
root@ip-172-31-3-211:/opt/chef-run# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment