404 error when trying to access repository from the "Published at" URL

Navigate to Content -> Products -> Red Hat Enterprise Linux Server -> Repositories -> [Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server -> Published at -> Click the link

Receive a “404: Not Found” error.

URL is https://xxxx.com/pulp/repos/CDA/Library/content/dist/rhel/server/7/7Server/x86_64/os/

Debug certificate has already been downloaded and installed.

This is Katello 3.18 with pulp2.

I have searched online extensively, including foreman and Red Hat sites, and have tried some of the suggestions but none have worked. Hoping someone here has seen this issue before.

Bump.

if you try to browse https://xxxx.com/pulp/repos/CDA/ using the debug certs, do you see a directory listing? if so how far down the path Library/content/dist/rhel/server/7/7Server/x86_64/os/ can you go ?

Hi Justin,

I get the same “404: Not Found” error when browsing to https://xxxx.com/pulp/repos/CDA/.

Saurabh

@Justin_Sherrill

Justin - any idea what the issue could be?

do you get the same for http:// ?

Can you attach your /etc/httpd/conf.d/pulp_rpm.conf and /etc/httpd/conf.d/05-foreman-ssl.conf files?
Feel free to censor out any sensitive hostnames.

05-foreman-ssl.log (5.8 KB) pulp_rpm.log (1.4 KB)

@Justin_Sherrill - http:// redirects to https:// and gets the same error.

I have uploaded the files. I had to rename the extension to .log due to upload restrictions.

@Justin_Sherrill

FYI…

Also get the below error from the content host. The redhat note mentioned in the error did not help.

yum repolist

Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager, tracer_upload
https://foremanserver.com/pulp/repos/CDA/PROD-Environment/RHEL-7-Content-View/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article

If above article doesn’t help to resolve this issue please open a ticket with Red Hat Support.

https://foremanserver.com/pulp/repos/CDA/PROD-Environment/RHEL-7-Content-View/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
repo id repo name status
rhel-7-server-rpms/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 0
repolist: 0
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, subscription-manager

Your apache configuration is pointing to pulp3 for /pulp/repos/ which may explain the issue. Was this an upgraded katello? or a fresh 3.18 install? how did you get to this point?

Also, can you attach /etc/foreman/plugins/katello.yaml ?

This is a fresh install. I was encountering the repository sync issue with Katello 3.18 with pulp3 (Error while syncing Red Hat repositories). So, I reinstalled with pulp2 using “use_pulp_2_for_yum:true” in “/etc/foreman-installer/scenarios.d/katello-answers.yaml”.

katello.yaml uploaded. Had to rename it to katello.log due to upload restrictions.

katello.log (1.1 KB)

Not sure if this is relevant but I do not see any pulp2 path in the file system. And the /pulp/repos/ does seem to have the content.

[root@foremanserver ~]# cd /
[root@foremanserver /]# find . -name pulp2
./usr/lib/python3.6/site-packages/pulp_2to3_migration/pulp2

[root@foremanserver /]# ls -lrt /var/lib/pulp/published/yum/https/repos/CDA/
total 4
drwxr-x—. 3 apache apache 48 May 28 14:52 content_views
drwxrwxr-x. 3 apache apache 48 May 28 14:52 PROD-Environment
drwxrwxr-x. 3 apache apache 48 May 28 14:52 NON-PROD-Environment
drwxr-x—. 4 apache apache 63 May 31 21:37 Library
-rw-rw-r–. 1 apache apache 59 May 31 21:37 listing

@schaudhary I’m having same issue after installing Katello 3.18 with Pulp2, and landed at this 404 issue. Did you get resolved this, pls share if you have any solution?
Thanks in advance!

@grajangam No solution. We decided to go with Red Hat Satellite. I’m in the process of configuring it right now and I have not seen any of the issues that I encountered with Foreman/Katello.