Problem:
After stopping/cancelling repository sync im no longer able to publish/promote content views with those repos as that results in the error message:
The repository's publication is missing. Please run a 'complete sync' on Ubuntu 20.04 security.The repository's publication is missing. Please run a 'complete sync' on Ubuntu 20.04 updates.
Additionally i have a “Remove orphans” job also errored out, i suspect it is related as it showed up at the same time.
Error message: the server returns an error
HTTP status code: 400
Response headers: {"date"=>"Mon, 10 Feb 2025 14:07:00 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"=>"4b449c3a505b42ebbbfb9a5c34079aad", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 puppet.ncop.net", "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."]
I have tried running an advanced sync->Complete sync, but this did not help.
When googling the error i come across this support article for Sattelite, but we do not have said rake task… (Note the error message on satellite 6.11 is the same as mine)
Getting ‘{“publication”:[“Invalid hyperlink - Object does not exist.”]}’ error when publishing a content-view on connected Satellite or when importing contents to a disconnected Satellite - Red Hat Customer Portal
Expected outcome:
Repos shouldnt be broken when cancelling sync. I should be able to repair this somehow.
Content views should not be blocked from publish/promote.
Foreman and Proxy versions:
3.12.1, Katello 4.14.1
Foreman and Proxy plugin versions:
Distribution and version:
Rhel 9.5
Other relevant data:
The reason the sync was stopped was due to upgrading from 3.10 and because repo sync took a long time for the ubuntu repos on 3.10 (10-14 hours) I manually stopped the two remaining jobs.
On the bright side, after upgrading from 3.10 to 3.11 (and EL from 8 to 9) and then 3.12.1 i immediately saw an improvement as now its down to around 30 minutes.