# Kibana.5.2.1 x-pack plugin installation failure

**URL:** <https://discuss.elastic.co/t/kibana-5-2-1-x-pack-plugin-installation-failure/77060>\
**Category:** Kibana\
**Created:** [March 1, 2017, 10:18pm UTC](https://discuss.elastic.co/t/kibana-5-2-1-x-pack-plugin-installation-failure/77060 "2017-03-01T22:18:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venkata\_Surapaneni](https://avatars.discourse-cdn.com/v4/letter/v/ec9cab/32.png) [@Venkata\_Surapaneni](https://discuss.elastic.co/u/Venkata_Surapaneni)\
**Post date:** [March 1, 2017, 10:18pm UTC](https://discuss.elastic.co/t/kibana-5-2-1-x-pack-plugin-installation-failure/77060/1 "2017-03-01T22:18:28Z")

</div>

I am using home-brew to install ELK stack with x-pack on my local OS X laptop. Earlier I was running 5.1.2 version without any issues. After upgrading ES, Kibana, LogStash to 5.2 version, X-Pack plugin installation on kibana is failing which is causing not to load kibana UI at [http://localhost:5601/](http://localhost:5601/)

M266965QDG3QN:5.2.1 venkata\_surapaneni$ pwd  
/usr/local/Cellar/kibana/5.2.1  
M266965QDG3QN:5.2.1 venkata\_surapaneni$ bin/kibana-plugin install x-pack  
Attempting to transfer from x-pack  
Attempting to transfer from [https://artifacts.elastic.co/downloads/kibana-plugins/x-pack/x-pack-5.2.1.zip](https://artifacts.elastic.co/downloads/kibana-plugins/x-pack/x-pack-5.2.1.zip)  
Transferring 108044516 bytes....................  
Transfer complete  
Retrieving metadata from plugin archive  
Extracting plugin archive  
Extraction complete  
Optimizing and caching browser bundles...  
Plugin installation was unsuccessful due to error "Optimizations failure.

```
ERROR in ./src/ui/public/autoload/styles.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../../../../ui_framework/dist/ui_framework.css in /usr/local/Cellar/kibana/5.2.1/src/ui/public/autoload
 @ ./src/ui/public/autoload/styles.js 4:0-57

```

"

M266965QDG3QN:5.2.1 venkata\_surapaneni$ brew info elasticsearch  
elasticsearch: stable 5.2.2, HEAD  
Distributed search & analytics engine  
[https://www.elastic.co/products/elasticsearch](https://www.elastic.co/products/elasticsearch)  
/usr/local/Cellar/elasticsearch/5.1.2 (102 files, 45.9M)  
Built from source on 2017-01-26 at 15:38:26  
/usr/local/Cellar/elasticsearch/5.2.2 (141 files, 52.5M) \*  
Built from source on 2017-03-01 at 13:06:27  
From: [https://github.com/Homebrew/homebrew-core/blob/master/Formula/elasticsearch.rb](https://github.com/Homebrew/homebrew-core/blob/master/Formula/elasticsearch.rb)  
==\> Requirements  
Required: java \>= 1.8 ✔  
==\> Caveats  
Data: /usr/local/var/elasticsearch/elasticsearch\_venkata\_surapaneni/  
Logs: /usr/local/var/log/elasticsearch/elasticsearch\_venkata\_surapaneni.log  
Plugins: /usr/local/opt/elasticsearch/libexec/plugins/  
Config: /usr/local/etc/elasticsearch/  
plugin script: /usr/local/opt/elasticsearch/libexec/bin/elasticsearch-plugin

To have launchd start elasticsearch now and restart at login:  
brew services start elasticsearch  
Or, if you don't want/need a background service you can just run:  
elasticsearch  
M266965QDG3QN:5.2.1 venkata\_surapaneni$ brew info kibana  
kibana: stable 5.2.1 (bottled), HEAD  
Analytics and search dashboard for Elasticsearch  
[https://www.elastic.co/products/kibana](https://www.elastic.co/products/kibana)  
/usr/local/Cellar/kibana/5.1.2 (17,639 files, 190.2M)  
Poured from bottle on 2017-01-26 at 17:29:16  
/usr/local/Cellar/kibana/5.2.1 (17,452 files, 136.6M) \*  
Poured from bottle on 2017-03-01 at 12:48:36  
From: [https://github.com/Homebrew/homebrew-core/blob/master/Formula/kibana.rb](https://github.com/Homebrew/homebrew-core/blob/master/Formula/kibana.rb)  
==\> Requirements  
Build: git ✔  
==\> Caveats  
Config: /usr/local/etc/kibana/  
If you wish to preserve your plugins upon upgrade, make a copy of  
/usr/local/opt/kibana/plugins before upgrading, and copy it into the  
new keg location after upgrading.

To have launchd start kibana now and restart at login:  
brew services start kibana  
Or, if you don't want/need a background service you can just run:  
kibana  
M266965QDG3QN:5.2.1 venkata\_surapaneni$ brew info logstash  
logstash: stable 5.2.2, HEAD  
Tool for managing events and logs  
[https://www.elastic.co/products/logstash](https://www.elastic.co/products/logstash)  
/usr/local/Cellar/logstash/5.2.2 (10,637 files, 168.7M) \*  
Built from source on 2017-03-01 at 13:43:57  
From: [https://github.com/Homebrew/homebrew-core/blob/master/Formula/logstash.rb](https://github.com/Homebrew/homebrew-core/blob/master/Formula/logstash.rb)  
==\> Requirements  
Required: java \>= 1.8 ✔  
==\> Caveats  
Please read the getting started guide located at:  
[https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html](https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html)

---

<div class="post-metadata">

**Author:** ![Venkata\_Surapaneni](https://avatars.discourse-cdn.com/v4/letter/v/ec9cab/32.png) [@Venkata\_Surapaneni](https://discuss.elastic.co/u/Venkata_Surapaneni)\
**Post date:** [March 1, 2017, 11:35pm UTC](https://discuss.elastic.co/t/kibana-5-2-1-x-pack-plugin-installation-failure/77060/2 "2017-03-01T23:35:11Z")

</div>

I believe the issue is happening because of version mismatch between ES and Kibana. home-brew installed 5.2.2 version of ES and 5.2.1 version of Kibana. Hence, x-pack plugin installation on kibana is throwing an error. Kibana dashboard is working back after switched back to back 5.1.2 version of ES and Kibana. upgrade to 5.2 should be on hold until home-brew updates kibana to 5.2.2 release.

brew switch elasticsearch 5.1.2  
/brew switch kibana 5.1.2

---

<div class="post-metadata">

**Author:** ![richardonichol](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@richardonichol](https://discuss.elastic.co/u/richardonichol)\
**Post date:** [March 15, 2017, 12:08am UTC](https://discuss.elastic.co/t/kibana-5-2-1-x-pack-plugin-installation-failure/77060/3 "2017-03-15T00:08:08Z")

</div>

I have the same problem but I am unable to revert to 5.1 as I do not have it installed. Is there another way to revert or do I have to wait for this to be resolved in order to use X-Pack at all with kibana?

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [March 21, 2017, 1:08am UTC](https://discuss.elastic.co/t/kibana-5-2-1-x-pack-plugin-installation-failure/77060/4 "2017-03-21T01:08:07Z")

</div>

> [@Venkata\_Surapaneni](#):
>
> I believe the issue is happening because of version mismatch between ES and Kibana.

No, this isn't the issue. The issue is with the Kibana formula. I opened [kibana: install UI framework by jasontedor · Pull Request #11360 · Homebrew/homebrew-core · GitHub](https://github.com/Homebrew/homebrew-core/pull/11360).

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [March 21, 2017, 12:16pm UTC](https://discuss.elastic.co/t/kibana-5-2-1-x-pack-plugin-installation-failure/77060/5 "2017-03-21T12:16:44Z")

</div>

This is fixed now. You should: `brew remove kibana && brew update && brew install kibana` to pick up the fix.

---

<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 18, 2017, 12:16pm UTC](https://discuss.elastic.co/t/kibana-5-2-1-x-pack-plugin-installation-failure/77060/6 "2017-04-18T12:16:51Z")

</div>

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