Created
April 28, 2015 20:55
-
-
Save johnmarc/bb7ddfab45f7c9beb120 to your computer and use it in GitHub Desktop.
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
Starting Chef Client, version 11.18.6 | |
resolving cookbooks for run list: ["fis-ironboard-app"] | |
Synchronizing Cookbooks: | |
- fis-ruby-app | |
- users | |
- apt | |
- fis-ironboard-app | |
- fis-base | |
- sudo | |
- chef_gem | |
- rvm | |
- iptables | |
- apache2 | |
- logrotate | |
- unicorn | |
- passenger_apache2 | |
- application | |
- application_ruby | |
- build-essential | |
- runit | |
- yum | |
- fis-librato | |
- collectd-librato | |
- collectd | |
- yum-epel | |
- git | |
- dmg | |
- windows | |
- chef_handler | |
- collectd-plugins | |
- statsd | |
- ark | |
- nodejs | |
- 7-zip | |
Compiling Cookbooks... | |
Recipe: rvm::default | |
* chef_gem[rvm] action install (up to date) | |
/var/chef/cache/cookbooks/rvm/libraries/rvm_chef_user_environment.rb:49: warning: class variable access from toplevel | |
[2015-04-28T16:54:52-04:00] WARN: Cloning resource attributes for group[rvm] from prior resource (CHEF-3694) | |
[2015-04-28T16:54:52-04:00] WARN: Previous group[rvm]: /var/chef/cache/cookbooks/rvm/recipes/system.rb:33:in `from_file' | |
[2015-04-28T16:54:52-04:00] WARN: Current group[rvm]: /var/chef/cache/cookbooks/fis-ruby-app/recipes/default.rb:39:in `from_file' | |
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/fis-ironboard-app/recipes/default.rb | |
================================================================================ | |
NoMethodError | |
------------- | |
undefined method `[]' for nil:NilClass | |
Cookbook Trace: | |
--------------- | |
/var/chef/cache/cookbooks/fis-ruby-app/recipes/default.rb:79:in `block in from_file' | |
/var/chef/cache/cookbooks/fis-ruby-app/recipes/default.rb:76:in `from_file' | |
/var/chef/cache/cookbooks/fis-ironboard-app/recipes/default.rb:10:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/var/chef/cache/cookbooks/fis-ruby-app/recipes/default.rb: | |
72: group 'www-data' | |
73: end | |
74: | |
75: postgres_config = data_bag_item(node['fis-ruby-app']['repo-name'], 'database')[node.chef_environment] | |
76: template "/var/app/shared/config/database.yml" do | |
77: source "database.yml.erb" | |
78: variables( | |
79>> adapter: postgres_config['adapter'], | |
80: host: postgres_config['host'], | |
81: database: postgres_config['database'], | |
82: username: postgres_config['username'], | |
83: password: postgres_config['password'] | |
84: ) | |
85: end | |
86: | |
87: template '/var/app/shared/config/application.yml' do | |
88: source 'application.yml.erb' | |
Running handlers: | |
[2015-04-28T16:54:52-04:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2015-04-28T16:54:52-04:00] ERROR: Exception handlers complete | |
[2015-04-28T16:54:52-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
Chef Client failed. 0 resources updated in 3.195868392 seconds | |
[2015-04-28T16:54:52-04:00] ERROR: undefined method `[]' for nil:NilClass | |
[2015-04-28T16:54:52-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