# Problem to cretae token for kibana interface

**URL:** <https://discuss.elastic.co/t/problem-to-cretae-token-for-kibana-interface/304829>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [May 16, 2022, 1:56pm UTC](https://discuss.elastic.co/t/problem-to-cretae-token-for-kibana-interface/304829 "2022-05-16T13:56:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Firas\_Bougrine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/firas_bougrine/32/103349_2.png) [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Post date:** [May 16, 2022, 1:56pm UTC](https://discuss.elastic.co/t/problem-to-cretae-token-for-kibana-interface/304829/1 "2022-05-16T13:56:51Z")

</div>

```auto

```

elastic@elastic:/usr/share/Elasticsearch/bin$ sudo ./Elasticsearch-create-enrollment-token -s kibana

```auto
`Preformatted text`:1415) ~[?:?]
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:450) ~[?:?]
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421) ~[?:?]
        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java: 578) ~[?:?]
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect (AbstractDelegateHttpsURLConnection.java:183) ~[?:?]
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLCon nectionImpl.java:142) ~[?:?]
        at org.elasticsearch.xpack.core.common.socket.SocketAccess.lambda$doPriv ileged$0(SocketAccess.java:42) ~[x-pack-core-8.2.0.jar:8.2.0]
        at java.security.AccessController.doPrivileged(AccessController.java:569 ) [?:?]
        at org.elasticsearch.xpack.core.common.socket.SocketAccess.doPrivileged( SocketAccess.java:41) [x-pack-core-8.2.0.jar:8.2.0]
        at org.elasticsearch.xpack.core.security.CommandLineHttpClient.execute(C ommandLineHttpClient.java:178) [x-pack-core-8.2.0.jar:8.2.0]
        at org.elasticsearch.xpack.core.security.CommandLineHttpClient.execute(C ommandLineHttpClient.java:112) [x-pack-core-8.2.0.jar:8.2.0]
        at org.elasticsearch.xpack.security.tool.BaseRunAsSuperuserCommand.check ClusterHealthWithRetries(BaseRunAsSuperuserCommand.java:213) [x-pack-security-8. 2.0.jar:8.2.0]
        at org.elasticsearch.xpack.security.tool.BaseRunAsSuperuserCommand.execu te(BaseRunAsSuperuserCommand.java:126) [x-pack-security-8.2.0.jar:8.2.0]
        at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(Environm entAwareCommand.java:81) [elasticsearch-8.2.0.jar:8.2.0]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:1 12) [elasticsearch-cli-8.2.0.jar:8.2.0]
        at org.elasticsearch.cli.Command.main(Command.java:77) [elasticsearch-cl i-8.2.0.jar:8.2.0]
        at org.elasticsearch.xpack.security.enrollment.tool.CreateEnrollmentToke nTool.main(CreateEnrollmentTokenTool.java:59) [x-pack-security-8.2.0.jar:8.2.0]

ERROR: Failed to determine the health of the cluster.`Preformatted text`

```

```auto

```

---

<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:** [May 16, 2022, 2:27pm UTC](https://discuss.elastic.co/t/problem-to-cretae-token-for-kibana-interface/304829/2 "2022-05-16T14:27:02Z")

</div>

Please add the whole stack trace. Your Elasticsearch cluster seems to not be operational, can you check in your logs and see if there are any errors there ?

---

<div class="post-metadata">

**Author:** ![Firas\_Bougrine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/firas_bougrine/32/103349_2.png) [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Post date:** [May 16, 2022, 2:34pm UTC](https://discuss.elastic.co/t/problem-to-cretae-token-for-kibana-interface/304829/3 "2022-05-16T14:34:02Z")

</div>

what the cmd to show my logs?

---

<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:** [May 17, 2022, 1:50am UTC](https://discuss.elastic.co/t/problem-to-cretae-token-for-kibana-interface/304829/4 "2022-05-17T01:50:13Z")

</div>

In future, please don't just post a topic with nothing but a log excerpt with no other information. We need information like what version of Elasticsearch you are using, what the logs show, etc.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [May 17, 2022, 4:07am UTC](https://discuss.elastic.co/t/problem-to-cretae-token-for-kibana-interface/304829/5 "2022-05-17T04:07:00Z")

</div>

> **[Logging | Elasticsearch Guide \[8.2\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/logging.html)**

---

<div class="post-metadata">

**Author:** ![Firas\_Bougrine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/firas_bougrine/32/103349_2.png) [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Post date:** [May 23, 2022, 2:21pm UTC](https://discuss.elastic.co/t/problem-to-cretae-token-for-kibana-interface/304829/6 "2022-05-23T14:21:46Z")

</div>

```auto
test@test:~$ sudo tail -f /var/log/elasticsearch/elasticsearch.log
[2022-05-23T14:20:47,686][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:47978}
[2022-05-23T14:20:47,690][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:47980}
[2022-05-23T14:20:52,687][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:47982}
[2022-05-23T14:20:52,690][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:47984}
[2022-05-23T14:20:52,692][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:47986}
[2022-05-23T14:20:52,694][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:47988}
[2022-05-23T14:20:57,686][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:47990}
[2022-05-23T14:20:57,690][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:47992}
[2022-05-23T14:20:57,691][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:47994}
[2022-05-23T14:20:57,694][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:47996}
[2022-05-23T14:21:02,688][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:47998}
[2022-05-23T14:21:02,691][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:48000}
[2022-05-23T14:21:02,694][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:48002}
[2022-05-23T14:21:02,696][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:48004}

[2022-05-23T14:21:07,695][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:48006}
[2022-05-23T14:21:07,697][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:48008}
[2022-05-23T14:21:07,702][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:48010}
[2022-05-23T14:21:07,702][WARN][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [test] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:48012}

```

---

<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:** [May 23, 2022, 9:59pm UTC](https://discuss.elastic.co/t/problem-to-cretae-token-for-kibana-interface/304829/7 "2022-05-23T21:59:56Z")

</div>

It looks like you are using HTTP to talk to Elasticsearch, not HTTPS.

---

<div class="post-metadata">

**Author:** ![Firas\_Bougrine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/firas_bougrine/32/103349_2.png) [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Post date:** [May 26, 2022, 12:54pm UTC](https://discuss.elastic.co/t/problem-to-cretae-token-for-kibana-interface/304829/8 "2022-05-26T12:54:24Z")

</div>

yes I can't download a token , it's tell me this error

---

<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:** [June 23, 2022, 12:54pm UTC](https://discuss.elastic.co/t/problem-to-cretae-token-for-kibana-interface/304829/9 "2022-06-23T12:54:53Z")

</div>

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