Getting connectivity error while trying to connect through default user and password for elasticsearch.
"received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.24.217.21:9200, remoteAddress=/172.24.217.20:54640}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[canon-dev-2][transport_worker][T#11]","log.logger":"org.elasticsearch.http.netty4.Netty4HttpServerTransport","elasticsearch.cluster.uuid":"Hbh2VExoTI2yifEp-BxlAw","elasticsearch.node.id":"D0-8vUujTVGttaORQTBIkQ","elasticsearch.node.name":"canon-dev-2","elasticsearch.cluster.name":"canon-elk-dev"}
{"@timestamp":"2025-03-18T11:00:22.969Z", "log.level": "INFO", "message":"Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user .
What version are you on?
Ans: We are having mixed version in our two clusters
In one node:
logstash-8.8.1-1.x86_64
elasticsearch-8.8.1-1.x86_64
and in an other server :
elasticsearch-7.17.8-1.x86_64
This version mismatch could be a reason for this error?
How did you set up elasticsearch?
Ans: Elastic search is present on two servers pldevelk02 and pldevelk02
What client are you using to connect?
Ans:
We have written a pipeline in logstash pldevelk03 and trying to connect to pldevelk02
yes after run without http it worked but only with a warning which seems to be for security
[apelkdev@pldevelk03 elasticsearch]$ curl -v http://pldevelk02.canonhosted.net:9200
* About to connect() to pldevelk02.canonhosted.net port 9200 (#0)
* Trying 172.24.217.20...
* Connected to pldevelk02.canonhosted.net (172.24.217.20) port 9200 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: pldevelk02.canonhosted.net:9200
> Accept: */*
>
< HTTP/1.1 200 OK
< X-elastic-product: Elasticsearch
< Warning: 299 Elasticsearch-7.17.8-120eabe1c8a0cb2ae87cffc109a5b65d213e9df1 "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."
< content-type: application/json; charset=UTF-8
Thanks for your help .
Can you let me know if the pipeline conf is ok to connect to DB ? because in elasticsearch llog we found this error
[2025-03-24T12:13:44,145][WARN ][o.e.h.n.Netty4HttpServerTransport] [canon-dev-2] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.24.217.21:9200, remoteAddress=/172.24.217.20:41046}
[2025-03-24T12:13:46,626][WARN ][o.e.h.n.Netty4HttpServerTransport] [canon-dev-2] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.24.217.21:9200, remoteAddress=/172.24.217.20:41050}
[2025-03-24T12:13:52,968][INFO ][o.e.x.s.a.RealmsAuthenticator] [canon-dev-2] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]
[2025-03-24T12:13:53,636][WARN ][o.e.h.n.Netty4HttpServerTransport] [canon-dev-2] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.24.217.21:9200, remoteAddress=/172.24.217.20:41070}
[2025-03-24T12:14:02,971][INFO ][o.e.x.s.a.RealmsAuthenticator] [canon-dev-2] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]
[2025-03-24T12:14:05,409][WARN ][o.e.h.n.Netty4HttpServerTransport] [canon-dev-2] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.24.217.21:9200, remoteAddress=/172.24.217.20:41084}
[2025-03-24T12:14:12,969][INFO ][o.e.x.s.a.RealmsAuthenticator] [canon-dev-2] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]
[2025-03-24T12:14:13,071][WARN ][o.e.h.n.Netty4HttpServerTransport] [canon-dev-2] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.24.217.21:9200, remoteAddress=/172.24.217.20:41102}
[2025-03-24T12:14:19,674][WARN ][o.e.h.n.Netty4HttpServerTransport] [canon-dev-2] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.24.217.21:9200, remoteAddress=/172.24.217.20:41108}
[2025-03-24T12:14:22,971][INFO ][o.e.x.s.a.RealmsAuthenticator] [canon-dev-2] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.