Using Red Hat Satellite 6.2.8, I have an issue currently where I created a 
Product and then added 2 repositories through Repo Discovery.  When I went 
to sync them the sync's failed with errors, presumably because the 
repositories themselves where not completed created.
  I see the following error on the sync tasks:

Required lock is already taken by other running tasks.
> Please inspect their state, fix their errors and resume them.
> Required lock: read
> Conflicts with tasks:
> - 
> https://rhs1.example.com/foreman_tasks/tasks/2a68a7db-4f68-49ac-802e-79e5c6744113


 Required lock is already taken by other running tasks.
> Please inspect their state, fix their errors and resume them.
> Required lock: read
> Conflicts with tasks:
> - 
> https://rhs1.example.com/foreman_tasks/tasks/99bdfefa-a82d-46f4-ac7c-7f0967007c18


If I look at that task it is in a paused state and I cannot cancel it and 
trying to resume it just goes back to paused state:

> foreman=# select * FROM foreman_tasks_tasks where 
> id='2a68a7db-4f68-49ac-802e-79e5c6744113';
>                   id                  |              type               | 
>                label                 |     started_at      | ended_at | 
> state  | result |             external_id              | parent_task_id |   
>        start_at          | start_before 
>
> --------------------------------------+---------------------------------+--------------------------------------+---------------------+----------+--------+--------+--------------------------------------+----------------+----------------------------+--------------
>  2a68a7db-4f68-49ac-802e-79e5c6744113 | ForemanTasks::Task::DynflowTask | 
> Actions::Katello::Repository::Create | 2017-03-15 19:49:50 |          | 
> paused | error  | dbd15068-0539-4ca1-a7ca-08a74ed81444 |                | 
> 2017-03-15 19:49:50.758137 | 
> (1 row)



foreman=# select * FROM foreman_tasks_tasks where 
> id='99bdfefa-a82d-46f4-ac7c-7f0967007c18';
>                   id                  |              type               | 
>                label                 |     started_at      | ended_at | 
> state  | result |             external_id              | parent_task_id |   
>       start_at          | start_before 
>
> --------------------------------------+---------------------------------+--------------------------------------+---------------------+----------+--------+--------+--------------------------------------+----------------+---------------------------+--------------
>  99bdfefa-a82d-46f4-ac7c-7f0967007c18 | ForemanTasks::Task::DynflowTask | 
> Actions::Katello::Repository::Create | 2017-03-15 19:48:32 |          | 
> paused | error  | 3d7f7435-61dc-4c35-bb12-1cae95a703cb |                | 
> 2017-03-15 19:48:32.83793 | 
> (1 row)


In the Web UI the Error for the Create repository tasks are as follows: 
For Id: 2a68a7db-4f68-49ac-802e-79e5c6744113

> Runtime Error RESTEASY001185: Could not find resource for relative : 
> /products//content/1489607391328 of full path: 
> https://localhost:8443/candlepin/products//content/1489607391328?enabled=true 
> at org.jboss.resteasy.core.registry.PathParamSegment.matchPattern:209


For Id: 99bdfefa-a82d-46f4-ac7c-7f0967007c18

>  Runtime Error RESTEASY001185: Could not find resource for relative : 
> /products//content/1489607313455 of full path: 
> https://localhost:8443/candlepin/products//content/1489607313455?enabled=true 
> at org.jboss.resteasy.core.registry.PathParamSegment.matchPattern:209


I was looking in the candlepin database for the product content 
numbers 1489607391328 and 1489607313455 but could not find them.  The 
product appears in the cp_product table with id 1489607052722 but a 
select * from cp_product_content where product_id='1489607052722'; yields 
no rows.

I cannot resume the tasks, cancel them, or delete the repositories or 
product (at least not from the Web UI).

Anyone have suggestions as to what I might do or what else to look at in 
order to either fully create the repositories or remove them?

thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to