I am trying to install logstash from the yum repo.
Instructions say to point at https://artifacts.elastic.co/packages/5.3/yum. This does not seem to be available when you go to the URL. When running the yum command I get this output:
One of the configured repositories failed (Elastic repository for 5.3 packages),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
.
.
.
failure: repodata/repomd.xml from logstash-5.3: [Errno 256] No more mirrors to try. https://artifacts.elastic.co/packages/5.3/yum/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
I followed this:
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
Add the following in your /etc/yum.repos.d/ directory in a file with a .repo suffix, for example logstash.repo
[logstash-5.3]
name=Elastic repository for 5.3 packages
baseurl=https://artifacts.elastic.co/packages/5.3/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
Any idea if the repo is down or am I doing something wrong?
It's a new release day. We just published 5.4.0. It's entirely possible that you hit the repo at the exact moment we were uploading new files, so the xml file was missing.
NoSuchKeyThe specified key does not exist.packages/5.3/yum/repodata/repomd.xml4B616F0757A26A594hAzxVG5b96aP75hUwM/IbpDCsGaJl94jQFoWWRQ1sQtHz2hy/0NK2H/fgpvKvCUU41QkgY4gSU=
Yep 5.4 install is wrong or not working as expected. https://www.elastic.co/guide/en/logstash/5.4/installing-logstash.html
Use: logstash.repo
[logstash-5.x]
name=Elastic repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
So far as I can tell, this may be a documentation error. If you look at the documentation for 5.2, you'll see that the repository path was 5.x. If you change your repository paths to 5.x, it works as expected.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.