# Rollup job unable to start

**URL:** <https://discuss.elastic.co/t/rollup-job-unable-to-start/254266>\
**Category:** Elasticsearch\
**Tags:** rollups\
**Created:** [November 4, 2020, 12:08pm UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266 "2020-11-04T12:08:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaijun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaijun/32/78396_2.png) [@kaijun](https://discuss.elastic.co/u/kaijun)\
**Post date:** [November 4, 2020, 12:08pm UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266/1 "2020-11-04T12:08:01Z")

</div>

I've created a new rollup job using the `PUT _rollup/job/<job_id>` api. I received an acknowledged response and the new rollup index is created. However, when I try to start the job using `POST _rollup/job/<job_id>/_start`, there is a resource not found exception and the reason being "Task for Rollup Job [\<job\_id\>] not found".

When I run `GET _rollup/job/*`, the job\_id I just created does not appear in the response (thus I am unable to start it). Has anyone faced this issue before and how do I solve it? I think this is similar to the issue discussed in [https://github.com/elastic/elasticsearch/issues/45247](https://github.com/elastic/elasticsearch/issues/45247) but the fix doesn't seem to solve my problem.

PS: I am using elasticsearch version 7.7

Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 5, 2020, 3:34am UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266/2 "2020-11-05T03:34:42Z")

</div>

Can you share a reproduction of the job? It should make it easier to replicate your problem 🙂

---

<div class="post-metadata">

**Author:** ![kaijun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaijun/32/78396_2.png) [@kaijun](https://discuss.elastic.co/u/kaijun)\
**Post date:** [November 5, 2020, 9:09am UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266/3 "2020-11-05T09:09:53Z")

</div>

Sure, so I have a few indices which store historical data. Those indices name start with datalog.gl\_\* (for eg: datalog.gl\_sep20). I then create the rollup job through this:

```auto
curl -X PUT "localhost:9200/_rollup/job/compress?pretty" -H 'Content-Type: application/json' -d'
{
  "index_pattern": "datalog.gl_*",
  "rollup_index": "datalog_rollup",
  "cron": "0 */60 * * * ?",
  "page_size": 1000,
  "groups": {
    "date_histogram": {
      "field": "time",
      "fixed_interval": "24h"
    },
    "terms": {
      "fields": ["domain"]
    }
  }
}
'

```

However when I try to start the rollup job through `curl -X POST "localhost:9200/_rollup/job/compress/_start?pretty"`, there is an error saying resource not found task for rollup job not found.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 5, 2020, 9:43pm UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266/4 "2020-11-05T21:43:57Z")

</div>

What response do you get from Elasticsearch for that curl?  
Can you please post the full command and response when you request the job to start?  
What is the output from `GET /_rollup/job`

---

<div class="post-metadata">

**Author:** ![kaijun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaijun/32/78396_2.png) [@kaijun](https://discuss.elastic.co/u/kaijun)\
**Post date:** [November 5, 2020, 10:15pm UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266/5 "2020-11-05T22:15:10Z")

</div>

When I do `url -X POST "localhost:9200/_rollup/job/compress/_start?pretty"`, this is the response:

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "resource_not_found_exception",
        "reason" : "Task for Rollup Job [compress] not found"
      }
    ],
    "type" : "resource_not_found_exception",
    "reason" : "Task for Rollup Job [compress] not found"
  },
  "status" : 404
}

```

The output for `curl -XGET "http://localhost:9200/_rollup/job/*"` is `{"jobs":[]}`

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 5, 2020, 10:16pm UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266/6 "2020-11-05T22:16:27Z")

</div>

Ok, so what's the response from the curl to create the job, cause it seems that is not working.

---

<div class="post-metadata">

**Author:** ![kaijun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaijun/32/78396_2.png) [@kaijun](https://discuss.elastic.co/u/kaijun)\
**Post date:** [November 5, 2020, 10:29pm UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266/7 "2020-11-05T22:29:57Z")

</div>

It is acknowledged: true

---

<div class="post-metadata">

**Author:** ![kaijun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaijun/32/78396_2.png) [@kaijun](https://discuss.elastic.co/u/kaijun)\
**Post date:** [November 6, 2020, 8:23am UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266/8 "2020-11-06T08:23:29Z")

</div>

Basically it is able to create the job successfully, but not starting it.

---

<div class="post-metadata">

**Author:** ![kaijun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaijun/32/78396_2.png) [@kaijun](https://discuss.elastic.co/u/kaijun)\
**Post date:** [November 10, 2020, 8:34pm UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266/9 "2020-11-10T20:34:57Z")

</div>

Hi @warkolm just as a follow up to what do you think of this problem. It seems really similar to the issue raised in the github (I included the link on my first thread)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 10, 2020, 10:46pm UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266/10 "2020-11-10T22:46:29Z")

</div>

I'm not sure myself, I have asked a few other people and hopefully they will jump in.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 8, 2020, 10:46pm UTC](https://discuss.elastic.co/t/rollup-job-unable-to-start/254266/11 "2020-12-08T22:46:36Z")

</div>

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