# Error kibana-plugin install (metadata)

**URL:** <https://discuss.elastic.co/t/error-kibana-plugin-install-metadata/123562>\
**Category:** Kibana\
**Created:** [March 12, 2018, 2:17pm UTC](https://discuss.elastic.co/t/error-kibana-plugin-install-metadata/123562 "2018-03-12T14:17:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidp/32/28686_2.png) [@davidp](https://discuss.elastic.co/u/davidp)\
**Post date:** [March 12, 2018, 2:17pm UTC](https://discuss.elastic.co/t/error-kibana-plugin-install-metadata/123562/1 "2018-03-12T14:17:34Z")

</div>

Hi there,  
I installed in CentOS 7 ELK in version 6.2.2. Now installing the X-Pack according to instructions in [https://www.elastic.co/downloads/x-pack](https://www.elastic.co/downloads/x-pack) I get the following error:

[david@localhost bin]$ sudo ./kibana-plugin install file:///home/david/Downloads/x-pack-6.2.2.zip  
Found previous install attempt. Deleting...  
Attempting to transfer from file:///home/david/Downloads/x-pack-6.2.2.zip  
Transferring unknown number of bytes  
Transfer complete  
Retrieving metadata from plugin archive  
Error: end of central directory record signature not found  
at /usr/share/kibana/node\_modules/yauzl/index.js:179:14  
at Immediate. (/usr/share/kibana/node\_modules/yauzl/index.js:532:38)  
at runCallback (timers.js:672:20)  
at tryOnImmediate (timers.js:645:5)  
at processImmediate [as \_immediateCallback] (timers.js:617:5)  
Plugin installation was unsuccessful due to error "Error retrieving metadata from plugin archive"

I get the same error with:  
sudo ./kibana-plugin install x-pack

The CentOS is a Vbox virtual machine and I'm using a Nginx to access kibana.

thanks in advance,  
David

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [March 12, 2018, 2:32pm UTC](https://discuss.elastic.co/t/error-kibana-plugin-install-metadata/123562/2 "2018-03-12T14:32:54Z")

</div>

Hi

Did you download the file from [here](https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-6.2.2.zip) ? Can you also verify that the SHA512 digest is the same as [https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-6.2.2.zip.sha512](https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-6.2.2.zip.sha512) ?

---

<div class="post-metadata">

**Author:** ![davidp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidp/32/28686_2.png) [@davidp](https://discuss.elastic.co/u/davidp)\
**Post date:** [March 12, 2018, 3:43pm UTC](https://discuss.elastic.co/t/error-kibana-plugin-install-metadata/123562/3 "2018-03-12T15:43:12Z")

</div>

yes Ioannis,  
it's from the URL you say. I also checked the SHA512

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [March 12, 2018, 4:22pm UTC](https://discuss.elastic.co/t/error-kibana-plugin-install-metadata/123562/4 "2018-03-12T16:22:04Z")

</div>

I can't seem to reproduce this. I just gave it a try on a newly installed CentOS 7 in VirtualBox with no issue whatsoever.  
What I find peculiar is the `Transferring unknown number of bytes`, it usually prints the number of bytes of the ZIP archive there instead of `unknown`. I would think that X-Pack archive is corrupted somehow but you mentioned you checked the SHA512 and it matches.

When running `sudo ./kibana-plugin install x-pack`, does it download the the archive just fine and then exits with the `Error retrieving metadata from plugin archive`?

---

<div class="post-metadata">

**Author:** ![davidp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidp/32/28686_2.png) [@davidp](https://discuss.elastic.co/u/davidp)\
**Post date:** [March 12, 2018, 4:59pm UTC](https://discuss.elastic.co/t/error-kibana-plugin-install-metadata/123562/5 "2018-03-12T16:59:15Z")

</div>

no idea why, but I executed again the command that downloads the plugin automatically and it went well:

[david@localhost bin]$ sudo ./kibana-plugin install x-pack  
[sudo] password for david:  
Attempting to transfer from x-pack  
Attempting to transfer from [https://artifacts.elastic.co/downloads/kibana-plugins/x-pack/x-pack-6.2.2.zip](https://artifacts.elastic.co/downloads/kibana-plugins/x-pack/x-pack-6.2.2.zip)  
Transferring 269704442 bytes....................  
Transfer complete  
Retrieving metadata from plugin archive  
Extracting plugin archive  
Extraction complete  
Optimizing and caching browser bundles...  
Plugin installation complete

thanks Ioannis

---

<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:** [April 9, 2018, 4:59pm UTC](https://discuss.elastic.co/t/error-kibana-plugin-install-metadata/123562/6 "2018-04-09T16:59:42Z")

</div>

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