-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
install.sh script fails on Amazon Linux 2023 #7352
Comments
Yeah AL2023 change their build ID quite often and it's a pain for this reason. You're right, the releasever really should not change like that - I was hoping once it was GA it would settle down but alas no. |
There is a delightful workaround I put in place for the automated tests:
UPDATED_FLUENT_BIT_INSTALL_COMMAND_PREFIX="sed -i 's|\$releasever/|2023/|g' /etc/yum.repos.d/fluent-bit.repo;" |
The server actually has some symlinks to cope with it for AL2022/2023 previously released versions but those need to be continually updated so baking it into the install script would be better, if frustrating to have to do. |
@alxgrk hopefully this should sort it if you can verify: https://raw.githubusercontent.com/fluent/fluent-bit/1ede4c1b43d0c711c716f093c407a83dc6333612/install.sh I've tested on containers locally but be good to verify on a VM if you have one to hand. |
@patrick-stephens can confirm, using the URL you provided works like expected. Thanks for the quick reaction 👍 |
Bug Report
Describe the bug
When running the
install.sh
script on Amazon Linux 2023, the fluent-bit package can not be installed.It tries to fetch the data from e.g. https://packages.fluentbit.io/amazonlinux/2023.0.20230503/repodata/repomd.xml, which fails with 404.
To Reproduce
Run
curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | sh
on an AL2023 EC2 instance.Output is:
Expected behavior
It should install the fluent-bit package.
Your Environment
Additional context
It looks like the
$releasever
variable used in the/etc/yum.repos.d/fluent-bit.repo
file is not resolved to an expected value. It should probably be2023
, but is2023.0.20230503
in my case.The following command confirms that:
The text was updated successfully, but these errors were encountered: