# Upgrading to 5.0.0 and plugins

**URL:** https://discuss.elastic.co/t/upgrading-to-5-0-0-and-plugins/64504
**Category:** Elasticsearch
**Created:** [November 1, 2016, 12:11am UTC](https://discuss.elastic.co/t/upgrading-to-5-0-0-and-plugins/64504 "2016-11-01T00:11:18Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Patrick\_Lam](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Patrick\_Lam](https://discuss.elastic.co/u/Patrick_Lam)
#### Post date: [November 1, 2016, 12:11am UTC](https://discuss.elastic.co/t/upgrading-to-5-0-0-and-plugins/64504/1 "2016-11-01T00:11:18Z")

</div>

Hi,

I'm trying to upgrade ES from 2.3 to 5.0 via RPM on a RHEL server. I followed the instructions and installed via RPM, but when I try to upgrade the plugins, I'm getting the following error:

```auto
$ sudo bin/elasticsearch-plugin install analysis-icu

-> Downloading analysis-icu from elastic
[=================================================] 100%   
Exception in thread "main" java.lang.IllegalArgumentException: Plugin [analysis-icu] is incompatible with Elasticsearch [5.0.0]. Was designed for version [2.3.3]
	at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:108)
	at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:370)
	at org.elasticsearch.plugins.InstallPluginCommand.jarHellCheck(InstallPluginCommand.java:446)
	at org.elasticsearch.plugins.InstallPluginCommand.verify(InstallPluginCommand.java:427)
	at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:469)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:207)
	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:190)
	at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
	at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:69)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
	at org.elasticsearch.cli.Command.main(Command.java:62)
	at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:42)

```

Any idea what I'm doing wrong? Am I missing a configuration somewhere?

I will note that when I installed ES 5.0.0, I got the following warning:

```auto
   1:elasticsearch warning: /etc/elasticsearch/elasticsearch.yml created as /etc/elasticsearch/elasticsearch.yml.rpmnew
warning: /etc/sysconfig/elasticsearch created as /etc/sysconfig/elasticsearch.rpmnew

```

I then manually renamed the new files to their original names. Not sure that screwed things up.

---

<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: [November 1, 2016, 12:15am UTC](https://discuss.elastic.co/t/upgrading-to-5-0-0-and-plugins/64504/2 "2016-11-01T00:15:21Z")

</div>

It doesn't look like this plugin has been updated for 5.0 - [https://github.com/elastic/elasticsearch-analysis-icu](https://github.com/elastic/elasticsearch-analysis-icu)

Oh no, I can't read. [https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-icu.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-icu.html) should be where to look.

---

<div class="post-metadata">

### Author: ![Patrick\_Lam](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Patrick\_Lam](https://discuss.elastic.co/u/Patrick_Lam)
#### Post date: [November 1, 2016, 12:18am UTC](https://discuss.elastic.co/t/upgrading-to-5-0-0-and-plugins/64504/3 "2016-11-01T00:18:59Z")

</div>

Yea the plugin should be updated. I downloaded and installed a fresh version of ES 5.0.0 on my local machine and installed the plugins just to make sure, and it worked fine. So it's something with the configuration of this upgrade or the way I did it that is wrong, but I can't figure out why.

---

<div class="post-metadata">

### Author: ![Patrick\_Lam](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Patrick\_Lam](https://discuss.elastic.co/u/Patrick_Lam)
#### Post date: [November 1, 2016, 2:41am UTC](https://discuss.elastic.co/t/upgrading-to-5-0-0-and-plugins/64504/4 "2016-11-01T02:41:22Z")

</div>

I think I found the issue. When doing an upgrade from an older version of ES, it seems like ALL plugins from the old version must be removed before new ones with the new version can be installed.

---

<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: [November 1, 2016, 3:31am UTC](https://discuss.elastic.co/t/upgrading-to-5-0-0-and-plugins/64504/5 "2016-11-01T03:31:12Z")

</div>

Yep, that is correct.

---

<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 5, 2017, 10:08pm UTC](https://discuss.elastic.co/t/upgrading-to-5-0-0-and-plugins/64504/6 "2017-07-05T22:08:02Z")

</div>


