Orphan cleanup fails with error "The repository version cannot be deleted because it (or its publications) are currently being used to distribute content"
Issue
-
Orphan cleanup task for an external capsule server goes in to paused state and shows the following error:
Error message: the server returns an error HTTP status code: 400 Response headers: {"Date"=>"Sun, 23 Feb 2025 16:32:48 GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, DELETE, HEAD, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"174", "X-Content-Type-Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Cross-Origin-Opener-Policy"=>"same-origin", "Correlation-ID"=>"8dc61a45ce91457ead5065a5a7c83bc0", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 capsule.example.com", "Connection"=>"close"} Response body: ["The repository version cannot be deleted because it (or its publications) are currently being used to distribute content. Please update the necessary distributions first."] -
In some cases, the same problem is directly affecting the satellite server as well.
Environment
- Red Hat Satellite 6.16
- Red Hat Satellite Capsule 6.16
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.