Repo sync fails on Red Hat Satellite 6.x with error: not found for repositoryversion
Issue
-
If you are trying to synchronize a repository from Satellite, this operation can fail with following error and end in error state:
HTTP status code: 404 Response headers: {"Date"=>"Fri, 10 Mar 2023 02:40:18 GMT", "Server"=>"gunicorn", "Content Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, PUT, PATCH, DELETE, HEAD, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"23", "X- Content-Type-Options"=>"nosniff", "Referrer- Policy"=>"same-origin", "Correlation-ID"=>"f3fc6ce8-c111-40c7-83e9-8e9e22f8679c", "Access-Control-Expose- Headers"=>"Correlation-ID", "Via"=>"1.1 example.corp"} Response body: {"detail":"Not found."}undefined method `repository_href' for nil:NilClassError message: the server returns an error HTTP status code: 400 Response headers: {"Date"=>"Fri, 10 Mar 2023 02:40:19 GMT", "Server"=>"gunicorn", "Content- Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, POST, HEAD, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"62", "X-Content-Type- Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Correlation-ID"=>"f3fc6ce8-c111-40c7-83e9-8 e9e22f8679c", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 example.corp", "Connection"=>"close"} Response body: {"publication":["Invalid hyperlink - Object does not exist."]}Error message: the server returns an error HTTP status code: 400 Response headers: {"Date"=>"Fri, 10 Mar 2023 02:40:19 GMT", "Server"=>"gunicorn", "Content- Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, POST, HEAD, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"123", "X-Content-Type- Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Correlation-ID"=>"f3fc6ce8-c111-40c7-83e9-8 e9e22f8679c", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 example.corp", "Connection"=>"close"} Response body: ["URI /pulp/api/v3/repositories/rpm/rpm/d6273db5-e18d-4c7e-b5d5-222df623bdeb/versions/9/ not found for repositoryversion."] -
Publishing content view failing with this error :
Error message: the server returns an error HTTP status code: 400 Response headers: {"Date"=>"Wed, 25 Oct 2023 00:04:18 GMT", "Server"=>"gunicorn", "Content- Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, HEAD, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"123", "X-Content-Type-Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Correlation-ID"=>"3dd9757f-d729-4435-9cae-3d06c6440d14", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 satellite.example.com", "Connection"=>"close"} Response body: ["URI /pulp/api/v3/repositories/rpm/rpm/4fed571a-3323-47f4-8a68-123456/versions/1/ not found for repositoryversion."]
Environment
Red Hat Satellite 6.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.