404 error of foreman repo during installation on RHEL8

Problem:
When trying to install foreman 3.7, I keep getting a 404 error when it is looking for the repo. I tested out my connections and network settings since I am on Azure VM RHEL8.8 and even installed the epel repo on fedoraproject. All of that went fine. I tried to curl and wget on https://yum.theforeman.org/releases/latest/el8/x86_64/foreman-release.rpm and receive a 404 error also. See below for the error.

Expected outcome:
Should install the repo so I can install foreman.x

Other relevant data:

$ sudo dnf localinstall https://yum.theforeman.org/releases/latest/el8/x86_64/foreman_release.rpm
Last metadata expiration check: 0:26:09 ago on Tue 22 Aug 2023 09:09:13 AM PDT.
[MIRROR] foreman_release.rpm: Status code: 404 for https://yum.theforeman.org/releases/latest/el8/x86_64/foreman_release.rpm (IP: 151.101.22.49)      
[MIRROR] foreman_release.rpm: Status code: 404 for https://yum.theforeman.org/releases/latest/el8/x86_64/foreman_release.rpm (IP: 151.101.22.49)      
[MIRROR] foreman_release.rpm: Status code: 404 for https://yum.theforeman.org/releases/latest/el8/x86_64/foreman_release.rpm (IP: 151.101.22.49)      
[MIRROR] foreman_release.rpm: Status code: 404 for https://yum.theforeman.org/releases/latest/el8/x86_64/foreman_release.rpm (IP: 151.101.22.49)      
[FAILED] foreman_release.rpm: Status code: 404 for https://yum.theforeman.org/releases/latest/el8/x86_64/foreman_release.rpm (IP: 151.101.22.49)      
Status code: 404 for https://yum.theforeman.org/releases/latest/el8/x86_64/foreman_release.rpm (IP: 151.101.22.49)```

Maybe check your network/proxy settings?

That rpm just installs the yum repo configs for foreman in /etc/yum.repod.d/ and it is trying to go out to the internet and do a yum refresh.

Does this system have internet access?

1 Like

Hi @steamcrypt

please note that using EPEL on EL8 is not supported: Supported Operating Systems on both Foreman and Foreman/Katello.

The correct URL is

https://yum.theforeman.org/releases/latest/el8/x86_64/foreman-release.rpm

and not

https://yum.theforeman.org/releases/latest/el8/x86_64/foreman_release.rpm

Yes It has Internet access. That was why I used epel as a test to see if there were other external repos I could connect to.

Sorry…I typed it out on here but it is correct in the yum repo. Same error.

I know. I have since removed the epel repo. I used it as a test to see if I could install a different external repo and I could.

Can‘t tell what you did if you don‘t post it.

You have used a URL which is incorrect and this results (correctly) in a 404.

If the correct URL isn‘t working either, please post the exact command and output to review…

Actually I referenced what I had in the repo instead of the command. I ran the command again, with the typo corrected and it worked. Thank You very much.