Skip to content

Commit e227d20

Browse files
adamdepolloAdam DePollo
andauthored
installation: linux: redhat-centos.md: Add FAQ section with fix for 404 on yum install (fluent#806)
Signed-off-by: Adam DePollo <[email protected]> Co-authored-by: Adam DePollo <[email protected]>
1 parent 1cfae77 commit e227d20

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

installation/linux/redhat-centos.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,29 @@ Redirecting to /bin/systemctl status fluent-bit.service
9696
```
9797

9898
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.
99+
100+
## FAQ
101+
102+
### Yum install fails with a "404 - Page not found" error for the package mirror
103+
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:
104+
105+
```
106+
[fluent-bit]
107+
name = Fluent Bit
108+
baseurl = https://packages.fluentbit.io/centos/$releasever/$basearch/
109+
...
110+
```
111+
112+
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.
113+
114+
In order to resolve this issue, you can replace the $releasever variable with your system's OS major release version. For example:
115+
116+
```
117+
[fluent-bit]
118+
name = Fluent Bit
119+
baseurl = https://packages.fluentbit.io/centos/7/$basearch/
120+
gpgcheck=1
121+
gpgkey=https://packages.fluentbit.io/fluentbit.key
122+
repo_gpgcheck=1
123+
enabled=1
124+
```

0 commit comments

Comments
 (0)