Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omnitruck artifact does not exist for version 17 on platform Amazon Linux 2022 #569

Open
alb777 opened this issue Sep 5, 2022 · 2 comments

Comments

@alb777
Copy link

alb777 commented Sep 5, 2022

As a community member, I would like to be able to install Chef on the new versions of Amazon Linux provided by AWS like Amazon Linux 2022 over the Omnitruck script.
https://github.com/amazonlinux/amazon-linux-2022

Describe the problem

I am getting errors to install Chef over Omnitruck script at Amazon Linux 2022 OS releases

Software Version

Chef 17
Chef 16

Platform Version

5.15.57-30.131.amzn2022.x86_64
Amazon Linux release 2022 (Amazon Linux)
NAME="Amazon Linux"
VERSION="2022"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2022"
PLATFORM_ID="platform:al2022"
PRETTY_NAME="Amazon Linux 2022"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2022"
HOME_URL="https://amazonlinux.com/"
Amazon Linux release 2022 (Amazon Linux)

Replication Case

Simply run the command below on amzn2022.x86_64 OS (Amazon Linux release 2022 ) OS instances:

curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -v 17

Stacktrace

Omnitruck artifact does not exist for version 17 on platform amazon % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 23526 100 23526 0 0 146k 0 --:--:-- --:--:-- --:--:-- 147k amazon 2022 x86_64 Getting information for chef stable 17 for amazon... downloading https://omnitruck.chef.io/stable/chef/metadata?v=17&p=amazon&pv=2022&m=x86_64 to file /tmp/install.sh.27642/metadata.txt trying wget... ERROR 404 Omnitruck artifact does not exist for version 17 on platform amazon

Either this means:

  • We do not support amazon
  • We do not have an artifact for 17

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=' 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'
successfully.

If you cannot fix this problem by setting the bootstrap_version, it probably means
that amazon is not supported.

Metadata URL: https://omnitruck.chef.io/stable/chef/metadata?v=17&p=amazon&pv=2022&m=x86_64

Possible Solution

Make omnitruck script compatible with described OS release above.

@ruilapa
Copy link

ruilapa commented Sep 6, 2022

I can confirm the same issue!

@mfortin
Copy link

mfortin commented Feb 13, 2023

Still the same with Chef 18.

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

No branches or pull requests

3 participants