# I can't reopen a closed index

**URL:** <https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895>\
**Category:** Elasticsearch\
**Created:** [June 13, 2023, 4:27pm UTC](https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895 "2023-06-13T16:27:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hatef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hatef/32/122206_2.png) [@Hatef](https://discuss.elastic.co/u/Hatef)\
**Post date:** [June 13, 2023, 4:27pm UTC](https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895/1 "2023-06-13T16:27:29Z")

</div>

Hi all,  
I'm pretty new to ES but have played around with ELK stack a bit and I'm more familiar now to run some API queries and modifying configs.  
I have closed an index called `accelerate` which is the main source of our dashboards in Kibana by mistake and when attempting to re-open it, I get below error.  
I'm using below API call and receive the error pasted below:

```auto
POST /accelerate/_open

{
  "error" : {
    "root_cause" : [
      {
        "type" : "exception",
        "reason" : "Failed to verify index [accelerate/6TtZD3oTTVaGiDyXDnL9Kg]"
      }
    ],
    "type" : "exception",
    "reason" : "Failed to verify index [accelerate/6TtZD3oTTVaGiDyXDnL9Kg]",
    "caused_by" : {
      "type" : "illegal_argument_exception",
      "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0"
    }
  },
  "status" : 500
}

```

I have tried to disable this setting (`index.mapper.dynamic`) in my index configs but it throws the same error each time and I'm stuck with a closed index which is very important for us.

What do you suggest?

---

<div class="post-metadata">

**Author:** ![eMitch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emitch/32/93607_2.png) [@eMitch](https://discuss.elastic.co/u/eMitch)\
**Post date:** [June 13, 2023, 7:37pm UTC](https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895/2 "2023-06-13T19:37:18Z")

</div>

Hey @Hatef and welcome to the community!

are there any templates that reference that setting? does [this post](https://discuss.elastic.co/t/setting-index-mapper-dynamic-was-removed-after-version-6-0-0/179776/2) help you at all?

---

<div class="post-metadata">

**Author:** ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)\
**Post date:** [June 13, 2023, 7:37pm UTC](https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895/3 "2023-06-13T19:37:37Z")

</div>

Hello @Hatef,

Welcome to the community!

Did you upgrade in the meantime? Which version of Elastic are you using?

Perhaps this is mentioned in an index template? You probably have: `"dynamic":"true"` in your index mapping.

Have you tried [deleting](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-template.html) and creating a new template or [updating](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-template.html) this template?

---

<div class="post-metadata">

**Author:** ![Hatef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hatef/32/122206_2.png) [@Hatef](https://discuss.elastic.co/u/Hatef)\
**Post date:** [June 13, 2023, 7:56pm UTC](https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895/4 "2023-06-13T19:56:15Z")

</div>

> [@Hatef](#):
>
> `Setting index.mapper.dynamic was removed after version`

Hi @eMitch  
This index is not using index templates but the settings of this index does come with `index.mapper.dynamic` set to true and I can't disable or remove it by any means

Below is the output of `_settings` endpoint:  
 ![Screenshot 2023-06-13 at 20.55.37](https://us1.discourse-cdn.com/elastic/original/3X/c/6/c6f5c4c2b59c47aea1ff708022261fe121e62e0f.png)

---

<div class="post-metadata">

**Author:** ![Hatef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hatef/32/122206_2.png) [@Hatef](https://discuss.elastic.co/u/Hatef)\
**Post date:** [June 13, 2023, 8:00pm UTC](https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895/5 "2023-06-13T20:00:29Z")

</div>

Hi @Priscilla_Parodi,  
No upgrade is done. The version of Elastic is `v 7.9.1`  
This index is not using any index templates.

---

<div class="post-metadata">

**Author:** ![eMitch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emitch/32/93607_2.png) [@eMitch](https://discuss.elastic.co/u/eMitch)\
**Post date:** [June 13, 2023, 9:25pm UTC](https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895/6 "2023-06-13T21:25:39Z")

</div>

Looks like this is an active bug.

See: [Removed setting `index.mapper.dynamic` can be set on v7+ indices · Issue #96075 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/96075)

Commenting on this ticket would increase visibility and allow you to keep track.

---

<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:** [June 13, 2023, 10:32pm UTC](https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895/7 "2023-06-13T22:32:05Z")

</div>

> [@Hatef](#):
>
> The version of Elastic is `v 7.9.1`

Please note that version is [EOL](https://www.elastic.co/support/eol) and no longer supported, you should be looking to upgrade as a matter of urgency as the bug that is linked above will not be back ported to anything other than a 7.17 version.

---

<div class="post-metadata">

**Author:** ![Hatef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hatef/32/122206_2.png) [@Hatef](https://discuss.elastic.co/u/Hatef)\
**Post date:** [June 14, 2023, 8:33am UTC](https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895/8 "2023-06-14T08:33:40Z")

</div>

Since the index is closed right now and it is crucial for us to get it back, is there any solution you can suggest despite removing and recreating the index? I need the data in that index and don't want to remove it.

---

<div class="post-metadata">

**Author:** ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)\
**Post date:** [June 14, 2023, 6:34pm UTC](https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895/9 "2023-06-14T18:34:15Z")

</div>

Hello @Hatef,

Considering the context, I believe the best option would be for you to [create a snapshot](https://www.elastic.co/guide/en/elasticsearch/reference/7.9/snapshots-take-snapshot.html) (set `"expand_wildcards"` to `"all"`; in 7.x, the value defaults to `"open, hidden"` indices). Then, proceed with the upgrade and [restore the snapshot](https://www.elastic.co/guide/en/elasticsearch/reference/7.9/snapshots-restore-snapshot.html).

---

<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:** [July 12, 2023, 6:34pm UTC](https://discuss.elastic.co/t/i-cant-reopen-a-closed-index/335895/10 "2023-07-12T18:34:52Z")

</div>

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