The client host fails to download packages with yum/dnf command and gets an error with 'Status code: 500'.
Issue
- The client host gets the following when installs packages:
# dnf update --security
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) 157 kB/s | 4.1 kB 00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 181 kB/s | 4.5 kB 00:00
Dependencies resolved.
============================================================================================================================================
Package Architecture Version Repository Size
============================================================================================================================================
Installing:
kernel x86_64 5.14.0-503.40.1.el9_5 rhel-9-for-x86_64-baseos-rpms 2.0 M
Upgrading:
bpftool x86_64 7.4.0-503.40.1.el9_5 rhel-9-for-x86_64-baseos-rpms 2.8 M
emacs-filesystem noarch 1:27.2-11.el9_5.2 rhel-9-for-x86_64-appstream-rpms 8.7 k
glibc x86_64 2.34-125.el9_5.8 rhel-9-for-x86_64-baseos-rpms 2.0 M
glibc-common x86_64 2.34-125.el9_5.8 rhel-9-for-x86_64-baseos-rpms 298 k
glibc-gconv-extra x86_64 2.34-125.el9_5.8 rhel-9-for-x86_64-baseos-rpms 1.7 M
glibc-langpack-en x86_64 2.34-125.el9_5.8 rhel-9-for-x86_64-baseos-rpms 652 k
kernel-tools x86_64 5.14.0-503.40.1.el9_5 rhel-9-for-x86_64-baseos-rpms 2.3 M
kernel-tools-libs x86_64 5.14.0-503.40.1.el9_5 rhel-9-for-x86_64-baseos-rpms 2.1 M
libxslt x86_64 1.1.34-9.el9_5.3 rhel-9-for-x86_64-appstream-rpms 241 k
python3-perf x86_64 5.14.0-503.40.1.el9_5 rhel-9-for-x86_64-baseos-rpms 2.1 M
Installing dependencies:
kernel-core x86_64 5.14.0-503.40.1.el9_5 rhel-9-for-x86_64-baseos-rpms 18 M
kernel-modules x86_64 5.14.0-503.40.1.el9_5 rhel-9-for-x86_64-baseos-rpms 37 M
kernel-modules-core x86_64 5.14.0-503.40.1.el9_5 rhel-9-for-x86_64-baseos-rpms 31 M
Removing:
kernel x86_64 5.14.0-284.11.1.el9_2 @anaconda 0
kernel-core x86_64 5.14.0-284.11.1.el9_2 @anaconda 56 M
kernel-modules x86_64 5.14.0-284.11.1.el9_2 @anaconda 33 M
kernel-modules-core x86_64 5.14.0-284.11.1.el9_2 @anaconda 31 M
Transaction Summary
============================================================================================================================================
Install 4 Packages
Upgrade 10 Packages
Remove 4 Packages
Total download size: 101 M
Is this ok [y/N]: y
Downloading Packages:
[MIRROR] kernel-5.14.0-503.40.1.el9_5.x86_64.rpm: Status code: 500 for https://<capsule.fqdn>/pulp/content/<Org_name>/<life_cycle>/<CV>/content/dist/rhel9/9/x86_64/baseos/os/Packages/k/kernel-5.14.0-503.40.1.el9_5.x86_64.rpm (IP: xx.xx.xx.xx)
[MIRROR] kernel-core-5.14.0-503.40.1.el9_5.x86_64.rpm: Status code: 500 for https://<capsule.fqdn>/pulp/content/<Org_name>/<life_cycle>/<CV>/content/dist/rhel9/9/x86_64/baseos/os/Packages/k/kernel-core-5.14.0-503.40.1.el9_5.x86_64.rpm (IP: xx.xx.xx.xx)
......
[FAILED] kernel-core-5.14.0-503.40.1.el9_5.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
(2-3/14): kernel-modules-5.14.0-503.40.1.el9_5.x86 17% [========- ] 3.5 MB/s | 18 MB 00:23 ETA
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Error downloading packages:
kernel-core-5.14.0-503.40.1.el9_5.x86_64: Cannot download, all mirrors were already tried without success
- The '/var/log/messages' also prints the following error log.
May 14 12:57:28 xxxxx pulpcore-content[3666]: [2025-05-14 04:57:28 +0000] [3666] [ERROR] Error handling request
May 14 12:57:28 xxxxx pulpcore-content[3666]: Traceback (most recent call last):
May 14 12:57:28 xxxxx pulpcore-content[3666]: File "/usr/lib64/python3.11/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request
May 14 12:57:28 xxxxx pulpcore-content[3666]: resp = await request_handler(request)
May 14 12:57:28 xxxxx pulpcore-content[3666]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 14 12:57:28 xxxxx pulpcore-content[3666]: File "/usr/lib64/python3.11/site-packages/aiohttp/web_app.py", line 567, in _handle
May 14 12:57:28 xxxxx pulpcore-content[3666]: return await handler(request)
May 14 12:57:28 xxxxx pulpcore-content[3666]: ^^^^^^^^^^^^^^^^^^^^^^
May 14 12:57:28 xxxxx pulpcore-content[3666]: File "/usr/lib64/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
May 14 12:57:28 xxxxx pulpcore-content[3666]: return await handler(request)
May 14 12:57:28 xxxxx pulpcore-content[3666]: ^^^^^^^^^^^^^^^^^^^^^^
May 14 12:57:28 xxxxx pulpcore-content[3666]: File "/usr/lib/python3.11/site-packages/pulpcore/content/authentication.py", line 48, in authenticate
May 14 12:57:28 xxxxx pulpcore-content[3666]: return await handler(request)
May 14 12:57:28 xxxxx pulpcore-content[3666]: ^^^^^^^^^^^^^^^^^^^^^^
May 14 12:57:28 xxxxx pulpcore-content[3666]: File "/usr/lib/python3.11/site-packages/pulpcore/content/instrumentation.py", line 230, in middleware
May 14 12:57:28 xxxxx pulpcore-content[3666]: resp = await handler(request)
May 14 12:57:28 xxxxx pulpcore-content[3666]: ^^^^^^^^^^^^^^^^^^^^^^
May 14 12:57:28 xxxxx pulpcore-content[3666]: File "/usr/lib/python3.11/site-packages/pulpcore/cache/cache.py", line 352, in cached_function
May 14 12:57:28 xxxxx pulpcore-content[3666]: response = await self.make_entry(
May 14 12:57:28 xxxxx pulpcore-content[3666]: ^^^^^^^^^^^^^^^^^^^^^^
May 14 12:57:28 xxxxx pulpcore-content[3666]: File "/usr/lib/python3.11/site-packages/pulpcore/cache/cache.py", line 395, in make_entry
May 14 12:57:28 xxxxx pulpcore-content[3666]: response = await handler(*args, **kwargs)
May 14 12:57:28 xxxxx pulpcore-content[3666]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 14 12:57:28 xxxxx pulpcore-content[3666]: File "/usr/lib/python3.11/site-packages/pulpcore/content/handler.py", line 264, in stream_content
May 14 12:57:28 xxxxx pulpcore-content[3666]: return await self._match_and_stream(path, request)
May 14 12:57:28 xxxxx pulpcore-content[3666]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 14 12:57:28 xxxxx pulpcore-content[3666]: File "/usr/lib/python3.11/site-packages/pulpcore/content/handler.py", line 662, in _match_and_stream
May 14 12:57:28 xxxxx pulpcore-content[3666]: return await self._serve_content_artifact(ca, headers, request)
May 14 12:57:28 xxxxx pulpcore-content[3666]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 14 12:57:28 xxxxx pulpcore-content[3666]: File "/usr/lib/python3.11/site-packages/pulpcore/content/handler.py", line 985, in _serve_content_artifact
May 14 12:57:28 xxxxx pulpcore-content[3666]: raise Exception(_("Expected path '{}' is not found").format(path))
May 14 12:57:28 xxxxx pulpcore-content[3666]: Exception: Expected path '/var/lib/pulp/media/artifact/xx/8a70e4aa82b29dfdcd023aff796e8bfdfb9b419001ba26569xxxxxxxx' is not found
May 14 12:57:28 xxxxx pulpcore-content[3666]: [14/May/2025:04:57:27 +0000] "GET /pulp/content/<Org_name>/<life_cycle>/<CV>/content/dist/rhel9/9/x86_64/appstream/os/repodata/repomd.xml HTTP/1.1" 500 247 "-" "libdnf (Red Hat Enterprise Linux 9.4; generic; Linux.x86_64)"
Environment
- Red Hat Enterprise Linux 9
- Red Hat Satellite 6.16
- Red Hat Capsule 6.16
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.