# Upgrade elasticsearch version from 7.10 to 7.13 error

**URL:** <https://discuss.elastic.co/t/upgrade-elasticsearch-version-from-7-10-to-7-13-error/274459>\
**Category:** Elasticsearch\
**Created:** [May 31, 2021, 7:11am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-version-from-7-10-to-7-13-error/274459 "2021-05-31T07:11:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexM566](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexm566/32/89480_2.png) [@AlexM566](https://discuss.elastic.co/u/AlexM566)\
**Post date:** [May 31, 2021, 7:11am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-version-from-7-10-to-7-13-error/274459/1 "2021-05-31T07:11:58Z")

</div>

Hey guys, I am trying to update the version of elasticsearch to 7.13 from 7.10 and I am following the instructions from [Rolling upgrades | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html) but in the final when i procced with the instal I have this output:

```
// error: Failed dependencies:
        elasticsearch-oss conflicts with elasticsearch-0:7.13.0-1.x86_64
        elasticsearch conflicts with (installed) elasticsearch-oss-0:7.10.2-1.x86_64

```

If you know any other method beside uninstall 7.10 v. please help me.

Thx in advance.  
Alex

---

<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:** [May 31, 2021, 7:24am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-version-from-7-10-to-7-13-error/274459/2 "2021-05-31T07:24:51Z")

</div>

Hey,

can you state, which commands you used for upgrading? That might help to reproduce the issue.

Thank you!

--Alex

---

<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:** [May 31, 2021, 7:37am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-version-from-7-10-to-7-13-error/274459/3 "2021-05-31T07:37:23Z")

</div>

Also what OS and how you originally installed it would be helpful.

---

<div class="post-metadata">

**Author:** ![AlexM566](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexm566/32/89480_2.png) [@AlexM566](https://discuss.elastic.co/u/AlexM566)\
**Post date:** [May 31, 2021, 8:05am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-version-from-7-10-to-7-13-error/274459/4 "2021-05-31T08:05:30Z")

</div>

Hi Alex,  
This are the steps I followed:

1. **Disable shard allocation**.
2. **Stop non-essential indexing and perform a synced flush**
3. sudo systemctl stop elasticsearch.service
4. rpm --import [https://artifacts.elastic.co/GPG-KEY-elasticsearch](https://artifacts.elastic.co/GPG-KEY-elasticsearch)
5. sudo yum install --enablerepo=elasticsearch elasticsearch

and i tried also

- wget [https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.13.0-x86\_64.rpm](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.13.0-x86_64.rpm)
- wget [https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.13.0-x86\_64.rpm.sha512](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.13.0-x86_64.rpm.sha512)
- shasum -a 512 -c elasticsearch-7.13.0-x86\_64.rpm.sha512
- sudo rpm --install elasticsearch-7.13.0-x86\_64.rpm

Hi @warkolm ,

I use centos 7 and i installed elasticsearch from the rpm repo with yum

Thx,  
Alex

---

<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:** [May 31, 2021, 8:51am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-version-from-7-10-to-7-13-error/274459/5 "2021-05-31T08:51:22Z")

</div>

my RPM skills are a little rusty, but shouldnt one run the upgrade switch instead of the install switch when updating an existing RPM?

---

<div class="post-metadata">

**Author:** ![AlexM566](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexm566/32/89480_2.png) [@AlexM566](https://discuss.elastic.co/u/AlexM566)\
**Post date:** [May 31, 2021, 11:10am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-version-from-7-10-to-7-13-error/274459/6 "2021-05-31T11:10:40Z")

</div>

I tried with some different methods but this gives one of the more accurate output:

```auto
sudo yum install --enablerepo=elasticsearch elasticsearch --skip-broken
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.m247.ro
 * epel: fedora.mirrors.telekom.ro
 * extras: mirrors.nxthost.com
 * updates: mirrors.nxthost.com
Resolving Dependencies
--> Running transaction check
---> Package elasticsearch.x86_64 0:7.13.0-1 will be installed
--> Processing Conflict: elasticsearch-oss-7.10.2-1.x86_64 conflicts elasticsearch
--> Processing Conflict: elasticsearch-7.13.0-1.x86_64 conflicts elasticsearch-oss

Packages skipped because of dependency problems:
    elasticsearch-7.13.0-1.x86_64 from elasticsearch

```

---

<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:** [May 31, 2021, 11:22am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-version-from-7-10-to-7-13-error/274459/7 "2021-05-31T11:22:05Z")

</div>

that line was already hinted at above, but those two lines make it more clear.

You have the `elasticsearch-oss` distribution installed, but now you want to install the regular distribution. As the `elasticsearch-oss` package has a `conflict` configured for the `elasticsearch` package (and vice versa) to ensure that no two distributions are installed at the same time, you are getting this error message.

I suppose this requires deletion of the oss package and installation of the other. I remember that `yum` has a swap command, but I have never tested this - the most important part is to ensure that there is no deletion of configuration and data folders - so no purging of the package.

---

<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:** [June 28, 2021, 11:22am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-version-from-7-10-to-7-13-error/274459/8 "2021-06-28T11:22:10Z")

</div>

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