Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
No candidate version available for rabbitmq-server in Ubuntu 14.04 and 4.7.0 #356
Error executing action
No candidate version available for rabbitmq-server
60: package 'rabbitmq-server' do
Declared in /var/lib/aws/opsworks/cache.stage2/cookbooks/rabbitmq/recipes/default.rb:60:in `from_file'
The attributes are the default for this:
The package is downloaded fine (line #56 in default.rb):
Anyone is having the same the same issue?
referenced this issue
Apr 3, 2016
I am having the same issue when using v4.8.0 of the rabbitmq community cookbook on ubuntu (14.04)
I'm using v3.0.0 of the erlang cookbook, v4.8.0 of the rabbitmq cookbook, v1.9.2 of the apt cookbook.
my test environment is chefdk 0.14.25 using test-kitchen v1.9.1 with a kitchen.yml file that uses chef-client 11.16.4 and uses the base-ubuntu-14.04-x86_64 vagrant base box.
my recipe that im testing simply includes the rabbitmq cookbook without setting any attributes, it attempts to install v 3.6.1-1 of rabbitmq-server just like what is reported on the PR.
I'll upgrade our apt cookbook to the latest version and re-read the chef docs on the dpkg provider / package resource for chef 11 to see if im missing something here..
I have some updated information on this:
the highest apt cookbook i could go to is v3.0.0 as i am running chef 11 and v4.0.0 requires chef 12
after taking a closer look as to what is providing the 'provider', it looks like chef-client is
updating to the latest chef 11 client (via kitchen.yml) did not fix the issue.
there must be a difference in how the dpkg provider handles 'update' in chef 11 vs chef 12.
working version of chef-client: chef stable 12.10.24 for ubuntu
The current releases of this cookbook are developed with intent for Chef 12+ only
Something like this might work in a wrapper cookbook, just FYI @pianoman19372
This should override the action on the resource back to what you want.
resources('package[rabbitmq-server]').tap do |pkg| pkg.action :install end
Yep, that is correct. Chef11 backwards compatibility opened up a huge can of worms so we stayed away from it.
You're more then welcome to fork and may the required changes, but I can't have Chef11 support upstream.
Also the original issue has "opsworks" in the error, this is a Chef cookbook, officially not an Opsworks one.