Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

Error executing action install on resource 'package[chef-postgresql-9.2]' #31

Closed
chrisolido opened this issue Apr 24, 2013 · 1 comment

Comments

@chrisolido
Copy link

I have use this recipe and found this error when deploy. Can someone shed some light on this error.

2013-04-24T06:05:58+00:00] INFO: Processing package[chef-postgresql-9.2] action install (chef-postgresql::server line 11)

Error executing action install on resource 'package[chef-postgresql-9.2]'

Chef::Exceptions::Package

No version specified, and no candidate version available for chef-postgresql-9.2

Resource Declaration:

In /var/chef/cache/cookbooks/chef-postgresql/recipes/server.rb

11: package "chef-postgresql-#{node["postgresql"]["version"]}"
12:

Compiled Resource:

Declared in /var/chef/cache/cookbooks/chef-postgresql/recipes/server.rb:11:in `from_file'

package("chef-postgresql-9.2") do
action :install
retries 0
retry_delay 2
package_name "chef-postgresql-9.2"
cookbook_name "chef-postgresql"
recipe_name "server"
end

[2013-04-24T06:05:58+00:00] ERROR: Running exception handlers
[2013-04-24T06:05:58+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2013-04-24T06:05:58+00:00] ERROR: Exception handlers complete
[2013-04-24T06:05:58+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-04-24T06:05:58+00:00] FATAL: Chef::Exceptions::Package: package[chef-postgresql-9.2](chef-postgresql::server line 11) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for chef-postgresql-9.2
root@ip-10-130-62-202:/home/ubuntu#

@chrisolido
Copy link
Author

One thing i did to resolve this are the following:

  1. rename the chef-postgresql to postgresql
  2. create a role and the runlist is recipe[postgres],recipe[postgres::client], recipe[postgres::server]
  3. This will install the 9.2.4 version.
  4. You can start creating another custom recipe calling this recipe for your own project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant