Skip to content

Instantly share code, notes, and snippets.

@davekennewell
Last active September 22, 2015 06:02
Show Gist options
  • Save davekennewell/b32b1c08618d7453b9ff to your computer and use it in GitHub Desktop.
Save davekennewell/b32b1c08618d7453b9ff to your computer and use it in GitHub Desktop.
...
Installing rspec-mocks 2.99.4 (was 2.99.3)
Using rspec 2.99.0
Using rspec-its 1.0.1
Using specinfra 1.27.5
Using serverspec 1.11.0
Using bundler 1.10.6
Bundle updated!
Resolving cookbook dependencies...
Fetching 'rogue' from https://github.com/ROGUE-JCTD/rogue-cookbook.git (at release)
Fetching cookbook index from https://api.berkshelf.com...
Installing apt (2.8.2) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing bluepill (2.4.0) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using build-essential (2.0.6)
Using chef-sugar (3.1.1)
Using chef_handler (1.2.0)
Installing database (4.0.9) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using dmg (2.2.2)
Using erlang (1.5.8)
Using fail2ban (2.2.1)
Using git (2.6.0)
Using hostsfile (2.4.5)
Using java (1.22.0)
Using nginx (2.7.6)
Using ohai (2.0.1)
Using openssl (4.0.0)
Using postgresql (3.4.20)
Using python (1.4.6)
Using rabbitmq (3.6.0)
Using rogue (1.3.0) from https://github.com/ROGUE-JCTD/rogue-cookbook.git (at release)
Installing rsyslog (2.1.0) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using runit (1.5.18)
Using supervisord (1.0.1)
Using tomcat (0.15.12)
Installing windows (1.38.1) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
Installing yum (3.7.1) from https://api.berkshelf.com ([opscode] https://supermarket.chef.io:443/api/v1)
Using yum-epel (0.6.2)
Using yum-erlang_solutions (0.2.0)
Resolving cookbook dependencies...
Using apt (2.8.2)
Using bluepill (2.4.0)
Using build-essential (2.0.6)
Using chef-sugar (3.1.1)
Using chef_handler (1.2.0)
Using database (4.0.9)
Using dmg (2.2.2)
Using erlang (1.5.8)
Using fail2ban (2.2.1)
Using git (2.6.0)
Using hostsfile (2.4.5)
Using java (1.22.0)
Using nginx (2.7.6)
Using ohai (2.0.1)
Using openssl (4.0.0)
Using postgresql (3.4.20)
Using python (1.4.6)
Using rabbitmq (3.6.0)
Using rogue (1.3.0) from https://github.com/ROGUE-JCTD/rogue-cookbook.git (at release)
Using rsyslog (2.1.0)
Using runit (1.5.18)
Using supervisord (1.0.1)
Using tomcat (0.15.12)
Using windows (1.38.1)
Using yum (3.7.1)
Using yum-epel (0.6.2)
Using yum-erlang_solutions (0.2.0)
Vendoring apt (2.8.2) to /opt/chef-run/cookbooks/apt
Vendoring bluepill (2.4.0) to /opt/chef-run/cookbooks/bluepill
Vendoring build-essential (2.0.6) to /opt/chef-run/cookbooks/build-essential
Vendoring chef-sugar (3.1.1) to /opt/chef-run/cookbooks/chef-sugar
Vendoring chef_handler (1.2.0) to /opt/chef-run/cookbooks/chef_handler
Vendoring database (4.0.9) to /opt/chef-run/cookbooks/database
Vendoring dmg (2.2.2) to /opt/chef-run/cookbooks/dmg
Vendoring erlang (1.5.8) to /opt/chef-run/cookbooks/erlang
Vendoring fail2ban (2.2.1) to /opt/chef-run/cookbooks/fail2ban
Vendoring git (2.6.0) to /opt/chef-run/cookbooks/git
Vendoring hostsfile (2.4.5) to /opt/chef-run/cookbooks/hostsfile
Vendoring java (1.22.0) to /opt/chef-run/cookbooks/java
Vendoring nginx (2.7.6) to /opt/chef-run/cookbooks/nginx
Vendoring ohai (2.0.1) to /opt/chef-run/cookbooks/ohai
Vendoring openssl (4.0.0) to /opt/chef-run/cookbooks/openssl
Vendoring postgresql (3.4.20) to /opt/chef-run/cookbooks/postgresql
Vendoring python (1.4.6) to /opt/chef-run/cookbooks/python
Vendoring rabbitmq (3.6.0) to /opt/chef-run/cookbooks/rabbitmq
Vendoring rogue (1.3.0) to /opt/chef-run/cookbooks/rogue
Vendoring rsyslog (2.1.0) to /opt/chef-run/cookbooks/rsyslog
Vendoring runit (1.5.18) to /opt/chef-run/cookbooks/runit
Vendoring supervisord (1.0.1) to /opt/chef-run/cookbooks/supervisord
Vendoring tomcat (0.15.12) to /opt/chef-run/cookbooks/tomcat
Vendoring windows (1.38.1) to /opt/chef-run/cookbooks/windows
Vendoring yum (3.7.1) to /opt/chef-run/cookbooks/yum
Vendoring yum-epel (0.6.2) to /opt/chef-run/cookbooks/yum-epel
Vendoring yum-erlang_solutions (0.2.0) to /opt/chef-run/cookbooks/yum-erlang_solutions
ffi-yajl/json_gem is deprecated, these monkeypatches will be dropped shortly
[2015-09-22T05:16:36+00:00] INFO: Forking chef instance to converge...
[2015-09-22T05:16:36+00:00] WARN:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SSL validation of HTTPS requests is disabled. HTTPS connections are still
encrypted, but chef is not able to detect forged replies or man in the middle
attacks.
To fix this issue add an entry like this to your configuration file:
```
# Verify all HTTPS connections (recommended)
ssl_verify_mode :verify_peer
# OR, Verify only connections to chef-server
verify_api_cert true
```
To check your SSL configuration, or troubleshoot errors, you can use the
`knife ssl check` command like so:
```
knife ssl check -c /opt/chef-run/solo.rb
```
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Starting Chef Client, version 11.16.4
[2015-09-22T05:16:36+00:00] INFO: *** Chef 11.16.4 ***
[2015-09-22T05:16:36+00:00] INFO: Chef-client pid: 12742
[2015-09-22T05:16:37+00:00] INFO: Setting the run_list to ["role[geoshape_core]"] from CLI options
[2015-09-22T05:16:37+00:00] INFO: Run List is [role[geoshape_core]]
[2015-09-22T05:16:37+00:00] INFO: Run List expands to [apt, python, git, rogue::gdal, rogue::postgresql, rogue]
[2015-09-22T05:16:37+00:00] INFO: Starting Chef Run for ip-172-31-6-14.ap-southeast-2.compute.internal
[2015-09-22T05:16:37+00:00] INFO: Running start handlers
[2015-09-22T05:16:37+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'
Running handlers:
[2015-09-22T05:16:37+00:00] ERROR: Running exception handlers
Running handlers complete
[2015-09-22T05:16:37+00:00] ERROR: Exception handlers complete
[2015-09-22T05:16:37+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.39860149 seconds
[2015-09-22T05:16:37+00:00] ERROR: undefined method `[]' for nil:NilClass
[2015-09-22T05:16:37+00: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