Cookbook 'seven_zip' version '3.1.0' depends on chef version [">= 13.0"], but the running chef version is 12.21.12
Closed this issue · 1 comments
KerbenII commented
Cookbook version
6.1.1
Chef-client version
12.21.12
Platform Details
Ubuntu 18.04
Scenario:
I just want to execute php::install recipe
Steps to Reproduce:
Copy and paste the following files to one directory.
Install vagrant (vagrantup.com) and execute following commands:
vagrant plugin install vagrant-berkshelf
vagrant up
The Vagrant wil build machine for you.
Berksfile
source "https://supermarket.chef.io"
cookbook 'php', '~> 6.1.1'
Berksfile.lock
DEPENDENCIES
php (~> 6.1.1)
GRAPH
build-essential (8.2.1)
mingw (>= 1.1)
seven_zip (>= 0.0.0)
mingw (2.1.0)
seven_zip (>= 0.0.0)
php (6.1.1)
build-essential (>= 5.0)
yum-epel (>= 0.0.0)
seven_zip (3.1.0)
windows (>= 0.0.0)
windows (6.0.0)
yum-epel (3.3.0)
Vagrantfile:
# encoding: utf-8
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.berkshelf.enabled = true
config.berkshelf.berksfile_path = "./Berksfile"
config.vm.box = "ubuntu/bionic64"
config.vm.network "private_network", ip: "192.168.14.99"
config.vm.provider "virtualbox" do |v, override|
v.name = "Chef12 Ubuntu 18.04 PHP 7 - Test"
v.customize ["modifyvm", :id, "--rtcuseutc", "on"]
v.customize ["modifyvm", :id, "--cpuexecutioncap", "90"]
v.customize ["modifyvm", :id, "--memory", "2048"]
v.customize ["modifyvm", :id, "--cpus", "2"]
end
config.vm.provision :chef_solo do |chef|
chef.channel = "stable"
chef.version = "12.21.12"
chef.cookbooks_path = "cookbooks"
chef.add_recipe "php::install"
chef.json = {
}
end
end
Expected Result:
Recipe execute succesfully.
Actual Result:
==> default: [2019-05-23T11:11:29+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2019-05-23T11:11:29+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
==> default: [2019-05-23T11:11:29+00:00] ERROR: Cookbook 'seven_zip' version '3.1.0' depends on chef version [">= 13.0"], but the running chef version is 12.21.12
==> default: [2019-05-23T11:11:29+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
damacus commented
Hi @KerbenII sorry for taking so long to get back to you here.
This one is a nice easy message, there's an underlying cookbook that requires a newer version of Chef than you are running. i.e. 7zip requires Chef-13 and you're only running Chef-12 which is now EOL.
Thanks for raising such a clear issue, it made it nice and easy to debug