Capsule synchronization is failing with the error "Could not lookup a publication_href for repo XXXX" for custom repositories.

Solution Verified - Updated -


  • 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 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('') (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 ]
repository_id: x
smart_proxy_id: y
25: Actions::Pulp3::CapsuleContent::RefreshDistribution (skipped) [ 1.32s / 0.38s ] 
Could not lookup a publication_href for repo x


  • 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content