Problem:
After trying to publish repository to content view and i have an error
The repository’s publication is missing. Please run a ‘complete sync’ on Ubuntu22.The repository’s publication is missing. Please run a ‘complete sync’ on main.The repository’s publication is missing. Please run a ‘complete sync’ on updates.The repository’s publication is missing. Please run a ‘complete sync’ on security.The repository’s publication is missing. Please run a ‘complete sync’ on backports.
I have tried to use foreman-rake katello:regenerate_repo_metadata and it’s regenerate metadate for all repos excdule ubuntu 22. And i cant to update ubuntu22 repos from UI (for example Select Action > Sync Now or delete repo) because its replies error with task where i have an publish error with ubuntu 22
Required lock is already taken by other running tasks. Please inspect their state, fix their errors and resume them. Conflicts with tasks: - here task with error with publication ubuntu22.
So any tips for resolve? Or can i completele remove this repos and just add it one more time
Foreman and Proxy versions:
Foreman 3.16.0-develop
katello 4.18.0.pre.master
There is likely some previous action that failed; the missing publication can be a symptom of that. Could you look through Dynflow and report any errors besides the missing publication ones? Also, please let us know why you attempted to regenerate the metadata, it might help us understand if something went wrong earlier.
I’m now facing the same issue with Foreman 3.16 / Katello 4.18. Except skipping the error tasks in Dynaflow is only a temporary solution until you try to publish a new version.
I’ve removed the repoitories from content products, synced my Smart Proxies, then readded the repositories and still have the same missing publication error.
Just about ready dump what I have, and sart fresh with Katello 4.17, at least it was working.
I dont remember clearly how i fixed this, but i remember that i delete all problem repos using hammer cli. And via hummer i found that i really have some bugged repo (in gui i have 1 repo with error but hammer shows that i have like 2-3 repo) so i just delete all simmilar repos and readd it with gui
For a sync task that failed (or CV publish task), can you look at each of the individual actions in the Dynflow console? It’s possible that the ‘publication missing’ part is just the last error that is reported. Repositories aren’t connected together in the backend, so deleting a repo and recreating it shouldn’t cause the same error unless there is actually some issue syncing the upstream repo in question.
In the orchestration chain in the Dynflow UI, I’d look at the first red (failure) or yellow (warning) task on the Run tab from top to bottom. The output should have the error. If it just says there’s a Pulp 3 error, you can find a better stack trace in /var/log/messages.
Please also post what content type the repo is that is failing to sync, along with any backtraces from Pulp in /var/log/messages, if any. This applies to everyone hitting the issue.
I grepped for pulp in /var/log/messages, see attached. I tried regenerating the repo data, this did not help. Let me know what else I can provide. For now I moved back to 3.15.
I generally would recommend not having dependency solving on unless you know you 100% need it - it doesn’t always work anyway and significantly slows down publishes. But, I digress
Unless it’s 100% necessary - are folks hitting this issue able to test publishing without dependency solving on?
I can’t force cancel the paused publishing task from the previous hummer run, so I modified another CV to disable dependency solving and CV was published successfully, so you hunch seems to be correct.
In general, this option is necessary, especially when you work with RedHat content. RedHat publishes packages that depend on each other in different channels without any transactional integrity, so sync might get newer version of a package in one channel and not get updated version of a related package in another, making a CV broken as a result.
I have the same issue:
The repository’s publication is missing. Please run a ‘complete sync’ on Rocky 9 BaseOS x86_64. (RuntimeError)
756785d8 | /usr/share/gems/gems/katello-4.18.0/app/services/katello/pulp3/repository.rb:563:in fail_missing_publication' 756785d8 | /usr/share/gems/gems/katello-4.18.0/app/services/katello/pulp3/repository.rb:284:in create_distribution’
756785d8 | /usr/share/gems/gems/katello-4.18.0/app/services/katello/pulp3/repository.rb:267:in refresh_distributions' 756785d8 | /usr/share/gems/gems/katello-4.18.0/app/lib/actions/pulp3/repository/refresh_distribution.rb:26:in invoke_external_task’
I have tried both a complete sync and republish repository metadata, but creating a new Content View version still fails with the same error. Please advise.
The workaround for now is to go into Dynflow, skip failing tasks and resume until the entire publish finishes, and then delete the resulting content view version. Then, disable dependency solving (if you can) and publish again.
Good feedback - this is not supposed to happen if BaseOS, AppStream, etc are synced together. Is it a particular Enterprise Linux (EL) flavor causing this trouble?
RedHat channels proper. And this happens even in one channel as well if dependency solving is not enabled. For example, in recent memory (on satellite though, so it’s a bit older version) gdk-pixbuf2-modules got synced (rhel-8-for-x86_64-baseos-rpms), but gdk-pixbuf2 didn’t. My colleague opened a RedHat case for that, I can find the number if you have access.