We recently upgraded to chef 12.9 - now when doing new packer builds to install chef 12.9 we are getting an error:
root@i-15eca391:~# curl -L https://www.chef.io/chef/install.sh | sudo bash -s -- -v 12.9 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 19559 100 19559 0 0 430k 0 --:--:-- --:--:-- --:--:-- 434k ubuntu 14.04 x86_64 Getting information for chef stable 12.9 for ubuntu... downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=12.9&p=ubuntu&pv=14.04&m=x86_64 to file /tmp/install.sh.17783/metadata.txt trying wget... ERROR 404 Omnitruck artifact does not exist for version 12.9 on platform ubuntu Either this means: - We do not support ubuntu - We do not have an artifact for 12.9 This is often the latter case due to running a prerelease or RC version of chef or a gem version which was only pushed to rubygems and not omnitruck. You may be able to set your knife[:bootstrap_version] to the most recent stable release of Chef to fix this problem (or the most recent stable major version number). In order to test the version parameter, adventurous users may take the Metadata URL below and modify the '&v=<number>' parameter until you successfully get a URL that does not 404 (e.g. via curl or wget). You should be able to use '&v=11' or '&v=12' succesfully. If you cannot fix this problem by setting the bootstrap_version, it probably means that ubuntu is not supported. Metadata URL: https://omnitruck-direct.chef.io/stable/chef/metadata?v=12.9&p=ubuntu&pv=14.04&m=x86_64
If you don’t pass a version number it will actually downgrade chef
downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=ubuntu&pv=14.04&m=x86_64 to file /tmp/install.sh.17065/metadata.txt trying wget... sha1 d202d57512b6a2d795d0fb6df566ca906745c7d8 sha256 92b7f3eba0a62b20eced2eae03ec2a5e382da4b044c38c20d2902393683c77f7 url https://packages.chef.io/stable/ubuntu/14.04/chef_12.8.1-1_amd64.deb version 12.8.1 downloaded metadata file looks valid... downloading https://packages.chef.io/stable/ubuntu/14.04/chef_12.8.1-1_amd64.deb to file /tmp/install.sh.17065/chef_12.8.1-1_amd64.deb trying wget... Comparing checksum with sha256sum... WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING You are installing an omnibus package without a version pin. If you are installing on production servers via an automated process this is DANGEROUS and you will be upgraded without warning on new releases, even to new major releases. Letting the version float is only appropriate in desktop, test, development or CI/CD environments. WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING Installing chef installing with dpkg... dpkg: warning: downgrading chef from 12.9.38-1 to 12.8.1-1 (Reading database ... 180058 files and directories currently installed.) Preparing to unpack .../chef_12.8.1-1_amd64.deb ... Unpacking chef (12.8.1-1) over (12.9.38-1) ... Setting up chef (12.8.1-1) ... Thank you for installing Chef!