Curator 5.5 ERROR Singleton action failed due to empty index lis

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

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

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?

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

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.

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