# Kibana can not use x-pack feature

**URL:** <https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849>\
**Category:** Elasticsearch\
**Created:** [February 3, 2019, 5:41am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849 "2019-02-03T05:41:28Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenjienn](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@chenjienn](https://discuss.elastic.co/u/chenjienn)\
**Post date:** [February 3, 2019, 5:41am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/1 "2019-02-03T05:41:28Z")

</div>

I have set up elasticsearch cluster and try to use kibana, but it seems the kibana can not obtained the x-pack information

 ![curl-es](https://us1.discourse-cdn.com/elastic/original/3X/5/0/502188532e98960eac97e106c2e40091a491e6b3.png)  
 ![kibana-error](https://us1.discourse-cdn.com/elastic/original/3X/8/2/82a26440d02b1e606732f38e1dda351b3e6d4cb6.png)

here is my kibana and es config

```
server.host: "10.18.1.50"
server.name: "mdw_dev"
elasticsearch.url: "http://10.18.1.54:9200"
elasticsearch.username: "kibana"
elasticsearch.password: "MvHuH7yb2f9ZY1WgXFvh"

logging.dest: /var/log/kibana/kibana.log

```

* * *

```
cluster.name: mdw_dev

node.name: ${HOSTNAME}
node.master: true
node.data: true
node.ingest: true

path.data: /app/elasticsearch/data

path.logs: /app/elasticsearch/log

network.host: 10.18.1.54

discovery.zen.ping.unicast.hosts: ["10.18.1.53:9300", "10.18.1.54:9300"]

discovery.zen.minimum_master_nodes: 1

xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: /app/elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: /app/elastic-certificates.p12
action.auto_create_index: .security,.monitoring*,.watches,.triggered_watches,.watcher-history*,.ml*,spn-*,*
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 3, 2019, 6:13am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/2 "2019-02-03T06:13:38Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them 🙂

What version are you on?  
What is the output of the `_xpack` API? (ie what license are you using)

---

<div class="post-metadata">

**Author:** ![chenjienn](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@chenjienn](https://discuss.elastic.co/u/chenjienn)\
**Post date:** [February 3, 2019, 6:38am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/3 "2019-02-03T06:38:22Z")

</div>

sorry, it's my first time to use the forum

the es & kibana version is 6.5.4

the output for `curl -u elastic:3RVialJiyAjS03Z75P1A 'http://10.18.1.54:9200/_xpack'` is empty, and es throws the following exception:

```
[2019-02-03T14:34:28,482][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [MDWDevEsMaster02] fatal error in thread [elasticsearch[MDWDevEsMaster02][get][T#1]], exiting
java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.xpack.core.XPackBuild
        at org.elasticsearch.xpack.core.action.TransportXPackInfoAction.doExecute(TransportXPackInfoAction.java:50) ~[?:?]
        at org.elasticsearch.xpack.core.action.TransportXPackInfoAction.doExecute(TransportXPackInfoAction.java:29) ~[?:?]
        at org.elasticsearch.action.support.TransportAction.doExecute(TransportAction.java:143) ~[elasticsearch-6.5.4.jar:6.5.4]
        at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:167) ~[elasticsearch-6.5.4.jar:6.5.4]
        at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$apply$0(SecurityActionFilter.java:90) ~[?:?]
        at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:60) ~[elasticsearch-6.5.4.jar:6.5.4]
        at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$authorizeRequest$4(SecurityActionFilter.java:179) ~[?:?]
        at org.elasticsearch.xpack.security.authz.AuthorizationUtils$AsyncAuthorizer.maybeRun(AuthorizationUtils.java:173) ~[?:?]
        at ........

```

by the way, my license is trial

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 3, 2019, 6:49am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/4 "2019-02-03T06:49:20Z")

</div>

What do your Elasticsearch logs show?

---

<div class="post-metadata">

**Author:** ![chenjienn](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@chenjienn](https://discuss.elastic.co/u/chenjienn)\
**Post date:** [February 3, 2019, 6:51am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/5 "2019-02-03T06:51:29Z")

</div>

the log is just throws the exception as mentioned above

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 3, 2019, 6:52am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/6 "2019-02-03T06:52:11Z")

</div>

There's nothing before/after that?

---

<div class="post-metadata">

**Author:** ![chenjienn](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@chenjienn](https://discuss.elastic.co/u/chenjienn)\
**Post date:** [February 3, 2019, 6:55am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/7 "2019-02-03T06:55:35Z")

</div>

the before is:  
[2019-02-03T14:34:04,717][INFO][o.e.x.s.a.s.FileRolesStore] [MDWDevEsMaster02] parsed [0] roles from file [/etc/elasticsearch/roles.yml]  
[2019-02-03T14:34:05,561][INFO][o.e.x.m.j.p.l.CppLogMessageHandler] [MDWDevEsMaster02] [controller/118186] [Main.cc@109] controller (64 bit): Version 6.5.4 (Build b616085ef32393) Copyright (c) 2018 Elasticsearch BV  
[2019-02-03T14:34:06,309][DEBUG][o.e.a.ActionModule] [MDWDevEsMaster02] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security  
[2019-02-03T14:34:06,728][INFO][o.e.d.DiscoveryModule] [MDWDevEsMaster02] using discovery type [zen] and host providers [settings]  
[2019-02-03T14:34:08,215][INFO][o.e.n.Node] [MDWDevEsMaster02] initialized  
[2019-02-03T14:34:08,215][INFO][o.e.n.Node] [MDWDevEsMaster02] starting ...  
[2019-02-03T14:34:08,480][INFO][o.e.t.TransportService] [MDWDevEsMaster02] publish\_address {10.18.1.54:9300}, bound\_addresses {10.18.1.54:9300}  
[2019-02-03T14:34:08,515][INFO][o.e.b.BootstrapChecks] [MDWDevEsMaster02] bound or publishing to a non-loopback address, enforcing bootstrap checks  
[2019-02-03T14:34:12,277][INFO][o.e.c.s.ClusterApplierService] [MDWDevEsMaster02] detected\_master {MDWDevEsMaster01}{MBwCwYhFQxyQoQZ\_alb6Qg}{YhmAQgxsSkS44xAiMAfz\_A}{10.18.1.53}{10.18.1.53:9300}{ml.machine\_memory=8176611328, ml.max\_open\_jobs=20, xpack.installed=true, ml.enabled=true}, added {{MDWDevEsMaster01}{MBwCwYhFQxyQoQZ\_alb6Qg}{YhmAQgxsSkS44xAiMAfz\_A}{10.18.1.53}{10.18.1.53:9300}{ml.machine\_memory=8176611328, ml.max\_open\_jobs=20, xpack.installed=true, ml.enabled=true},}, reason: apply cluster state (from master [master {MDWDevEsMaster01}{MBwCwYhFQxyQoQZ\_alb6Qg}{YhmAQgxsSkS44xAiMAfz\_A}{10.18.1.53}{10.18.1.53:9300}{ml.machine\_memory=8176611328, ml.max\_open\_jobs=20, xpack.installed=true, ml.enabled=true} committed version [47]])  
[2019-02-03T14:34:12,746][INFO][o.e.x.s.a.TokenService] [MDWDevEsMaster02] refresh keys  
[2019-02-03T14:34:13,182][INFO][o.e.x.s.a.TokenService] [MDWDevEsMaster02] refreshed keys  
[2019-02-03T14:34:13,240][INFO][o.e.l.LicenseService] [MDWDevEsMaster02] license [bc13a206-c347-4594-90ee-13f7d82d5dfd] mode [trial] - valid  
[2019-02-03T14:34:13,276][INFO][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [MDWDevEsMaster02] publish\_address {10.18.1.54:9200}, bound\_addresses {10.18.1.54:9200}  
[2019-02-03T14:34:13,276][INFO][o.e.n.Node] [MDWDevEsMaster02] started  
[2019-02-03T14:34:28,482][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [MDWDevEsMaster02] fatal error in thread [elasticsearch[MDWDevEsMaster02][get][T#1]], exiting  
java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.xpack.core.XPackBuild

* * *

the after is the rest of the exception stack and it is too long to paste on board

---

<div class="post-metadata">

**Author:** ![chenjienn](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@chenjienn](https://discuss.elastic.co/u/chenjienn)\
**Post date:** [February 3, 2019, 8:27am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/8 "2019-02-03T08:27:48Z")

</div>

i have fixed this problem, thank you for your previously help !

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 3, 2019, 9:00am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/9 "2019-02-03T09:00:18Z")

</div>

How did you fix it? Your solution might help others in future.

---

<div class="post-metadata">

**Author:** ![chenjienn](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@chenjienn](https://discuss.elastic.co/u/chenjienn)\
**Post date:** [February 3, 2019, 9:19am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/10 "2019-02-03T09:19:49Z")

</div>

i modified the x-pack-core-6.5.4.jar before , so i just replaced it by the previous origin jar

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 3, 2019, 9:21am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/11 "2019-02-03T09:21:00Z")

</div>

Oh. Why did you modify it?

---

<div class="post-metadata">

**Author:** ![chenjienn](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@chenjienn](https://discuss.elastic.co/u/chenjienn)\
**Post date:** [February 3, 2019, 10:05am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/12 "2019-02-03T10:05:05Z")

</div>

i try to bypass validation of the x-pack for experiment

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 3, 2019, 8:53pm UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/13 "2019-02-03T20:53:19Z")

</div>

That's not really cool at all.  
Not only is it against the terms of the license, you're abusing our good faith.

---

<div class="post-metadata">

**Author:** ![chenjienn](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@chenjienn](https://discuss.elastic.co/u/chenjienn)\
**Post date:** [February 4, 2019, 3:16am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/14 "2019-02-04T03:16:30Z")

</div>

sorry about that, i will not do that again

---

<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 4, 2019, 3:16am UTC](https://discuss.elastic.co/t/kibana-can-not-use-x-pack-feature/166849/15 "2019-03-04T03:16:33Z")

</div>

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