# Unable to install x-pack for version 6.2.1

**URL:** <https://discuss.elastic.co/t/unable-to-install-x-pack-for-version-6-2-1/119371>\
**Category:** Elasticsearch\
**Created:** [February 11, 2018, 9:23am UTC](https://discuss.elastic.co/t/unable-to-install-x-pack-for-version-6-2-1/119371 "2018-02-11T09:23:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kev](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kev](https://discuss.elastic.co/u/kev)\
**Post date:** [February 11, 2018, 9:23am UTC](https://discuss.elastic.co/t/unable-to-install-x-pack-for-version-6-2-1/119371/1 "2018-02-11T09:23:56Z")

</div>

I am building a new CentOS with ELK. CentOS version is:

```
# hostnamectl
   Static hostname: localhost.localdomain
         Icon name: computer-vm
           Chassis: vm
    Virtualization: vmware
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-693.17.1.el7.x86_64
      Architecture: x86-64

```

Elasticsearch, Kibana and Logstash are all on version 6.2.1:  
# curl -XGET 'localhost:9200/?pretty'  
{  
"name" : "jRoJAeb",  
"cluster\_name" : "elasticsearch",  
"cluster\_uuid" : "VC7U\_4e6TgKgQhXJa\_z\_FA",  
"version" : {  
"number" : "6.2.1",  
"build\_hash" : "7299dc3",  
"build\_date" : "2018-02-07T19:34:26.990113Z",  
"build\_snapshot" : false,  
"lucene\_version" : "7.2.1",  
"minimum\_wire\_compatibility\_version" : "5.6.0",  
"minimum\_index\_compatibility\_version" : "5.0.0"  
},  
"tagline" : "You Know, for Search"  
}

However, I have problem to install x-pack. The error I am getting as below:

```
# /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///tmp/x-pack-6.2.1.zip -v
-> Downloading file:///tmp/x-pack-6.2.1.zip
Retrieving zip from file:///tmp/x-pack-6.2.1.zip
[=================================================] 100%Â Â  
Exception in thread "main" java.io.EOFException: Unexpected end of ZLIB input stream
        at java.util.zip.InflaterInputStream.fill(Unknown Source)
        at java.util.zip.InflaterInputStream.read(Unknown Source)
        at java.util.zip.ZipInputStream.read(Unknown Source)
        at java.util.zip.ZipInputStream.closeEntry(Unknown Source)
        at java.util.zip.ZipInputStream.getNextEntry(Unknown Source)
        at org.elasticsearch.plugins.InstallPluginCommand.unzip(InstallPluginCommand.java:469)
        at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:222)
        at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:212)
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
        at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:75)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
        at org.elasticsearch.cli.Command.main(Command.java:90)
        at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:48)

```

I don't have this problem for my another server which is installed previously with version 6.1.2. Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 11, 2018, 11:07am UTC](https://discuss.elastic.co/t/unable-to-install-x-pack-for-version-6-2-1/119371/2 "2018-02-11T11:07:16Z")

</div>

Could you start again? May be the ZIP file that has been downloaded is corrupted?  
Unsure though.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [February 12, 2018, 4:02am UTC](https://discuss.elastic.co/t/unable-to-install-x-pack-for-version-6-2-1/119371/3 "2018-02-12T04:02:22Z")

</div>

I just downloaded it from our website and it's fine ([https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-6.2.1.zip](https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-6.2.1.zip))

To check that it downloaded correctly you can check the SHA-512 file that is provided on the download site

- [https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-6.2.1.zip.sha512](https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-6.2.1.zip.sha512)

That shows:

```auto
dfdba954eaaad75c1fef46e035cb6d205e2aec73274d312de6682acbaf947d49016e39cb202194ec3f1737054b998d8a81e88c4a274d7d3f0db3da52e0c31f1d x-pack-6.2.1.zip

```

Which matches what I downloaded:

```auto
$ du -h x-pack-6.2.1.zip; shasum -a512 x-pack-6.2.1.zip
300M	x-pack-6.2.1.zip
dfdba954eaaad75c1fef46e035cb6d205e2aec73274d312de6682acbaf947d49016e39cb202194ec3f1737054b998d8a81e88c4a274d7d3f0db3da52e0c31f1d x-pack-6.2.1.zip

```

---

<div class="post-metadata">

**Author:** ![kev](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kev](https://discuss.elastic.co/u/kev)\
**Post date:** [February 12, 2018, 4:14am UTC](https://discuss.elastic.co/t/unable-to-install-x-pack-for-version-6-2-1/119371/4 "2018-02-12T04:14:53Z")

</div>

Thanks. I will try again.

---

<div class="post-metadata">

**Author:** ![kev](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kev](https://discuss.elastic.co/u/kev)\
**Post date:** [February 14, 2018, 12:22am UTC](https://discuss.elastic.co/t/unable-to-install-x-pack-for-version-6-2-1/119371/5 "2018-02-14T00:22:46Z")

</div>

Re-download the file and now working fine. Thanks guys.

---

<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:** [March 14, 2018, 12:22am UTC](https://discuss.elastic.co/t/unable-to-install-x-pack-for-version-6-2-1/119371/6 "2018-03-14T00:22:47Z")

</div>

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