Skip to content

Instantly share code, notes, and snippets.

@kennethlove
Created November 24, 2012 00:17
Show Gist options
  • Save kennethlove/4137804 to your computer and use it in GitHub Desktop.
Save kennethlove/4137804 to your computer and use it in GitHub Desktop.
[default] Attempting graceful shutdown of VM...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] -- v-csc-2: /tmp/vagrant-chef-1/chef-solo-2/cookbooks
[default] Running provisioner: Vagrant::Provisioners::Shell...
stdin: is not a tty
Successfully installed chef-10.16.2
1 gem installed
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
stdin: is not a tty
[2012-11-24T00:15:14+00:00] INFO: *** Chef 10.16.2 ***
[2012-11-24T00:15:14+00:00] INFO: Setting the run_list to ["recipe[postgresql::server]", "recipe[postgresql::ruby]", "recipe[redis::server]", "recipe[git]", "recipe[mercurial]", "recipe[emacs]", "recipe[vim]", "recipe[nano]", "recipe[gswd::database]"] from JSON
[2012-11-24T00:15:14+00:00] INFO: Run List is [recipe[postgresql::server], recipe[postgresql::ruby], recipe[redis::server], recipe[git], recipe[mercurial], recipe[emacs], recipe[vim], recipe[nano], recipe[gswd::database]]
[2012-11-24T00:15:14+00:00] INFO: Run List expands to [postgresql::server, postgresql::ruby, redis::server, git, mercurial, emacs, vim, nano, gswd::database]
[2012-11-24T00:15:14+00:00] INFO: Starting Chef Run for precise64
[2012-11-24T00:15:14+00:00] INFO: Running start handlers
[2012-11-24T00:15:14+00:00] INFO: Start handlers complete.
[2012-11-24T00:15:15+00:00] WARN: Missing gem 'right_aws'
[2012-11-24T00:15:15+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will be
removed in Chef 11.0. To set attributes at normal precedence, change code like:
`node["key"] = "value"` # Not this
to:
`node.set["key"] = "value"` # This
Called from:
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node/attribute.rb:449:in `method_missing'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `send'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `method_missing'
[2012-11-24T00:15:15+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will be
removed in Chef 11.0. To set attributes at normal precedence, change code like:
`node["key"] = "value"` # Not this
to:
`node.set["key"] = "value"` # This
Called from:
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node/attribute.rb:449:in `method_missing'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `send'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `method_missing'
[2012-11-24T00:15:15+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will be
removed in Chef 11.0. To set attributes at normal precedence, change code like:
`node["key"] = "value"` # Not this
to:
`node.set["key"] = "value"` # This
Called from:
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node/attribute.rb:449:in `method_missing'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `send'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `method_missing'
================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/server.rb
================================================================================
NoMethodError
-------------
undefined method `[]' for nil:NilClass
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/server.rb:31:in `from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/server.rb:30:in `select'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/server.rb:30:in `from_file'
Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/server.rb:
24: include_recipe "postgresql::client"
25:
26: # randomly generate postgres password, unless using solo - see README
27: if Chef::Config[:solo]
28: missing_attrs = %w{
29: 'postgres'
30: }.select do |attr|
31>> node['postgresql']['password'][attr].nil?
32: end.map { |attr| "node['postgresql']['password']['#{attr}']" }
33:
34: if !missing_attrs.empty?
35: Chef::Application.fatal!([
36: "You must set #{missing_attrs.join(', ')} in chef-solo mode.",
37: "For more information, see https://github.com/opscode-cookbooks/postgresql#chef-solo-note"
38: ].join(' '))
39: end
40: else
[2012-11-24T00:15:15+00:00] ERROR: Running exception handlers
[2012-11-24T00:15:15+00:00] ERROR: Exception handlers complete
[2012-11-24T00:15:15+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2012-11-24T00:15:15+00:00] FATAL: NoMethodError: undefined method `[]' for nil:NilClass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment