Created
June 18, 2012 04:50
-
-
Save cwebberOps/2946890 to your computer and use it in GitHub Desktop.
postgresql fail
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
[default] Running provisioner: Vagrant::Provisioners::ChefSolo... | |
[default] Generating chef JSON and uploading... | |
[default] Running chef-solo... | |
[default] stdin: is not a tty | |
: stderr | |
[default] [Mon, 18 Jun 2012 04:47:14 +0000] INFO: *** Chef 0.10.4 *** | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Setting the run_list to ["recipe[build-essential]", "recipe[postgresql::server]"] from JSON | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Run List is [recipe[build-essential], recipe[postgresql::server]] | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Run List expands to [build-essential, postgresql::server] | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Starting Chef Run for debian-6.0.3-amd64 | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Missing gem 'mysql' | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[postgresql-client] action install (postgresql::client line 37) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[libpq-dev] action install (postgresql::client line 37) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[make] action install (postgresql::client line 37) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing gem_package[pg] action install (postgresql::client line 42) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[build-essential] action install (build-essential::default line 34) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[binutils-doc] action install (build-essential::default line 34) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[autoconf] action install (build-essential::default line 40) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[flex] action install (build-essential::default line 40) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[bison] action install (build-essential::default line 40) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[postgresql-client] action nothing (postgresql::client line 37) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[libpq-dev] action nothing (postgresql::client line 37) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[make] action nothing (postgresql::client line 37) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing gem_package[pg] action nothing (postgresql::client line 42) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing package[postgresql] action install (postgresql::server_debian line 31) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing service[postgresql] action nothing (postgresql::server_debian line 33) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Processing template[/etc/postgresql//main/postgresql.conf] action create (postgresql::server_debian line 56) | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] ERROR: template[/etc/postgresql//main/postgresql.conf] (postgresql::server_debian line 56) has had an error | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] ERROR: template[/etc/postgresql//main/postgresql.conf] (/tmp/vagrant-chef-1/chef-solo-1/postgresql/recipes/server_debian.rb:56:in `from_file') had an error: | |
Chef::Mixin::Template::TemplateError (Attribute version is not defined!) on line #38: | |
36: # option or PGDATA environment variable, represented here as ConfigDir. | |
37: | |
38: data_directory = '/var/lib/postgresql/<%= node.postgresql.version -%>/main' # use data in another directory | |
39: # (change requires restart) | |
40: hba_file = '/etc/postgresql/<%= node.postgresql.version -%>/main/pg_hba.conf' # host-based authentication file | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/node/attribute.rb:428:in `method_missing' | |
(erubis):38:in `evaluate' | |
/opt/ruby/lib/ruby/gems/1.8/gems/erubis-2.7.0/lib/erubis/evaluator.rb:74:in `instance_eval' | |
/opt/ruby/lib/ruby/gems/1.8/gems/erubis-2.7.0/lib/erubis/evaluator.rb:74:in `evaluate' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/template.rb:41:in `render_template' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider/template.rb:99:in `render_with_context' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider/template.rb:39:in `action_create' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `send' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `run_action' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:45:in `run_action' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `converge' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `each' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `converge' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:76:in `converge' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:312:in `converge' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:160:in `run' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:192:in `run_application' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `loop' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `run_application' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application.rb:67:in `run' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/chef-solo:25 | |
/opt/ruby/bin/chef-solo:19:in `load' | |
/opt/ruby/bin/chef-solo:19 | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/template.rb:43:in `render_template' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider/template.rb:99:in `render_with_context' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider/template.rb:39:in `action_create' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `send' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `run_action' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:45:in `run_action' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `converge' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `each' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `converge' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:76:in `converge' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:312:in `converge' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:160:in `run' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:192:in `run_application' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `loop' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `run_application' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application.rb:67:in `run' | |
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/chef-solo:25 | |
/opt/ruby/bin/chef-solo:19:in `load' | |
/opt/ruby/bin/chef-solo:19 | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] ERROR: Running exception handlers | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] ERROR: Exception handlers complete | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out | |
: stdout | |
[default] [Mon, 18 Jun 2012 04:47:15 +0000] FATAL: Chef::Mixin::Template::TemplateError: Attribute version is not defined! | |
: stdout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like node.postgresql.version was not defined