I'm attempting to deploy the Elastic Stack (v7.5.0) to Kubernetes, via the helm charts provided by Elastic. Elasticsearch and Logstash appear to come up correctly. Kibana also initially appears to come up correctly, but shortly after it gives the optimizing
message (below), it crashes with the attached error in the logs.
One item I found indicated that it might be a permissions error, but running Kibana as root
user didn't change the outcome, and when I look inside the image, it appears that everything is owned by user 1000
.
{"type":"log","@timestamp":"2019-12-13T15:25:55Z","tags":["info","plugins","translations"],"pid":8,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2019-12-13T15:25:55Z","tags":["info","plugins","data"],"pid":8,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2019-12-13T15:25:55Z","tags":["info","plugins-system"],"pid":8,"message":"Starting [3] plugins: [security,translations,data]"}
{"type":"log","@timestamp":"2019-12-13T15:26:22Z","tags":["info","optimize"],"pid":8,"message":"Optimizing and caching bundles for graph, monitoring, space_selector, login, overwritten_session, logout, logged_out, ml, dashboardViewer, apm, code, maps, canvas, infra, siem, uptime, elastalert-kibana-plugin, kibana, stateSessionStorageRedirect, status_page and timelion. This may take a few minutes"}
events.js:174
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at Pipe.onStreamRead (internal/stream_base_commons.js:111:27)
Emitted 'error' event at:
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
I haven't been able to find much regarding this error.
Update
On doing a little digging, I'm also, at least occasionally, seeing the following error right before the crash:
{ [Error: ENOBUFS: no buffer space available, write] errno: -105, code: 'ENOBUFS', syscall: 'write' }