# X-Pack 5.0.1 installation failure

**URL:** <https://discuss.elastic.co/t/x-pack-5-0-1-installation-failure/66192>\
**Category:** Elasticsearch\
**Created:** [November 16, 2016, 3:43am UTC](https://discuss.elastic.co/t/x-pack-5-0-1-installation-failure/66192 "2016-11-16T03:43:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtk](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@jtk](https://discuss.elastic.co/u/jtk)\
**Post date:** [November 16, 2016, 3:43am UTC](https://discuss.elastic.co/t/x-pack-5-0-1-installation-failure/66192/1 "2016-11-16T03:43:06Z")

</div>

Perhaps I'm missing something obvious, but I seem unable to install X-Pack 5.0.1. Just a few days ago I had installed the ELK stack on a Debian 8 system using packages. I performed an `sudo apt-get upgrade` and got the 5.0.1 elasticsearch and kibana, but not x-pack. So I tried installing the .zip manually. If I try:

> `sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///home/jtk/dl/x-pack-5.0.1.zip -v`

I get the following output:

> `Retrieving zip from file:///home/jtk/dl/x-pack-5.0.1.zip
> [=================================================] 100%   
> - Plugin information:
> Name: x-pack
> Description: Elasticsearch Expanded Pack Plugin
> Version: 5.0.1
> * Classname: org.elasticsearch.xpack.XPackPlugin
> Exception in thread "main" java.lang.IllegalArgumentException: Plugin [x-pack] is incompatible with Elasticsearch [5.0.1]. Was designed for version [5.0.0]
> 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:448)
> at org.elasticsearch.plugins.InstallPluginCommand.verify(InstallPluginCommand.java:429)
> at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:471)
> at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:209)
> at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:192)
> 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)
> `

Perhaps the new .zip file is missing something or I am? Thanks for any pointers.

---

<div class="post-metadata">

**Author:** ![skearns](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skearns/32/125945_2.png) [@skearns](https://discuss.elastic.co/u/skearns)\
**Post date:** [November 16, 2016, 4:11am UTC](https://discuss.elastic.co/t/x-pack-5-0-1-installation-failure/66192/2 "2016-11-16T04:11:26Z")

</div>

In a fresh install of ES via tar.gz, I confirmed that x-pack successfully installs with both the online install (`bin/elasticsearch-plugin install x-pack`) and with the offline install (downloaded from the link [https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-installing-offline](https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-installing-offline), and running the install according to the instructions there.

It looks like you upgraded in-place (which is what our package installers do today). This means that the old 5.0.0 plugin is still present as if it were installed. The plugin installer tries to start up, read existing state and plugins, and fails before even trying to install X-Pack 5.0.1

To fix this, you can simply uninstall x-pack, then re-run the same install command you have been trying.

`bin/elasticsearch-plugin remove x-pack`

then

`sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///home/jtk/dl/x-pack-5.0.1.zip -v`

This is also buried in the docs here:  
[https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-upgrading](https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-upgrading)

---

<div class="post-metadata">

**Author:** ![jtk](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@jtk](https://discuss.elastic.co/u/jtk)\
**Post date:** [November 16, 2016, 4:15am UTC](https://discuss.elastic.co/t/x-pack-5-0-1-installation-failure/66192/3 "2016-11-16T04:15:36Z")

</div>

Thanks kindly and for the speedy reply. I just discovered this via IRC (hat tip to tim-v there for helping pinpoint it there). Removing the old version was what I needed to do first.

---

<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:** [December 14, 2016, 4:15am UTC](https://discuss.elastic.co/t/x-pack-5-0-1-installation-failure/66192/4 "2016-12-14T04:15:47Z")

</div>

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