-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kibana crashes with ECONNRESET
when connection to remote cluster is lost due to unhandled promises
#110433
Comments
ECONNRESET
crashed Kibana when network connectivity is lostECONNRESET
when connection to remote cluster is lost
Pinging @elastic/kibana-core (Team:Core) |
It looks like a plugin performing a request to the Elasticsearch server doesn't handle an exception. |
I tried to hunt it and, unfortunately, I found too many places:
I found a useful way to identify the calls making it fail: I created an ES mock that will always return 505 - and the received body to POST and PUT requests (for now). I can continue the investigation to find them all if we want to, although I'd suggest sending an email to Kibana Contributors, asking to each plugin owner to review their implementations to ensure that this is not happening. However, we may need to document a common way to proceed when plugins need to create something: i.e.: what's the best retrying logic (maybe a core API to do so?). |
Yeah, I'm not sure we are able to find all such cases. |
@spalger found the same problem and fixed a few places in #111637 |
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
@elastic/kibana-alerting-services Based on other's observations, this seems to happen after:
It might just be coincidence though in that when ES is unavailable, task manager is the first to start failing. |
I think it's a coincidence because the task manager message happens whenever it detects that it didn't poll for a certain amount of time ( @gmmorris can you confirm the above statement? |
Indeed. It sounds like a symptom rather than the cause. |
ECONNRESET
when connection to remote cluster is lostECONNRESET
when connection to remote cluster is lost due to unhandled promises
#181456 might finally address this |
The problem
Kibana crashes with
ECONNRESET
error when connection to Elasticsearch cluster is lost (I assume this is the problem)Expectation
Kibana should not crash when connection to Elasticsearch cluster is lost
Reproduction
This happens on my local developer machine when running
yarn start
and connecting to an external (cloud based) elasticsearch cluster. If I close the laptop lid and thus disable network, Kibana crashes after about 1 hour.First I see the following lines:
Then after a few more minutes I see:
And then it crashes with:
The text was updated successfully, but these errors were encountered: