question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intermittent SSL errors while calling ElasticSearch Cluster

See original GitHub issue

NEST/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.

image 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:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sandeeppnaikcommented, Jul 15, 2021

Thanks Steve, I will post an update here once I solve this mystery !

0reactions
stevejgordoncommented, Jul 15, 2021

@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.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found