Kibana.5.2.1 x-pack plugin installation failure

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/

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
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
/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
==> Requirements
Required: java >= 1.8 :heavy_check_mark:
==> 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
/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
==> Requirements
Build: git :heavy_check_mark:
==> 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
/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
==> Requirements
Required: java >= 1.8 :heavy_check_mark:
==> Caveats
Please read the getting started guide located at:
https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html

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

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?

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.

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

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