Problem to cretae token for kibana interface


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

`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`

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 ?

1 Like

what the cmd to show my logs?

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.

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}

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

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

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