Foreman Smart Proxy Patching OS

Problem:
Dear Sir, I am new to Foreman. I have installed a Foreman smart proxy to handle OS patching for the testing host that is assigned to that smart proxy. However, there is an error:

Errors during downloading metadata for repository ‘rhel-9-for-x86_64-appstream-rpms’:

  • Status code: 404 for https://uk1-smartproxy.xxxxxx.com /pulp/content/Default_Organization/Library/Dev/content/dist/rhel9/9/x86_64/appstream/os/repodata/repomd.xml (IP: xxxxxxxxx)
    Error: Failed to download metadata for repo ‘rhel-9-for-x86_64-appstream-rpms’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Would anyone know what the problem is?

Expected outcome:
No error
Foreman and Proxy versions:
3.10
Foreman and Proxy plugin versions:
3.10
Distribution and version:
3.10
Other relevant data:

What Candlepin version do you have? rpm -qa | grep candlepin

rpm -qa | grep candlepin
candlepin-selinux-4.3.12-1.el9.noarch
candlepin-4.3.12-1.el9.noarch

found on Foreman server

Thanks.

We also experience this error while doing a content sync for the smart proxy in the Foreman GUI:

Updating Subscription Management repositories.
2:
Red Hat Enterprise Linux 9 for x86_64 - BaseOS 201 B/s | 14 B 00:00
3:
Errors during downloading metadata for repository ‘rhel-9-for-x86_64-baseos-rpms’:
4:

  • Status code: 404 for https://uk1-smartproxy.--------.com/pulp/content/Default_Organization/Library/Dev/content/dist/rhel9/9/x86_64/baseos/os/repodata/repomd.xml (IP: xxxxxxxx)
    5:
    Error: Failed to download metadata for repo ‘rhel-9-for-x86_64-baseos-rpms’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    6:
    Package action failed, exiting…
    7:
    Exit status: 1