<div dir="ltr"><div><div>Probably my recommendation is not the best, but it works :D<br><br></div>When my sync run stays "stuck" I apply <a href="https://pulp.plan.io/issues/686">https://pulp.plan.io/issues/686</a> which is:<br><br><p><i>$ cat all.sh</i></p><i>


        </i><p><i>sudo service qpidd $1<br>sudo service pulp_celerybeat $1<br>sudo service pulp_resource_manager $1<br>sudo service pulp_workers $1<br>sudo service httpd $1</i></p><i>


        1. $ ./all.sh restart</i><br><br></div>Then if there are tasks waiting I cancel them and relaunch. If you are using CentOS7 I recommend to open a second terminal and launch <i>journalctl -xf</i> to see pulp behavior<br><br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 9, 2016 at 5:33 AM, Brian Bouterse <span dir="ltr"><<a href="mailto:bbouters@redhat.com" target="_blank">bbouters@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">After you reboot and restart all Pulp services I expect there to be 0<br>
messages on the 'resource_manager' queue. Can you show the queue depths<br>
of your broker in those situations for all queues? With Qpid you can do<br>
this with `qpid-stat -q` if I remember correctly. RabbitMQ has a similar<br>
command but I don't know it.<br>
<br>
Also for those "stuck" tasks that are not starting when you expect them<br>
too, can you see if they are "assigned" to a worker. This doesn't show<br>
up in pulp-admin output[0] of a task detail so instead use a command<br>
like this to show the task details by uuid.<br>
<br>
pulp-admin -vv tasks details --task-id a83b32c4-4cb1-439e-a373-91797d0b185a<br>
<br>
The -vv part shows the actual webserver response which will contain a<br>
line like:  "worker_name": "reserved_resource_worker-0@dev",<br>
<br>
This info would be helpful in resolving your issue.<br>
<br>
[0]: <a href="https://pulp.plan.io/issues/1832" rel="noreferrer" target="_blank">https://pulp.plan.io/issues/1832</a><br>
<br>
-Brian<br>
<span class=""><br>
On 04/08/2016 03:15 PM, Matthew Madey wrote:<br>
> When I checked on the state, the status was "not started". I think<br>
> that's why it remained stuck after reboots and bouncing the services.<br>
><br>
> On Fri, Apr 8, 2016 at 1:27 PM, Brian Bouterse <<a href="mailto:bbouters@redhat.com">bbouters@redhat.com</a><br>
</span><div><div class="h5">> <mailto:<a href="mailto:bbouters@redhat.com">bbouters@redhat.com</a>>> wrote:<br>
><br>
>     I'm not sure how you would get into this situations. When it occurs can<br>
>     you check which worker is assigned the work, and verify that that worker<br>
>     is still running?<br>
><br>
>     Upon starting a worker will move previous tasks it was handling that are<br>
>     still in the running state to cancelled. Also pulp_celerybeat monitors<br>
>     pulp workers to determine if died to move its tasks to a cancelled<br>
>     state. Both of these mechanisms would have to fail in order to have a<br>
>     task stay in the running state when its not running. Could it still be<br>
>     running?<br>
><br>
>     You indicate you rebooted the box and those tasks didn't go to<br>
>     cancelled. Is it possible they are on another box connected to your<br>
>     broker or when killing them it didn't respond to the signal you sent it?<br>
><br>
>     The 2.7.1 doesn't have any known defects like the ones your describing<br>
>     so sending more info to the list would be good.<br>
><br>
>     -Brian<br>
><br>
><br>
>     On 03/30/2016 05:58 PM, Matthew Madey wrote:<br>
>     > I have a job that mistakenly thinks it's still running..<br>
>     ><br>
>     > # pulp-admin -u admin -p ************ rpm repo sync run<br>
>     > --repo-id=rhel-x86_64-server-7-base-tools<br>
>     ><br>
>     +----------------------------------------------------------------------+<br>
>     >        Synchronizing Repository [rhel-x86_64-server-7-base-tools]<br>
>     ><br>
>     +----------------------------------------------------------------------+<br>
>     ><br>
>     > A sync task is already in progress for this repository. Its<br>
>     progress will be<br>
>     > tracked below.<br>
>     ><br>
>     > This command may be exited via ctrl+c without affecting the request.<br>
>     ><br>
>     > [/]<br>
>     > Waiting to begin...<br>
>     ><br>
>     ><br>
>     > I checked all running processes and there is no repo sync currently<br>
>     > running. I have even gone so far as to delete the repo and<br>
>     recreate it..<br>
>     > same issue. I have also tried running pulp-admin orphan remove --all,<br>
>     > which executes successfully, but does not fix the problem. I have also<br>
>     > tried rebooting the server, bouncing all pulp services.. still no joy.<br>
>     > I'm guessing there is a file somewhere that tracks pending tasks? How<br>
>     > can I clear this so I can successfully run the job again? I'm running<br>
>     > Pulp 2.7.1-1<br>
>     ><br>
>     ><br>
>     > _______________________________________________<br>
>     > Pulp-list mailing list<br>
</div></div>>     > <a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a> <mailto:<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>><br>
<span class="">>     > <a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
>     ><br>
><br>
>     _______________________________________________<br>
>     Pulp-list mailing list<br>
</span>>     <a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a> <mailto:<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>><br>
<div class="HOEnZb"><div class="h5">>     <a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
><br>
><br>
<br>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
</div></div></blockquote></div><br></div>