Last active
August 29, 2015 14:17
postgresql::ruby failing during cookbook compiliation - full error output
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
Generated at 2015-03-19 05:13:36 +0000 | |
Chef::Exceptions::Package: package[postgresql94] (postgresql::client line 33) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for postgresql94 | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/mixin/why_run.rb:241:in `run' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/mixin/why_run.rb:322:in `block in run' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/mixin/why_run.rb:321:in `each' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/mixin/why_run.rb:321:in `run' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/provider.rb:135:in `process_resource_requirements' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/provider.rb:111:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/resource.rb:648:in `run_action' | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:53:in `block in from_file' | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:52:in `each' | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:52:in `rescue in from_file' | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:23:in `from_file' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/mixin/from_file.rb:30:in `instance_eval' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/mixin/from_file.rb:30:in `from_file' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/cookbook_version.rb:234:in `load_recipe' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/run_context.rb:166:in `load_recipe' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/run_context.rb:135:in `block in include_recipe' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/run_context.rb:134:in `each' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/run_context.rb:134:in `include_recipe' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/dsl/include_recipe.rb:26:in `include_recipe' | |
/var/chef/cache/cookbooks/server-postgresql/recipes/pg-install.rb:37:in `from_file' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/mixin/from_file.rb:30:in `instance_eval' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/mixin/from_file.rb:30:in `from_file' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/cookbook_version.rb:234:in `load_recipe' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/run_context.rb:166:in `load_recipe' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/run_context/cookbook_compiler.rb:140:in `block in compile_recipes' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/run_context/cookbook_compiler.rb:138:in `each' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/run_context/cookbook_compiler.rb:138:in `compile_recipes' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/run_context/cookbook_compiler.rb:75:in `compile' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/run_context.rb:89:in `load' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/policy_builder/expand_node_object.rb:73:in `setup_run_context' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/client.rb:265:in `setup_run_context' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/client.rb:429:in `do_run' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/client.rb:213:in `block in run' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/client.rb:207:in `fork' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/client.rb:207:in `run' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/application.rb:236:in `run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/application/client.rb:338:in `block in run_application' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/application/client.rb:327:in `loop' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/application/client.rb:327:in `run_application' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/lib/chef/application.rb:55:in `run' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.18.6/bin/chef-client:26:in `<top (required)>' | |
/usr/bin/chef-client:23:in `load' | |
/usr/bin/chef-client:23:in `<main>' |
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
Compiling Cookbooks... | |
[2015-03-19T04:39:08+00:00] WARN: Cloning resource attributes for directory[/var/run/chef] from prior resource (CHEF-3694) | |
[2015-03-19T04:39:08+00:00] WARN: Previous directory[/var/run/chef]: /var/chef/cache/cookbooks/chef-client/libraries/helpers.rb:77:in `block in create_directories' | |
[2015-03-19T04:39:08+00:00] WARN: Current directory[/var/run/chef]: /var/chef/cache/cookbooks/chef-client/libraries/helpers.rb:77:in `block in create_directories' | |
[2015-03-19T04:39:08+00:00] WARN: Cloning resource attributes for directory[/var/cache/chef] from prior resource (CHEF-3694) | |
[2015-03-19T04:39:08+00:00] WARN: Previous directory[/var/cache/chef]: /var/chef/cache/cookbooks/chef-client/libraries/helpers.rb:77:in `block in create_directories' | |
[2015-03-19T04:39:08+00:00] WARN: Current directory[/var/cache/chef]: /var/chef/cache/cookbooks/chef-client/libraries/helpers.rb:77:in `block in create_directories' | |
[2015-03-19T04:39:08+00:00] WARN: Cloning resource attributes for directory[/var/lib/chef] from prior resource (CHEF-3694) | |
[2015-03-19T04:39:08+00:00] WARN: Previous directory[/var/lib/chef]: /var/chef/cache/cookbooks/chef-client/libraries/helpers.rb:77:in `block in create_directories' | |
[2015-03-19T04:39:08+00:00] WARN: Current directory[/var/lib/chef]: /var/chef/cache/cookbooks/chef-client/libraries/helpers.rb:77:in `block in create_directories' | |
[2015-03-19T04:39:08+00:00] WARN: Cloning resource attributes for directory[/var/log/chef] from prior resource (CHEF-3694) | |
[2015-03-19T04:39:08+00:00] WARN: Previous directory[/var/log/chef]: /var/chef/cache/cookbooks/chef-client/libraries/helpers.rb:77:in `block in create_directories' | |
[2015-03-19T04:39:08+00:00] WARN: Current directory[/var/log/chef]: /var/chef/cache/cookbooks/chef-client/libraries/helpers.rb:77:in `block in create_directories' | |
[2015-03-19T04:39:08+00:00] WARN: Cloning resource attributes for directory[/etc/chef] from prior resource (CHEF-3694) | |
[2015-03-19T04:39:08+00:00] WARN: Previous directory[/etc/chef]: /var/chef/cache/cookbooks/chef-client/libraries/helpers.rb:77:in `block in create_directories' | |
[2015-03-19T04:39:08+00:00] WARN: Current directory[/etc/chef]: /var/chef/cache/cookbooks/chef-client/libraries/helpers.rb:77:in `block in create_directories' | |
Recipe: postgresql::client | |
* package[postgresql94] action install | |
* No version specified, and no candidate version available for postgresql94 | |
================================================================================ | |
Error executing action `install` on resource 'package[postgresql94]' | |
================================================================================ | |
Chef::Exceptions::Package | |
------------------------- | |
No version specified, and no candidate version available for postgresql94 | |
Cookbook Trace: | |
--------------- | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:53:in `block in from_file' | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:52:in `each' | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:52:in `rescue in from_file' | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:23:in `from_file' | |
/var/chef/cache/cookbooks/server-postgresql/recipes/pg-install.rb:37:in `from_file' | |
Resource Declaration: | |
--------------------- | |
# In /var/chef/cache/cookbooks/postgresql/recipes/client.rb | |
33: package pg_pack | |
34: end | |
Compiled Resource: | |
------------------ | |
# Declared in /var/chef/cache/cookbooks/postgresql/recipes/client.rb:33:in `block in from_file' | |
package("postgresql94") do | |
action :install | |
retries 0 | |
retry_delay 2 | |
guard_interpreter :default | |
package_name "postgresql94" | |
timeout 900 | |
cookbook_name "postgresql" | |
recipe_name "client" | |
end | |
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/server-postgresql/recipes/pg-install.rb | |
================================================================================ | |
Chef::Exceptions::Package | |
------------------------- | |
package[postgresql94] (postgresql::client line 33) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for postgresql94 | |
Cookbook Trace: | |
--------------- | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:53:in `block in from_file' | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:52:in `each' | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:52:in `rescue in from_file' | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb:23:in `from_file' | |
/var/chef/cache/cookbooks/server-postgresql/recipes/pg-install.rb:37:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/var/chef/cache/cookbooks/postgresql/recipes/ruby.rb: | |
46: if node['postgresql']['enable_pgdg_apt'] | |
47: include_recipe "postgresql::apt_pgdg_postgresql" | |
48: resources("file[remove deprecated Pitti PPA apt repository]").run_action(:delete) | |
49: resources("apt_repository[apt.postgresql.org]").run_action(:add) | |
50: end | |
51: | |
52: node['postgresql']['client']['packages'].each do |pg_pack| | |
53>> resources("package[#{pg_pack}]").run_action(:install) | |
54: end | |
55: | |
56: begin | |
57: chef_gem "pg" | |
58: rescue Gem::Installer::ExtensionBuildError, Mixlib::ShellOut::ShellCommandFailed => e | |
59: # Are we an omnibus install? | |
60: raise if RbConfig.ruby.scan(%r{(chef|opscode)}).empty? | |
61: # Still here, must be omnibus. Lets make this thing install! | |
62: Chef::Log.warn 'Failed to properly build pg gem. Forcing properly linking and retrying (omnibus fix)' | |
Running handlers: | |
[2015-03-19T04:39:15+00:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2015-03-19T04:39:15+00:00] ERROR: Exception handlers complete | |
[2015-03-19T04:39:15+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
Chef Client failed. 0 resources updated in 17.38569002 seconds | |
[2015-03-19T04:39:15+00:00] ERROR: package[postgresql94] (postgresql::client line 33) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for postgresql94 | |
[2015-03-19T04:39:15+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