Unable to install x-pack for version 6.2.1

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.

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

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)

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

That shows:

dfdba954eaaad75c1fef46e035cb6d205e2aec73274d312de6682acbaf947d49016e39cb202194ec3f1737054b998d8a81e88c4a274d7d3f0db3da52e0c31f1d  x-pack-6.2.1.zip

Which matches what I downloaded:

$ 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

Thanks. I will try again.

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

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