# Curator 5.5 ERROR Singleton action failed due to empty index lis

**URL:** https://discuss.elastic.co/t/curator-5-5-error-singleton-action-failed-due-to-empty-index-lis/145883
**Category:** Elasticsearch
**Created:** [August 24, 2018, 10:09am UTC](https://discuss.elastic.co/t/curator-5-5-error-singleton-action-failed-due-to-empty-index-lis/145883 "2018-08-24T10:09:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![abkrim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abkrim/32/20217_2.png) [@abkrim](https://discuss.elastic.co/u/abkrim)
#### Post date: [August 24, 2018, 10:09am UTC](https://discuss.elastic.co/t/curator-5-5-error-singleton-action-failed-due-to-empty-index-lis/145883/1 "2018-08-24T10:09:44Z")

</div>

Hi.

I can not understand the operation in the curator 5.5 command line

```
# curator_cli --host kvm487 --port 9200 show_indices --verbose
.kibana open 50.4KB 10 1 1 2017-08-17T08:40:19Z
 excellenting open 41.0GB 20504001 9 2 2017-10-18T09:57:32Z

```

I my repository for snaphost (made manually without Curator)

```
curator_cli --host kvm487 --port 9200 show_snapshots --repository excelle_backup
20180824085231
20180824085459
20180824085528

```

Try to run curator for make snapshot, and get error.

```
curator_cli --host kvm487 --port 9200 snapshot --repository excelle_backup --filter_list '[{"filtertype":"age", "source":"name", "direction":"older", "unit":"days", "unit_count":30, "timestring":"%Y.%m.%d"}]'
2018-08-24 12:04:21,010 ERROR Singleton action failed due to empty ind

ERROR Singleton action failed due to empty index list

```

I read several tutorials, but are for older versions, and no work with this version.

Best regards

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [August 24, 2018, 2:59pm UTC](https://discuss.elastic.co/t/curator-5-5-error-singleton-action-failed-due-to-empty-index-lis/145883/2 "2018-08-24T14:59:03Z")

</div>

> [@abkrim](#):
>
> 20180824085459

Your index names do not match the timestring in your age filter: `%Y.%m.%d`. This timestring would work if your index name was `2018.08.24`.

A viable timestring for your index names might be `%Y%m%d%H%M%S`

---

<div class="post-metadata">

### Author: ![abkrim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abkrim/32/20217_2.png) [@abkrim](https://discuss.elastic.co/u/abkrim)
#### Post date: [August 24, 2018, 4:15pm UTC](https://discuss.elastic.co/t/curator-5-5-error-singleton-action-failed-due-to-empty-index-lis/145883/3 "2018-08-24T16:15:20Z")

</div>

> [@abkrim](#):
>
> curator\_cli --host kvm487 --port 9200 show\_snapshots --repository excelle\_backup

Well..

I delete old backups

```
curl -XGET 'kvm487:9200/_snapshot/excelle_backup/_all?pretty=true'
{
  "snapshots" : []
}

```

But if I use Curator

```
# curator_cli --host kvm487 --port 9200 show_snapshots --repository excelle_backup
Traceback (most recent call last):
  File "/usr/local/bin/curator_cli", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/curator/curator_cli.py", line 8, in main
    cli(obj={})
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/curator/cli_singletons/show.py", line 83, in show_snapshots
    action.get_list_object()
  File "/usr/local/lib/python3.5/dist-packages/curator/cli_singletons/object_class.py", line 147, in get_list_object
    self.list_object = SnapshotList(self.client, repository=self.repository)
  File "/usr/local/lib/python3.5/dist-packages/curator/snapshotlist.py", line 39, in __init__
    self.__get_snapshots()
  File "/usr/local/lib/python3.5/dist-packages/curator/snapshotlist.py", line 81, in __get_snapshots
    self.empty_list_check()
  File "/usr/local/lib/python3.5/dist-packages/curator/snapshotlist.py", line 97, in empty_list_check
    raise exceptions.NoSnapshots('snapshot_list object is empty.')
curator.exceptions.NoSnapshots: snapshot_list object is empty.

```

And now try run command and fail

```
# curator_cli --host kvm487 --port 9200 snapshot --repository excelle_backup --filter_list '[{"filtertype":"age", "source":"name", "direction":"older", "unit":"days", "unit_count":30, "timestring":"%Y.%m.%d"}]'
2018-08-24 18:14:15,192 ERROR Singleton action failed due to empty index list

```

So, problem is no index name.

What is problem?

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [August 24, 2018, 5:57pm UTC](https://discuss.elastic.co/t/curator-5-5-error-singleton-action-failed-due-to-empty-index-lis/145883/4 "2018-08-24T17:57:31Z")

</div>

Again, your index names don’t match the timestring you provided, so there are no indices to snapshot. That’s what the log is telling you

---

<div class="post-metadata">

### Author: ![abkrim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abkrim/32/20217_2.png) [@abkrim](https://discuss.elastic.co/u/abkrim)
#### Post date: [August 24, 2018, 7:29pm UTC](https://discuss.elastic.co/t/curator-5-5-error-singleton-action-failed-due-to-empty-index-lis/145883/5 "2018-08-24T19:29:45Z")

</div>

Thanks. Very confused manual.

For create a snaphost, only need command below.

`curator_cli --host kvm487 --port 9200 snapshot --repository excelle_backup --filter_list '{"filtertype":"none"}'`

Now, I try to understand manual for create a new snapshot, and after delete olders snapshots than X days.

Best regards.

---

<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: [September 21, 2018, 7:29pm UTC](https://discuss.elastic.co/t/curator-5-5-error-singleton-action-failed-due-to-empty-index-lis/145883/6 "2018-09-21T19:29:46Z")

</div>

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