# Downgrade from es version 8.15.0 to 8.13.4

**URL:** <https://discuss.elastic.co/t/downgrade-from-es-version-8-15-0-to-8-13-4/366905>\
**Category:** Elasticsearch\
**Created:** [September 21, 2024, 1:24pm UTC](https://discuss.elastic.co/t/downgrade-from-es-version-8-15-0-to-8-13-4/366905 "2024-09-21T13:24:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamedheidarian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamedheidarian/32/104904_2.png) [@hamedheidarian](https://discuss.elastic.co/u/hamedheidarian)\
**Post date:** [September 21, 2024, 1:24pm UTC](https://discuss.elastic.co/t/downgrade-from-es-version-8-15-0-to-8-13-4/366905/1 "2024-09-21T13:24:27Z")

</div>

Hi, Is there any possibility for doing such downgrade without data loss?  
I have seen [this topic](https://discuss.elastic.co/t/downgrade-from-es-8-10-1-to-8-9-2/343919) and [this one](https://discuss.elastic.co/t/downgrade-elastic-search/289286) before. but I don't have a snapshot before the 8.15.0 version and tried snapshot of 8.15.0 on elastic cluster version 8.13.4 but I get following error:

`{"error":{"root_cause":[{"type":"snapshot_restore_exception","reason":"[my_backup:snapshot_1/iqQ0hbqlSlSnDe7SHZaGfQ] the snapshot was created with version [8.13.4-snapshot[8512000]] which is higher than the version of this node [8.13.0-8.13.3]"}],"type":"snapshot_restore_exception","reason":"[my_backup:snapshot_1/iqQ0hbqlSlSnDe7SHZaGfQ] the snapshot was created with version [8.13.4-snapshot[8512000]] which is higher than the version of this node [8.13.0-8.13.3]"},"status":500}`

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [September 21, 2024, 2:22pm UTC](https://discuss.elastic.co/t/downgrade-from-es-version-8-15-0-to-8-13-4/366905/2 "2024-09-21T14:22:49Z")

</div>

> [@hamedheidarian](#):
>
> [8.13.0-8.13.3]

Have you tried restore the snapshot on these versions?

_Elasticsearch does not support downgrades_ - reason is the most likely Lucene.

---

<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 21, 2024, 3:21pm UTC](https://discuss.elastic.co/t/downgrade-from-es-version-8-15-0-to-8-13-4/366905/3 "2024-09-21T15:21:50Z")

</div>

Elasticsearch does not support in-place downgrades, so the only ways to move to a prior version are:

1. Restore snapshot taken in a version earlier or equal to the one restoring to
2. Setting up a new cluster with the lower version and the reindex into this from the remote cluster with the higher version

Why do you want to downgrade?

---

<div class="post-metadata">

**Author:** ![hamedheidarian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamedheidarian/32/104904_2.png) [@hamedheidarian](https://discuss.elastic.co/u/hamedheidarian)\
**Post date:** [September 22, 2024, 9:30am UTC](https://discuss.elastic.co/t/downgrade-from-es-version-8-15-0-to-8-13-4/366905/4 "2024-09-22T09:30:04Z")

</div>

Thank you for your response. I want to downgrade because spring boot's current version is not fully compatible with latest version of elasticsearch.  
I will follow [this reindex guide](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#reindex-from-remote) and i hope it works.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [September 23, 2024, 12:57am UTC](https://discuss.elastic.co/t/downgrade-from-es-version-8-15-0-to-8-13-4/366905/6 "2024-09-23T00:57:38Z")

</div>

> [@hamedheidarian](#):
>
> I want to downgrade because spring boot's current version is not fully compatible with latest version of elasticsearch.

That should not be a problem.

Elasticsearch is designed so that older clients can connect to new servers _(but not necessarily the reverse)_.  
You should not have any issue using Spring Boot and the 8.13 client against an 8.15 server

---

<div class="post-metadata">

**Author:** ![hamedheidarian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamedheidarian/32/104904_2.png) [@hamedheidarian](https://discuss.elastic.co/u/hamedheidarian)\
**Post date:** [September 23, 2024, 10:35am UTC](https://discuss.elastic.co/t/downgrade-from-es-version-8-15-0-to-8-13-4/366905/7 "2024-09-23T10:35:58Z")

</div>

@TimV  
It connects to Elasticsearch 8.15 successfully, but after I upgraded to this version, the client encounters timeouts after a while. I hope downgrading the server will solve this problem.

example:

```auto
org.springframework.dao.DataAccessResourceFailureException: 30,000 milliseconds timeout on connection http-outgoing-2 [ACTIVE]
        at org.springframework.data.elasticsearch.client.elc.ElasticsearchExceptionTranslator.translateExceptionIfPossible(ElasticsearchExceptionTranslator.java:111)
        at org.springframework.data.elasticsearch.client.elc.ElasticsearchExceptionTranslator.translateException(ElasticsearchExceptionTranslator.java:65)
        at org.springframework.data.elasticsearch.client.elc.ElasticsearchTemplate.execute(ElasticsearchTemplate.java:685)
        at org.springframework.data.elasticsearch.client.elc.ElasticsearchTemplate.doIndex(ElasticsearchTemplate.java:234)
        at org.springframework.data.elasticsearch.core.AbstractElasticsearchTemplate.save(AbstractElasticsearchTemplate.java:203)

```

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [September 23, 2024, 10:55am UTC](https://discuss.elastic.co/t/downgrade-from-es-version-8-15-0-to-8-13-4/366905/8 "2024-09-23T10:55:03Z")

</div>

It sounds like you would be better off trying to diagnose and fix the timeout issues than trying to downgrade (which may not even solve the problem)

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [September 23, 2024, 4:36pm UTC](https://discuss.elastic.co/t/downgrade-from-es-version-8-15-0-to-8-13-4/366905/9 "2024-09-23T16:36:43Z")

</div>

As Tim said, check your url connection by curl.  
Might be:

- ES service hasn't been properly started, check ES logs
- network.host param in elasticsearch.yml
- firewall has been activated
- http or https setting has been changed
