Capsule synchronization is failing with the error "Could not lookup a publication_href for repo XXXX" for custom repositories.
Issue
- Getting an error Could not lookup a publication_href for repo XXXX while syncing the capsule server for
the custom repository. -
Issues with the
Custom
repository were observed while syncing the capsule server.2022-11-14T10:43:51 [I|app|964a3e94] Started POST "/katello/api/capsules/14/content/sync" for 1.6.3.5 at 2022-11-14 10:43:51 -0500 2022-11-14T10:43:51 [I|app|964a3e94] Processing by Katello::Api::V2::CapsuleContentController#sync as JSON 2022-11-14T10:43:51 [I|app|964a3e94] Parameters: {"api_version"=>"v2", "id"=>"14", "capsule_content"=>{}} 2022-11-14T11:15:30 [E|bac|964a3e94] 404, message='Not Found', url=URL('https://satellite.example.com/pulp/content/My_Org/Library/custom/EPEL/EPEL_7/Packages/l/liblxi-1.17-1.el7.src.rpm') (Katello::Errors::Pulp3Error) 2022-11-14T12:03:34 [E|bac|964a3e94] Could not lookup a publication_href for repo 3191 (RuntimeError)
- Satellite Capsule versions 6.11.2+ still getting the capsule sync error:
21: Actions::Pulp3::CapsuleContent::Sync (skipped) [ 360.55s / 7.24s ]
:
Input:
---
repository_id: x
smart_proxy_id: y
:
25: Actions::Pulp3::CapsuleContent::RefreshDistribution (skipped) [ 1.32s / 0.38s ]
:
Error:
RuntimeError
Could not lookup a publication_href for repo x
Environment
- Red Hat Satellite 6.
- Red Hat Capsule 6.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.