# Upgrade to 6.2.2 Bug

**URL:** <https://discuss.elastic.co/t/upgrade-to-6-2-2-bug/122862>\
**Category:** Elasticsearch\
**Created:** [March 7, 2018, 10:41am UTC](https://discuss.elastic.co/t/upgrade-to-6-2-2-bug/122862 "2018-03-07T10:41:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akml\_kk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akml_kk/32/31069_2.png) [@akml\_kk](https://discuss.elastic.co/u/akml_kk)\
**Post date:** [March 7, 2018, 10:41am UTC](https://discuss.elastic.co/t/upgrade-to-6-2-2-bug/122862/1 "2018-03-07T10:41:38Z")

</div>

I have the version 6.1.3 of elasticsearch and i want to upgrade to 6.2.2  
so ,using zip file in windows,i did like this:

1. unzip to desktop
2. delete the config file and replace by the one of 6.1.3
3. paste data file from 6.1.3 to 6.2.2

when i execute the cmd\>bin\elasticsearch.bat i get the following error :  
echo jvm options parser failed

what i m doing wrong please ?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 7, 2018, 4:59pm UTC](https://discuss.elastic.co/t/upgrade-to-6-2-2-bug/122862/2 "2018-03-07T16:59:03Z")

</div>

You should unzip the zip files into two different locations and either copy only the configuration files over or point to a specific config directory. Your data directory should be in neither of those directories, the same applies for logs - which makes upgrading very easy without worrying that you are overwriting or mixing up files from different installations.

---

<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:** [April 4, 2018, 4:59pm UTC](https://discuss.elastic.co/t/upgrade-to-6-2-2-bug/122862/3 "2018-04-04T16:59:20Z")

</div>

Closed on April 4, 2018, 4:59pm UTC

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