# Curator\_cli - Failed to complete action: \<type 'exceptions.KeyError'\>: 'indices'

**URL:** <https://discuss.elastic.co/t/curator-cli-failed-to-complete-action-type-exceptions-keyerror-indices/206479>\
**Category:** Elasticsearch\
**Tags:** curator\
**Created:** [November 4, 2019, 8:43pm UTC](https://discuss.elastic.co/t/curator-cli-failed-to-complete-action-type-exceptions-keyerror-indices/206479 "2019-11-04T20:43:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveyDevOps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daveydevops/32/57124_2.png) [@DaveyDevOps](https://discuss.elastic.co/u/DaveyDevOps)\
**Post date:** [November 4, 2019, 8:43pm UTC](https://discuss.elastic.co/t/curator-cli-failed-to-complete-action-type-exceptions-keyerror-indices/206479/1 "2019-11-04T20:43:53Z")

</div>

Curator 5.8.1  
Elasticsearch 7.3.0

This is mostly informational.

curator\_cli was working fine with Elastic 6.6.0  
When connecting into our new version (7.3.0), actions were failing with Failed to complete action: \<type 'exceptions.KeyError'\>: 'indices'

I spotted a few a posts out there and followed the step to increase logging.  
The logging revealed a 403 - unauthorized

It seems like the first thing curator does is collect stats on all indices.  
Security is use and the account has monitor, view\_index\_metadata permission to "\*" indices.

---

<div class="post-metadata">

**Author:** ![DaveyDevOps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daveydevops/32/57124_2.png) [@DaveyDevOps](https://discuss.elastic.co/u/DaveyDevOps)\
**Post date:** [November 4, 2019, 8:45pm UTC](https://discuss.elastic.co/t/curator-cli-failed-to-complete-action-type-exceptions-keyerror-indices/206479/2 "2019-11-04T20:45:21Z")

</div>

It was necessary to add `allow_restricted_indices=true` into account's role.

---

<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 2, 2019, 8:45pm UTC](https://discuss.elastic.co/t/curator-cli-failed-to-complete-action-type-exceptions-keyerror-indices/206479/3 "2019-12-02T20:45:24Z")

</div>

Closed on December 2, 2019, 8:45pm UTC

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