Intermittent SSL errors while calling ElasticSearch Cluster
See original GitHub issueNEST/Elasticsearch.Net version: 7.7.1
Elasticsearch version: 7.7 (TLS support 1.0 and above)
Description of the problem including expected versus actual behaviour: I have aspnet core client, that is calling ElasticSearch cluster. What I notice is, every once in a while, some requests return SSL errors.
Here we can see 8 of these errors occurred.
Expected behaviour SSL errors should not happen intermittently.
Client setup: the client is registered as follows: services.AddSingleton<IEsClient>(sp => { var connectionPool = new SingleNodeConnectionPool(new Uri(serviceEndpoints.ESUrl)); var settings = new ConnectionSettings(connectionPool); return new esclient(settings); });
Provide DebugInformation
(if relevant):
Part of the stack trace
---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
at System.Net.Security.SslStream.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) ```
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
SSLHandshakeException causes connections to fail
A SSLHandshakeException causes a connection to a node to fail and indicates that there is a configuration issue. Some of the common exceptions...
Read more >Common SSL/TLS exceptions | Elasticsearch Guide [8.9]
Indicates that there was incoming plaintext traffic on an SSL connection. This typically occurs when a node is not configured to use encrypted...
Read more >Common problems | APM Server Reference [7.15]
Buffer data temporarily if Elasticsearch is intermittently unavailable; Handle sudden large spikes of data; Send documents to Elasticsearch in bulk, instead of ...
Read more >SSL Handshake error while adding node to elasticsearch
I am trying to add node in elasticsearch cluster, when I restart elasticsearch service on data node it give below error.
Read more >Setup-passwords command fails due to connection failure
The elasticsearch-setup-passwords command sets passwords for the built-in users by sending user management API requests. If your cluster uses SSL/TLS for ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks Steve, I will post an update here once I solve this mystery !
@sandeeppnaik I’ll close this issue for now but please do feel free to update with any further details that may assist others if they run into this.