I can't do anything with the repository

Problem:
Hi. the repository cannot be deleted, a message appears stating that there are tasks that overlap. This is true, synchronization has been hanging with an error for 4 months now and it is impossible not to cancel it and continue. how can I forcibly delete the repository or forcibly remove the synchronization task? I attach screenshots below.

Text error:

A file failed validation due to checksum.Error message: the server returns an error
HTTP status code: 409
Response headers: {"date"=>"Tue, 29 Mar 2022 06:54:44 GMT", "server"=>"gunicorn/20.0.4", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"GET, PATCH, DELETE, HEAD, OPTIONS", "x-frame-options"=>"SAMEORIGIN", "content-length"=>"558", "correlation-id"=>"b4afe6f0ae4a48689fb34d20d2d3a2d8", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 foreman.local", "connection"=>"close"}
Response body: {"pulp_href":"/pulp/api/v3/tasks/212e457d-62fb-4daa-91a6-c17b27325361/","pulp_created":"2022-03-29T06:54:37.173405Z","state":"completed","name":"pulpcore.app.tasks.base.general_update","logging_cid":"1fbd680b746b4e058705172f2c2e3d56","started_at":"2022-03-29T06:54:37.287379Z","finished_at":"2022-03-29T06:54:37.482914Z","error":null,"worker":"/pulp/api/v3/workers/533c20a2-57bf-4298-8919-2106c8aceca1/","parent_task":null,"child_tasks":[],"task_group":null,"progress_reports":[],"created_resources":[],"reserved_resources_record":["/api/v3/distributions/"]}


Expected outcome:

Foreman and Proxy versions:
2.4
Foreman and Proxy plugin versions:
2.4
Distribution and version:
pulp v3
Other relevant data:

Hi,

You could try deleting the task manually within the rails console.

  1. Open the console with foreman-rake console
  2. Type, ForemanTasks::Task.find(TASK_ID).
    • Make sure TASK_ID is wrapped in quotes, e.g. “041d9bb3-e592-40fe-a56e-52f1b6c70919”.
  3. Make sure that’s the right task, then ForemanTasks::Task.find(TASK_ID).destroy

You can get TASK_ID from the URL for the task, “foreman_tasks/task/TASK_ID”.

Also @Overlord, if you still can, would you mind sharing a screenshot of the dynflow task details? It would be good for us to know which step failed so we can try and reproduce it.

hi, screenshots below


Error:

PulpcoreClient::ApiError

Error message: the server returns an error HTTP status code: 409 Response headers: {"date"=>"Tue, 29 Mar 2022 06:54:44 GMT", "server"=>"gunicorn/20.0.4", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"GET, PATCH, DELETE, HEAD, OPTIONS", "x-frame-options"=>"SAMEORIGIN", "content-length"=>"558", "correlation-id"=>"b4afe6f0ae4a48689fb34d20d2d3a2d8", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 foreman.local", "connection"=>"close"} Response body: {"pulp_href":"/pulp/api/v3/tasks/212e457d-62fb-4daa-91a6-c17b27325361/","pulp_created":"2022-03-29T06:54:37.173405Z","state":"completed","name":"pulpcore.app.tasks.base.general_update","logging_cid":"1fbd680b746b4e058705172f2c2e3d56","started_at":"2022-03-29T06:54:37.287379Z","finished_at":"2022-03-29T06:54:37.482914Z","error":null,"worker":"/pulp/api/v3/workers/533c20a2-57bf-4298-8919-2106c8aceca1/","parent_task":null,"child_tasks":[],"task_group":null,"progress_reports":[],"created_resources":[],"reserved_resources_record":["/api/v3/distributions/"]}

Please tell me how you can run foreman-rake?

thank you, everything worked out