Skip to content

Instantly share code, notes, and snippets.

@evadnoob
Created June 9, 2016 17:37
Show Gist options
  • Save evadnoob/c86db6e86713286dac73259d3f26a127 to your computer and use it in GitHub Desktop.
Save evadnoob/c86db6e86713286dac73259d3f26a127 to your computer and use it in GitHub Desktop.
chef error with vagrant
curl -sL https://omnitruck.chef.io/install.sh | sudo bash -s -- -P "chef" -c "current" -v "12.10.40"
debian 8 x86_64
Getting information for chef current 12.10.40 for debian...
downloading https://omnitruck.chef.io/current/chef/metadata?v=12.10.40&p=debian&pv=8&m=x86_64
to file /tmp/install.sh.17360/metadata.txt
trying wget...
ERROR 404
Omnitruck artifact does not exist for version 12.10.40 on platform debian
Either this means:
- We do not support debian
- We do not have an artifact for 12.10.40
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 debian is not supported.
Metadata URL: https://omnitruck.chef.io/current/chef/metadata?v=12.10.40&p=debian&pv=8&m=x86_64
@evadnoob
Copy link
Author

evadnoob commented Jun 9, 2016

The fix to this was to use:

  config.vm.provision :chef_solo do |chef|
    chef.version = '12.9.38'
    chef.channel = 'stable'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment