404 error from RHEL Repo

Good Day, working on setting up some systems for my fellow Dev’s and the REPO for RHEL seems to be giving 404 errors for me.

This is what I am seeing:

failure: repodata/repomd.xml from hashicorp: [Errno 256] No more mirrors to try. 
https://rpm.releases.hashicorp.com/RHEL/7Workstation/x86_64/stable/repodata./rempmd.cml:  [Errno 14] HTTPS Error 404 - Not Found
1 Like

I am also seeing this for RHEL 8. I opened the repo file and tried https://rpm.releases.hashicorp.com/RHEL/8/x86_64/stable because I wanted to add the repos to our Satellite installation…

Got same error when I’m trying to install packer after adding HashiCorp Linux repo.
Any fix for this yet?

I’m also getting the 404 error when trying to install terraform from the RHEL repo:

12:12 $ sudo yum -y install terraform
Hashicorp Stable - x86_64                                                                                                      775  B/s | 376  B     00:00    
Errors during downloading metadata for repository 'hashicorp':
  - Status code: 404 for https://rpm.releases.hashicorp.com/RHEL/31/x86_64/stable/repodata/repomd.xml (IP: ::1)
Error: Failed to download metadata for repo 'hashicorp': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

I am having the same issue today

sh-4.2$ sudo yum update
Loaded plugins: amazon-id, search-disabled-repos
epel/x86_64/primary_db                                                                                                                                                                     | 7.0 MB  00:00:06
https://rpm.releases.hashicorp.com/RHEL/7Server/x86_64/stable/repodata/55c1824d8c002d66b785c441797a1f087aa8e927-primary.xml.gz: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
3 Likes

I too am getting an error/404 from the Hashicorp repo on RHEL/Rocky 8

Hashicorp Stable - x86_64                                                                                                     4.9 kB/s | 842  B     00:00
Errors during downloading metadata for repository 'hashicorp':
  - Status code: 404 for https://rpm.releases.hashicorp.com/RHEL/8/x86_64/stable/repodata/90aae048a9b43f1d85c8c01b4dcf34ac10a2f4e0-primary.xml.gz (IP: 151.101.62.49)
  - Status code: 404 for https://rpm.releases.hashicorp.com/RHEL/8/x86_64/stable/repodata/8b6dfeca5a79320267551358c4f85f15dbd558c4-filelists.xml.gz (IP: 151.101.62.49)
Error: Failed to download metadata for repo 'hashicorp': Yum repo downloading error: Downloading error(s): repodata/8b6dfeca5a79320267551358c4f85f15dbd558c4-filelists.xml.gz - Cannot download, all mirrors were already tried without success; repodata/90aae048a9b43f1d85c8c01b4dcf34ac10a2f4e0-primary.xml.gz - Cannot download, all mirrors were already tried without success
4 Likes

Seems to be back up now …

I also received this error when trying to install consul on AmazonLinux.

It is also fixed now.

I saw no changes to the status page indicating a potential outage that would cause this.

I’m currently getting this same error trying to install Vault on CentOS 7:

- Status code: 404 for https://rpm.releases.hashicorp.com/RHEL/7/x86_64/stable/repodata/c6c08886b5a31de59d3e0928f42bd5e1ce86a4e2-filelists.xml.gz

CentOS 7 is still supported according to Official Packaging Guide

Edit: tried setting it up in a Rocky 8 VM, worked fine - looks like just the EL7 repo is broken. For now I can do development work in this VM but will need to install vault on EL7 systems at some point.

i am having the same issue for installing vault on Redhat 7

    rhel7.amazon-ebs.rhel7: fatal: [default]: FAILED! => {"changed": false, "msg": "Failure talking to yum: failure: repodata/repomd.xml from hashicorp: [Errno 256] No more mirrors to try.\nhttps://rpm.releases.hashicorp.com/RHEL/7Server/x86_64/stable/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found"}

Hi @hche608,

I don’t think the distribution name “7Server” is supported by the HashiCorp repository. The documented supported distribution names for RHEL at the time I’m writing this are: 7, 8, 9.

I don’t currently have a RHEL system handy to test with, but I would suggest trying to use “7” instead of “7Server” in the repository URL, to match with what the HashiCorp release engineering team has documented.


Note also that the HashiCorp repository does not carry packages for end-of-life distribution versions. Maintenence support for RHEL 7 ends in June this year, and so the HashiCorp RPM repository is likely to stop offering packages for RHEL 7 shortly afterwards. I suggest planning to upgrade to a newer RHEL release on at least the systems where you are running Terraform.

Actually, the 7server comes directly from https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo and it used to work fine but something changed on the Hashicorp side and it is not working anymore.

The HashiCorp release engineering team has recently purged a set of unsupported distribution versions that were previously present.

The Official Packaging Guide seems up-to-date with what’s supported, as far as I can tell. I assume that 7Server was previously included in the repository – probably as a copy of 7, since the Terraform package contents are identical across all distributions anyway – but it has now been removed.

The hashicorp.repo file doesn’t encode any specific release version, but it does include the $releasever substitution, so indeed it will work only if your system replaces $releasever with one of the supported distribution versions. For systems that use unsupported names for that variable, such as 7Server, I suspect you’ll need to manually edit the entry to use just 7 instead to match how the repository is configured.

(I’m just sharing the context I have here. I don’t know anything more than what I’ve mentioned above and am not involved in the maintenance of these repositories.)

1 Like

I get the why, bit it’s just that the official documentation shares those steps as a way to install Terraform:
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
sudo yum -y install terraform

From Here: Install | Terraform | HashiCorp Developer

And the instructions do not work if the machine returns 7server instead of 7 for $releasever. Pretty annoying to remove that repo which breaks all automation.

I’ll pass this feedback on to the release engineering team. Thanks!

Hi Experts,

Good day!

I am having the same issue while installing terraform in RHEL.

failure: repodata/repomd.xml from hashicorp: [Errno 256] No more mirrors to try.
https://rpm.releases.hashicorp.com/RHEL/7Server/x86_64/stable/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

Can someone fix this issue?

Thanks,
Sri

The issue that this topic was originally discussing was resolved a long time ago and I don’t think it’s helpful to bundle every single problem someone might have with RPM installation into a single long topic that never ends, so I’m going to close this topic.

If you are having trouble installing Terraform – whether from RPM or not – please start a new topic and share all of the context about what you have tried and what’s happened. I know it’s tempting to assume that you have the same problem as someone else who had a similar symptom earlier, but there are many different ways that package installation can fail so it’s important to always start fresh with each new question.

Thanks!

1 Like