Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.
Try OpsGPT now for step-by-step guidance and tailored insights into your Elasticsearch operation.
Briefly, this error occurs when Elasticsearch receives an HTTP request on an HTTPS port. This typically happens when you’re trying to access Elasticsearch with HTTP on a port that is configured for HTTPS. To resolve this issue, you can either change the port you’re sending the request to, or switch your request to HTTPS. Alternatively, you can reconfigure Elasticsearch to accept HTTP on the port you’re using. However, this might not be recommended for security reasons.
For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.
This guide will help you check for common problems that cause the log ” received plaintext http traffic on a https channel; closing connection {} ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.
Log Context
Log “received plaintext http traffic on a https channel; closing connection {}” classname is SecurityNetty4HttpServerTransport.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
if (isNotSslRecordException(cause)) { if (logger.isTraceEnabled()) { logger.trace(new ParameterizedMessage("received plaintext http traffic on a https channel; closing connection {}"; ctx.channel()); cause); } else { logger.warn("received plaintext http traffic on a https channel; closing connection {}"; ctx.channel()); } ctx.channel().close(); } else if (isCloseDuringHandshakeException(cause)) { if (logger.isTraceEnabled()) { logger.trace(new ParameterizedMessage("connection {} closed during ssl handshake"; ctx.channel()); cause);