# Issue When Upgrading Elasticsearch v5.2.2 to V5.6.8

**URL:** <https://discuss.elastic.co/t/issue-when-upgrading-elasticsearch-v5-2-2-to-v5-6-8/122869>\
**Category:** Elasticsearch\
**Created:** [March 7, 2018, 11:33am UTC](https://discuss.elastic.co/t/issue-when-upgrading-elasticsearch-v5-2-2-to-v5-6-8/122869 "2018-03-07T11:33:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreejiths](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@sreejiths](https://discuss.elastic.co/u/sreejiths)\
**Post date:** [March 7, 2018, 11:33am UTC](https://discuss.elastic.co/t/issue-when-upgrading-elasticsearch-v5-2-2-to-v5-6-8/122869/1 "2018-03-07T11:33:34Z")

</div>

I am trying to upgrade my development ELK stack running on a Single VM(No cluster) ..Below is the details of the error ..i am doing something wrong ..Please advice

OS : Centos 7  
Current ELK version : V5.2.2  
New version : V5.6.8

Have shutdown the services before trying upgarde . trying to upgrade using rpm image ...Below is the error

[root@XXX bin]# sudo rpm --install elasticsearch-5.6.8.rpm  
file /etc/elasticsearch/jvm.options from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /etc/elasticsearch/log4j2.properties from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /etc/init.d/elasticsearch from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /etc/sysconfig/elasticsearch from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/bin/elasticsearch from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/lib/systemd/system/elasticsearch.service from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/NOTICE.txt from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/README.textile from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/bin/elasticsearch.in.sh from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/modules/aggs-matrix-stats/plugin-descriptor.properties from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/modules/ingest-common/plugin-descriptor.properties from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/modules/lang-expression/plugin-descriptor.properties from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/modules/lang-groovy/plugin-descriptor.properties from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/modules/lang-mustache/plugin-descriptor.properties from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/modules/lang-painless/plugin-descriptor.properties from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/modules/percolator/plugin-descriptor.properties from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/modules/reindex/plugin-descriptor.properties from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/modules/transport-netty3/plugin-descriptor.properties from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/modules/transport-netty4/plugin-descriptor.properties from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
file /usr/share/elasticsearch/modules/transport-netty4/plugin-security.policy from install of elasticsearch-0:5.6.8-1.noarch conflicts with file from package elasticsearch-0:5.2.2-1.noarch  
[root@XXXX bin]#

---

<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:35pm UTC](https://discuss.elastic.co/t/issue-when-upgrading-elasticsearch-v5-2-2-to-v5-6-8/122869/2 "2018-03-07T16:35:15Z")

</div>

can you try to run `rpm -Uvh elasticsearch.rpm` , so that you run an upgrade and dont try to do a new installation?

--Alex

---

<div class="post-metadata">

**Author:** ![sreejiths](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@sreejiths](https://discuss.elastic.co/u/sreejiths)\
**Post date:** [March 8, 2018, 6:36am UTC](https://discuss.elastic.co/t/issue-when-upgrading-elasticsearch-v5-2-2-to-v5-6-8/122869/3 "2018-03-08T06:36:40Z")

</div>

Thanks a lot ..ELK is upgraded ..

---

<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 5, 2018, 6:36am UTC](https://discuss.elastic.co/t/issue-when-upgrading-elasticsearch-v5-2-2-to-v5-6-8/122869/4 "2018-04-05T06:36:45Z")

</div>

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