Error delete repo

Problem:
something happened to the repository, I’m trying to delete it, I see this error

Required lock is already taken by other running tasks.
Please inspect their state, fix their errors and resume them.

Conflicts with tasks:
- https://foreman.dom.ru/foreman_tasks/tasks/6643d16a-f832-4943-b36b-b8e85acb79dc

I follow this link to see the error, and there is also a task with an error undefined method `repair’ for #Katello::Pulp3::Repository::Apt:0x0000000012e927f0

how do I delete a problematic repository?
Expected outcome:

Foreman and Proxy versions:
2.4
Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

Hey @Overlord

What version of Katello?

Is this any use:

  • katello-4.0.1-1.el7.noarch
  • katello-agent-3.5.4-1.el7sat.noarch

Thanks

  • I have recreated this repository, there are no errors during synchronization, but this has been hanging for 2 hours

and error “A file failed validation due to checksum.”

Looks like most actions got skipped. Was it a custom repo that you were trying to sync?

It was the microsoft repository for ubuntu that Foreman eventually killed. It’s good that there was a backup , it was not possible to stop this task and delete the repository