Yum is unable to update/install from elastic repo

Hello,
when trying to perform updates in RHEL8, I'm getting

Failed to download metadata for repo 'logstash-7.x': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

with the following

[logstash-7.x]
name=Elastic repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

Trying to poke around in browser also gives:
No webpage was found for the web address: https://artifacts.elastic.co/packages/8.x/apt
HTTP ERROR 404
or
No webpage was found for the web address: https://artifacts.elastic.co/packages/7.x/yum
HTTP ERROR 404
or
No webpage was found for the web address: https://artifacts.elastic.co/downloads/elasticsearch/
HTTP ERROR 404

Is directory listing just flat out off?
What purpose does the documentation refer this way of installing for?
//Tomas

Are you trying to install something from the 7.x family? The process is similar but want to make sure we are talking about the same version of the documentation.

RedHat for 7.x would be here:

Where as current would be here:

What command are you running when you get the error. If there is any more information being returned after the command fails could that be included as well?

In the end the issue was more of conflict between silly setup infrastructure team put into yum.
Since they told yum to use their cacert with one crt only, everything else(public and trusted even) is going to die on SSL error, and not all error messages will say that.
which brings us to two options how to resolve the issue. We choose the latter - sslverify was skipped in our ansible playbook.

1 Like

Ok, nice good to know, and glad you guys figured it out.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.