From b38da8363f2e0126ff03b521309be3b5c180d48e Mon Sep 17 00:00:00 2001 From: Adam DePollo Date: Fri, 6 May 2022 14:08:12 -0400 Subject: [PATCH] installation: linux: redhat-centos.md: Add FAQ section with fix for 404 on yum install Signed-off-by: Adam DePollo --- installation/linux/redhat-centos.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/installation/linux/redhat-centos.md b/installation/linux/redhat-centos.md index 0ff5935df..a7075fbae 100644 --- a/installation/linux/redhat-centos.md +++ b/installation/linux/redhat-centos.md @@ -96,3 +96,29 @@ Redirecting to /bin/systemctl status fluent-bit.service ``` The default configuration of **fluent-bit** is collecting metrics of CPU usage and sending the records to the standard output, you can see the outgoing data in your _/var/log/messages_ file. + +## FAQ + +### Yum install fails with a "404 - Page not found" error for the package mirror +The fluent-bit.repo file for the latest installations of Fluent-Bit uses a $releasever variable to determine the correct version of the package to install to your system: + +``` +[fluent-bit] +name = Fluent Bit +baseurl = https://packages.fluentbit.io/centos/$releasever/$basearch/ +... +``` + +Depending on your Red Hat distribution version, this variable may return a value other than the OS major release version (e.g., RHEL7 Server distributions return "7Server" instead of just "7"). The Fluent-Bit package url uses just the major OS release version, so any other value here will cause a 404. + +In order to resolve this issue, you can replace the $releasever variable with your system's OS major release version. For example: + +``` +[fluent-bit] +name = Fluent Bit +baseurl = https://packages.fluentbit.io/centos/7/$basearch/ +gpgcheck=1 +gpgkey=https://packages.fluentbit.io/fluentbit.key +repo_gpgcheck=1 +enabled=1 +```