Curator Reindex Failed

(Po Lo Chang) #1

Hi Everyone,

I wanted to reindex my daily indices to monthly with Curator.

But i encountered a error like this :

2019-02-13 10:12:37,083 ERROR Failed to complete action: reindex. <class 'curator.exceptions.FailedExecution'>: Exception encountered. Rerun with loglevel DEBUG and/or check Elasticsearch logs for more information. Exception: Unable to obtain task information for task_id "cMCmxcrHSzKcVBZta0pXnw:388736123". Exception TransportError(404, 'resource_not_found_exception', 'no such index')

I use GET _tasks/task_id to figure out what happen.
I think this error happened due to reindex already finish but curator stil get task status,but task status has gone like below:

{
  "error": {
    "root_cause": [
      {
        "type": "index_not_found_exception",
        "reason": "no such index",
        "index_uuid": "_na_",
        "resource.type": "index_expression",
        "resource.id": ".tasks",
        "index": ".tasks"
      }
    ],
    "type": "resource_not_found_exception",
    "reason": "task [cMCmxcrHSzKcVBZta0pXnw:388736123] isn't running and hasn't stored its results",
    "caused_by": {
      "type": "index_not_found_exception",
      "reason": "no such index",
      "index_uuid": "_na_",
      "resource.type": "index_expression",
      "resource.id": ".tasks",
      "index": ".tasks"
    }
  },
  "status": 404
}

How could I fix this problem?

Here action.yml

---
# Remember, leave a key empty if there is no value.  None will be a string,
# not a Python "NoneType"
#
# Also remember that all examples have 'disable_action' set to True.  If you
# want to use this action as a template, be sure to set this to False after
# copying it.
actions:
  1:
    description: >-
      'Reindex all daily logstash indices from March 2017 into logstash-2017.03'
    action: reindex
    options:
      disable_action: False
      ignore_empty_list: True
      max_wait: -1
      request_body:
        source:
          index: mobile-nginx-2017.12.*
        dest:
          index: mobile-nginx-2017.12
    filters:
    - filtertype: none

Thank for help.

P.S.:
Elasticsearch version : 6.4.1
Curator : 5.6

(system) closed #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.