# Force starting Elasticsearch, even with incorrect index files

**URL:** <https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480>\
**Category:** Elasticsearch\
**Created:** [September 20, 2023, 5:47pm UTC](https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480 "2023-09-20T17:47:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonid\_P](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@Leonid\_P](https://discuss.elastic.co/u/Leonid_P)\
**Post date:** [September 20, 2023, 5:47pm UTC](https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480/1 "2023-09-20T17:47:58Z")

</div>

Hi there!

I tried to start Elasticsearch 8.6 with loading data from index which was initially created by Elasticsearch 7.13. It fails to start with message

> [2023-09-20T11:17:13,331][ERROR][o.e.b.Elasticsearch] [node\_1] fatal exception while booting Elasticsearch  
> java.lang.IllegalStateException: cannot upgrade a node from version [7.13.4] directly to version [8.6.2], upgrade to version [7.17.0] first.

Are there any means, say .yml config parameters, to force Elasticsearch 8.6 to start nevertheless, even without starting the index? I would prefer to get corrupted index data rather than having Elasticsearch which fails to start at all.

_For some reasons both obvious ways: removing all index data before starting Elasticsearch 8.6 and starting Elasticsearch 7.17 before starting Elasticsearch 8.6, which it is prescribed by the log message, are inconvinient in this case._

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 20, 2023, 5:54pm UTC](https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480/2 "2023-09-20T17:54:41Z")

</div>

> [@Leonid\_P](#):
>
> Are there any means, say .yml config parameters, to force Elasticsearch 8.6 to start nevertheless, even without starting the index?

No, there is not.

> [@Leonid\_P](#):
>
> For some reasons both obvious ways: removing all index data before starting Elasticsearch 8.6 and starting Elasticsearch 7.17 before starting Elasticsearch 8.6, which it is prescribed by the log message, are inconvinient in this case.

Why is this?

---

<div class="post-metadata">

**Author:** ![Leonid\_P](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@Leonid\_P](https://discuss.elastic.co/u/Leonid_P)\
**Post date:** [September 20, 2023, 6:49pm UTC](https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480/3 "2023-09-20T18:49:40Z")

</div>

Thank you for replying!

To say in few words there is a bunch of servers, with Elasticsearch 7.13 on some of them and Elasticsearch 7.17 on the others. My task is to create a sort of script which on the one hand will save the data when it is possible (i.e. on the servers with 7.17), and on the other hand will start Elasticsearch 8.6 anyway.

The set of tools in this sort of script is very limited, that's why it is not possible to start one version of Elasticsearch after another.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 20, 2023, 7:05pm UTC](https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480/4 "2023-09-20T19:05:12Z")

</div>

If the scripts have limited capabilities, why then not create two scripts - one that upgrades the environment to 7.17 (run on all environments first) and one that then subsequently migrates to version 8.9?

---

<div class="post-metadata">

**Author:** ![Leonid\_P](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@Leonid\_P](https://discuss.elastic.co/u/Leonid_P)\
**Post date:** [September 20, 2023, 8:37pm UTC](https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480/5 "2023-09-20T20:37:58Z")

</div>

Unfortunately it should a single universal script. It seems that we have to expand its capabilities by some means.

BTW, isn't it possible to change data folder for running Elasticsearch, for example switch path.data with PUT request, something like that? It could be also a way to solve my issue.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 20, 2023, 8:55pm UTC](https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480/6 "2023-09-20T20:55:39Z")

</div>

No, that is not possible.

---

<div class="post-metadata">

**Author:** ![Leonid\_P](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@Leonid\_P](https://discuss.elastic.co/u/Leonid_P)\
**Post date:** [September 21, 2023, 12:10pm UTC](https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480/7 "2023-09-21T12:10:42Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![Andrew\_Mora](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_mora/32/125622_2.png) [@Andrew\_Mora](https://discuss.elastic.co/u/Andrew_Mora)\
**Post date:** [September 21, 2023, 3:50pm UTC](https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480/8 "2023-09-21T15:50:44Z")

</div>

> [@Leonid\_P](#):
>
> Hi there!
> 
> I tried to start Elasticsearch 8.6 with loading data from index which was initially created by Elasticsearch 7.13. It fails to start with message
> 
> > [2023-09-20T11:17:13,331][ERROR][o.e.b.Elasticsearch] [node\_1] fatal exception while booting Elasticsearch  
> > java.lang.IllegalStateException: cannot upgrade a node from version [7.13.4] directly to version [8.6.2], upgrade to version [7.17.0] first.
> 
> Are there any means, say .yml config parameters, to force Elasticsearch 8.6 to start nevertheless, even without starting the index? I would prefer to get corrupted index data rather than having Elasticsearch which fails to start at all.
> 
> _For some reasons both obvious ways: removing all index data before starting Elasticsearch 8.6 and starting Elasticsearch 7.17 before starting Elasticsearch 8.6, which it is prescribed by the log message, are inconvinient in this case._

Attempting to force Elasticsearch 8.6 to start without upgrading the index directly from version 7.13.4 to 8.6.2 is not recommended as it can lead to data corruption or issues. It's advisable to follow the prescribed steps of upgrading to version 7.17.0 first to ensure a smooth transition and data integrity. AC Football Cases

---

<div class="post-metadata">

**Author:** ![Leonid\_P](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@Leonid\_P](https://discuss.elastic.co/u/Leonid_P)\
**Post date:** [September 21, 2023, 4:16pm UTC](https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480/9 "2023-09-21T16:16:07Z")

</div>

Yes, I see, but in my particular case data corruption is better than failure to start the cluster at all.

---

<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:** [October 19, 2023, 4:16pm UTC](https://discuss.elastic.co/t/force-starting-elasticsearch-even-with-incorrect-index-files/343480/10 "2023-10-19T16:16:42Z")

</div>

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