# Upgrading version problem

**URL:** <https://discuss.elastic.co/t/upgrading-version-problem/24180>\
**Category:** Elasticsearch\
**Created:** [June 23, 2015, 10:34am UTC](https://discuss.elastic.co/t/upgrading-version-problem/24180 "2015-06-23T10:34:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [June 23, 2015, 10:34am UTC](https://discuss.elastic.co/t/upgrading-version-problem/24180/1 "2015-06-23T10:34:28Z")

</div>

Hi,  
Am upgrading elasticsearch 1.4.2 to 1.5.2  
For that I have done

1. copied the config file of 1.4.2 and pasted that in 1.5.2...  
when I have seen the indices using...(in 1.5.2)  
PUT \_cat/indices?v--- This is showing indices which are there in other host with same cluster name..But not showing the data in my local host..

when am looking for the indexes in 1.5.2, I am unable to see the indexes which I have created in 1.4.2 .  
So how to upgrade to higher version by keeping the indexes and data as it is which were there in old version

---

<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 23, 2015, 10:40am UTC](https://discuss.elastic.co/t/upgrading-version-problem/24180/2 "2015-06-23T10:40:46Z")

</div>

How did you do the initial install, and how did you do the upgrade?

---

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [June 23, 2015, 10:48am UTC](https://discuss.elastic.co/t/upgrading-version-problem/24180/3 "2015-06-23T10:48:43Z")

</div>

I downloaded elasticsearch 1.5.2 and copied the config file of 1.4.2 to 1.5.2 then I executed the elasticsearch batch file which is there in bin folder. Then I verified the indices in sense..

---

<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 23, 2015, 10:49am UTC](https://discuss.elastic.co/t/upgrading-version-problem/24180/4 "2015-06-23T10:49:21Z")

</div>

But did you use the deb/rpm or the zip file?

---

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [June 23, 2015, 10:55am UTC](https://discuss.elastic.co/t/upgrading-version-problem/24180/5 "2015-06-23T10:55:04Z")

</div>

I downloaded the zip file and did this process

---

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [June 23, 2015, 11:11am UTC](https://discuss.elastic.co/t/upgrading-version-problem/24180/6 "2015-06-23T11:11:37Z")

</div>

Hi Its working fine I have not included data folder in new version and started that created this problem. Again I unzip the file and included both config and data folders in new version and started now its showing my old indices.

Thank you.

---

<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 23, 2015, 11:33am UTC](https://discuss.elastic.co/t/upgrading-version-problem/24180/7 "2015-06-23T11:33:59Z")

</div>

ES stores data (ie the indices) under `$ES_HOME/data` for a zip file.

`$ES_HOME` will be where ever you unzipped the directory, which means it changes if you extract a new version. You should set `path.data` to something custom and outside your unzipped directory structure if you want to persist this data.

---

<div class="post-metadata">

**Author:** ![anusha6](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anusha6](https://discuss.elastic.co/u/anusha6)\
**Post date:** [June 23, 2015, 11:38am UTC](https://discuss.elastic.co/t/upgrading-version-problem/24180/8 "2015-06-23T11:38:35Z")

</div>

This is really useful, I will do that thanks for your immediate response..

---

<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 6, 2017, 12:05am UTC](https://discuss.elastic.co/t/upgrading-version-problem/24180/9 "2017-07-06T00:05:58Z")

</div>


