I searched for tasks that are not stopped, and I have one old repo sync
which is paused / error. But I can't do anything with it from Foreman, as
the task just gives me a page with the following on it when I select it:
Warning!
387: unexpected token at
'{"exception":null,"task_type":"pulp.server.managers.repo.sync.sync","_href":"/pulp/api/v2/tasks/5d579202-bde1-414b-b7f6-ae0ce85ce132/","task_id":"5d579202-bde1-414b-b7f6-ae0ce85ce132","tags":["pulp:repository:Default_Organization-KatelloAgent-EL6","pulp:action:sync"],"finish_time":"2016-04-11T14:45:20Z","ns":"task_status","start_time":"2016-04-11T14:45:20Z","traceback":"Traceback
(most recent call last):\n File
\"/usr/lib/python2.6/site-packages/celery/app/trace.py\", line 240, in
trace_task\n R = retval = fun(*args, **kwargs)\n File
\"/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py\", line
328, in call\n return super(Task, self).call(*args, **kwargs)\n
File \"/usr/lib/python2.6/site-packages/celery/app/trace.py\", line 437,
in protected_call\n return self.run(*args, **kwargs)\n File
\"/usr/lib/python2.6/site-packages/pulp/server/managers/repo/sync.py\",
line 114, in sync\n raise PulpExecutionException(('Importer indicated a
failed response'))\nPulpExecutionException: Importer indicated a failed
response\n","spawned_tasks":[],"progress_report":{"yum_importer":{"content":{"size_total":0,"items_left":0,"items_total":0,"state":"NOT_STARTED","size_left":0,"details":{"rpm_total":0,"rpm_done":0,"drpm_total":0,"drpm_done":0},"error_details":[]},"comps":{"state":"NOT_STARTED"},"distribution":{"items_total":0,"state":"NOT_STARTED","error_details":[],"items_left":0},"errata":{"state":"NOT_STARTED"},"metadata":{"state":"FAILED","error":"A
connection error
occurred"}}},"queue":"reserved_resource_worker-3@katello_server.dq","state":"error","worker_name":"reserved_resource_worker-3@katello_server","result":null,"error":{"code":"PLP0000","data":{},"description":"Importer
indicated a failed
response","sub_errors":[]},"_id":{"$oid":"570bb880334b5fbc298d12e1"},"id":"570bb880388e58edd169afdb"}],"poll_attempts":{"total":1,"failed":0}}}'
What ruby goodness can I run to deal with it? Cheers.