Problem:
Unable to download packages / NGINX errors.
Expected outcome:
should be able to download packages
Pulpcore version:
versions:
- component: core
package: pulpcore
version: 3.22.4 - component: rpm
package: pulp-rpm
version: 3.19.4 - component: container
package: pulp-container
version: 2.14.5
Pulp plugins installed and their versions:
Operating system - distribution and version:
RHEL-7
** LOGS **
raise Exception(_(“Expected path ‘{}’ is not found”).format(path))
Exception: Expected path ‘/var/lib/pulp/media/artifact/ea/103ff86b8ff2d7de92b1042fba36ddca4c13e3b712e63d1980115bc91dda5b’ is not found
127.0.0.1 [16/May/2023:23:35:56 +0000] “GET /pulp/content/ol-7/x86_64/ol7_latest/20230517/Packages/b/bind-utils-9.11.4-16.P2.el7_8.6.x86_64.rpm HTTP/1.0” 500 225 “https://localhost/pulp/content/ol-7/x86_64/ol7_latest/20230517/Packages/b/” “Wget/1.14 (linux-gnu)”
[2023-05-16 23:35:56 +0000] [12245] [ERROR] Error handling request
Traceback (most recent call last):
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/aiohttp/web_protocol.py”, line 433, in _handle_request
resp = await request_handler(request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/aiohttp/web_app.py”, line 504, in _handle
resp = await handler(request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/aiohttp/web_middlewares.py”, line 117, in impl
return await handler(request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/content/authentication.py”, line 41, in authenticate
return await handler(request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/cache/cache.py”, line 339, in cached_function
response = await self.make_entry(
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/cache/cache.py”, line 378, in make_entry
response = await handler(*args, **kwargs)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/content/handler.py”, line 243, in stream_content
return await self._match_and_stream(path, request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/content/handler.py”, line 573, in _match_and_stream
return await self._serve_content_artifact(ca, headers, request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/content/handler.py”, line 847, in _serve_content_artifact
raise Exception(_(“Expected path ‘{}’ is not found”).format(path))
Exception: Expected path ‘/var/lib/pulp/media/artifact/00/01cdc86487e0b94cbd56449c7d270a5b4710b29071ec80f9f73b47c9f6a42e’ is not found
127.0.0.1 [16/May/2023:23:35:56 +0000] “GET /pulp/content/ol-7/x86_64/ol7_latest/20230517/Packages/b/bind-utils-9.11.4-26.P2.el7.x86_64.rpm HTTP/1.0” 500 225 “https://localhost/pulp/content/ol-7/x86_64/ol7_latest/20230517/Packages/b/” “Wget/1.14 (linux-gnu)”
[2023-05-16 23:35:56 +0000] [12254] [ERROR] Error handling request
Traceback (most recent call last):
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/aiohttp/web_protocol.py”, line 433, in _handle_request
resp = await request_handler(request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/aiohttp/web_app.py”, line 504, in _handle
resp = await handler(request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/aiohttp/web_middlewares.py”, line 117, in impl
return await handler(request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/content/authentication.py”, line 41, in authenticate
return await handler(request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/cache/cache.py”, line 339, in cached_function
response = await self.make_entry(
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/cache/cache.py”, line 378, in make_entry
response = await handler(*args, **kwargs)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/content/handler.py”, line 243, in stream_content
return await self._match_and_stream(path, request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/content/handler.py”, line 573, in _match_and_stream
return await self._serve_content_artifact(ca, headers, request)
File “/usr/local/lib/pulp/lib64/python3.8/site-packages/pulpcore/content/handler.py”, line 847, in _serve_content_artifact
raise Exception(_(“Expected path ‘{}’ is not found”).format(path))
Exception: Expected path ‘/var/lib/pulp/media/artifact/e5/70eb0b7ad51056d77381a99be5576a17fa743fc8d2baf5c5fb8494186c98c1’ is not found
127.0.0.1 [16/May/2023:23:35:56 +0000] “GET /pulp/content/ol-7/x86_64/ol7_latest/20230517/Packages/b/bind-utils-9.11.4-26.P2.el7_9.10.x86_64.rpm HTTP/1.0” 500 225 “https://localhost/pulp/content/ol-7/x86_64/ol7_latest/20230517/Packages/b/” “Wget/1.14 (linux-gnu)”
[2023-05-16 23:35:56 +0000] [12254] [ERROR] Error handling request
Traceback (most recent call last):
The above error happens after a fresh repo is created and synced
commands used to create and sync the repo is as below
pulp rpm remote create --name test_ol_7 --url https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/ --policy immediate --tls-validation false
pulp rpm repository create --name test_ol_7 --remote test_ol_7 --gpgcheck 0 --autopublish --repo-gpgcheck 0
pulp rpm distribution create --name test_ol_7 --base-path test/ol7/live --repository test_ol_7