kibana-mithril icon indicating copy to clipboard operation
kibana-mithril copied to clipboard

Error: read ECONNRESET

Open yongyct opened this issue 3 years ago • 2 comments

Hi,

Seems to be facing this intermittent issue, where the Kibana service stops every ~20mins.

My team is seeing the below logs when Kibana service faces an error: image

Upon inspecting closer, it seems like the LDAP session could be closed every few moments, based on this link: https://github.com/ldapjs/node-ldapjs/issues/318#issuecomment-165769581. (it was mentioned that setting a "reconnect: true" option when creating the LDAP client could help address the issue).

Wanted to check if this item can be handled? Not sure if adding the "reconnect: true" option here helps: https://github.com/codingchili/kibana-mithril/blob/master/src/authentication/ldap.js#L62

Thanks.

yongyct avatar Feb 09 '21 12:02 yongyct

Hello,

Thanks for the links and the report.

I added the reconnect option and error handler and released 1.2.2.

Let me know if this fixes your issue, I don't have the time to test with a real AD right now.

The implementation is in src/authentication/ldap.js if you want to experiment on your own.

BR // Robin

codingchili avatar Feb 28 '21 13:02 codingchili

Ah, the release is not available yet because of outdated credentials in the build pipeline. I'll be back later.

codingchili avatar Feb 28 '21 13:02 codingchili