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

Solution Verified - Updated -

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)
    

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.

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