# Unable to open index after config change while closed

**URL:** <https://discuss.elastic.co/t/unable-to-open-index-after-config-change-while-closed/333325>\
**Category:** Elasticsearch\
**Created:** [May 12, 2023, 3:52pm UTC](https://discuss.elastic.co/t/unable-to-open-index-after-config-change-while-closed/333325 "2023-05-12T15:52:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt-monacelli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt-monacelli/32/120969_2.png) [@matt-monacelli](https://discuss.elastic.co/u/matt-monacelli)\
**Post date:** [May 12, 2023, 3:52pm UTC](https://discuss.elastic.co/t/unable-to-open-index-after-config-change-while-closed/333325/1 "2023-05-12T15:52:28Z")

</div>

ES version: 7.10.2 (running in AWS)

I mistakenly added a configuration that had been deprecated and is now preventing me from opening the index. To reproduce, close an index, set the `index.mpper.dynamic` setting to `false`, try to open the index. I can't find a way to undo the config change I made and am now stuck - any help would be greatly appreciated!

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "exception",
        "reason" : "Failed to verify index [events-000012/e57doKb8Qe2p-D-fOLUcNw]"
      }
    ],
    "type" : "exception",
    "reason" : "Failed to verify index [events-000012/e57doKb8Qe2p-D-fOLUcNw]",
    "caused_by" : {
      "type" : "illegal_argument_exception",
      "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0"
    }
  },
  "status" : 500
}

```

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 12, 2023, 4:07pm UTC](https://discuss.elastic.co/t/unable-to-open-index-after-config-change-while-closed/333325/2 "2023-05-12T16:07:11Z")

</div>

Hi @matt-monacelli Welcome to the community!  
Becareful with index settings 🙂

> [@matt-monacelli](#):
>
> `index.mapper.dynamic`

Did you try setting to `null`

```auto
PUT /my-index-000001/
{
  "settings": {
    "index": {
      "mapper": {
        "dynamic": null
      }
    }
  }
}

```

or even

```auto
PUT /my-index-000001/
{
  "settings": {
    "index": {
      "mapper": null
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![matt-monacelli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt-monacelli/32/120969_2.png) [@matt-monacelli](https://discuss.elastic.co/u/matt-monacelli)\
**Post date:** [May 12, 2023, 6:34pm UTC](https://discuss.elastic.co/t/unable-to-open-index-after-config-change-while-closed/333325/3 "2023-05-12T18:34:47Z")

</div>

Hi there! Thanks for the quick response! Yes, I had tried both of those - seems to be quite stubborn and got me stuck in a catch-22 🫤

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 12, 2023, 6:45pm UTC](https://discuss.elastic.co/t/unable-to-open-index-after-config-change-while-closed/333325/4 "2023-05-12T18:45:05Z")

</div>

@matt-monacelli

Do you have a backup? You may need to delete the index and restore it...

BTW 7.10.2 is ancient, you should really update as a matter of urgency.

@DavidTurner Any ideas?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [May 13, 2023, 5:51am UTC](https://discuss.elastic.co/t/unable-to-open-index-after-config-change-while-closed/333325/5 "2023-05-13T05:51:02Z")

</div>

Try setting `index.mapper.*` to `null`.

---

<div class="post-metadata">

**Author:** ![matt-monacelli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt-monacelli/32/120969_2.png) [@matt-monacelli](https://discuss.elastic.co/u/matt-monacelli)\
**Post date:** [May 15, 2023, 2:26pm UTC](https://discuss.elastic.co/t/unable-to-open-index-after-config-change-while-closed/333325/6 "2023-05-15T14:26:13Z")

</div>

I tried that as well:

```auto
PUT events/_settings
{
  "index.mapper.*": null
}

```

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0"
  },
  "status" : 400
}

```

---

<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:** [June 12, 2023, 2:27pm UTC](https://discuss.elastic.co/t/unable-to-open-index-after-config-change-while-closed/333325/7 "2023-06-12T14:27:06Z")

</div>

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