Hello,
I am running the development environment on an AWS ec2 instance with 8GB of RAM, 25GB disk space and on AWS Linux 2. I have read somewhere that it this environment has issues running on the web.
I was following the Getting started guide here : https://www.elastic.co/guide/en/kibana/current/development-getting-started.html and ran into an issue at the last step in when I go to run Kibana.
yarn start --run-examples
It give the following error:
Unhandled Promise rejection detected:
Error: Client network socket disconnected before secure TLS connection was established
I have the following trace snippet:
NOTE: I've replaced some of the text to be under the max. limit of characters for this message.
[ec2-user@ip-172-31-12-6 kibana]$ yarn start --run-examples
yarn run v1.22.10
$ node scripts/kibana --dev --run-examples
[2020-12-13T14:46:33.701Z][INFO ][plugins-service] Plugin initialization disabled.
[2020-12-13T14:46:33.770Z][WARN ][savedobjects-service] Skipping Saved Object migrations on startup. Note: Individual documents will still be migrated when read or written.
no-base-path ====================================================================================================
no-base-path Running Kibana in dev mode with --no-base-path disables several useful features and is not recommended
no-base-path ====================================================================================================
np bld log [14:46:35.250] [info][@kbn/optimizer] initialized, 32 bundles cached
np bld log [14:46:35.257] [warning][@kbn/optimizer] only building [v7dark,v7light] themes, customize with the KBN_OPTIMIZER_THEMES environment variable
np bld log [14:46:37.876] [info][@kbn/optimizer] starting worker [43 bundles]
np bld log [14:46:37.892] [info][@kbn/optimizer] starting worker [45 bundles]
watching for changes (7954 files)
server log [14:47:03.030] [info][plugins-service] Plugin "visTypeXy" is disabled.
server log [14:47:04.600] [info][plugins-system] Setting up [107] plugins: [...]
server log [14:47:04.630] [info][plugins][taskManager] TaskManager is identified by the Kibana UUID: 64f54d40-ee3e-499b-9e95-f5dfe88ec3d8
server log [14:47:05.575] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
server log [14:47:05.786] [info][config][plugins][reporting] Chromium sandbox provides an additional layer of protection, and is supported for Linux Amazon Linux 2 (Karoo) OS. Automatically enabling Chromium sandbox.
server log [14:47:06.741] [info][monitoring][monitoring][plugins] config sourced from: production cluster
server log [14:47:07.926] [info][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
server log [14:47:08.233] [info][savedobjects-service] Starting saved objects migrations
server log [14:47:08.931] [info][plugins-system] Starting [107] plugins: [...]
[BABEL] Note: The code generator has deoptimised the styling of /home/ec2-user/repos/kibana/x-pack/plugins/canvas/server/templates/pitch_presentation.ts as it exceeds the max of 500KB.
server log [14:47:17.847] [info][plugins][reporting] Downloading https://storage.googleapis.com/headless_shell/chromium-ef768c9-darwin_x64.zip to /home/ec2-user/repos/kibana/.chromium/chromium-ef768c9-darwin_x64.zip
server log [14:47:18.020] [info][plugins][reporting] Downloading https://storage.googleapis.com/headless_shell/chromium-ef768c9-linux_x64.zip to /home/ec2-user/repos/kibana/.chromium/chromium-ef768c9-linux_x64.zip
server log [14:47:18.048] [info][plugins][reporting] Downloading https://storage.googleapis.com/headless_shell/chromium-ef768c9-linux_arm64.zip to /home/ec2-user/repos/kibana/.chromium/chromium-ef768c9-linux_arm64.zip
server log [14:47:18.070] [info][plugins][reporting] Downloading https://storage.googleapis.com/headless_shell/chromium-ef768c9-windows_x64.zip to /home/ec2-user/repos/kibana/.chromium/chromium-ef768c9-windows_x64.zip
[BABEL] Note: The code generator has deoptimised the styling of /home/ec2-user/repos/kibana/x-pack/plugins/security_solution/server/utils/beat_schema/fields.ts as it exceeds the max of 500KB.
server log [14:47:43.955] [info][listening] Server running at http://localhost:5601
server log [14:47:49.515] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: Request Timeout after 30000ms error
server log [14:47:49.521] [info][plugins][searchprofiler] You cannot use searchprofiler because license information is not available at this time.
server log [14:47:49.527] [info][painlessLab][plugins] You cannot use painlessLab because license information is not available at this time.
server log [14:47:49.537] [info][plugins][watcher] You cannot use watcher because license information is not available at this time.
server log [14:47:49.560] [info][plugins][snapshotRestore] You cannot use snapshot_restore because license information is not available at this time.
server log [14:47:49.561] [info][indexManagement][plugins] You cannot use index_management because license information is not available at this time.
server log [14:47:49.561] [info][plugins][rollup] You cannot use rollup because license information is not available at this time.
server log [14:47:49.561] [info][plugins][remoteClusters] You cannot use Remote Clusters because license information is not available at this time.
server log [14:47:49.561] [info][crossClusterReplication][plugins] You cannot use crossClusterReplication because license information is not available at this time.
server log [14:47:49.562] [info][indexLifecycleManagement][plugins] You cannot use index_lifecycle_management because license information is not available at this time.
server log [14:47:49.562] [info][plugins][transform] You cannot use transform because license information is not available at this time.
server log [14:47:49.562] [info][ingestPipelines][plugins] You cannot use ingest_pipelines because license information is not available at this time.
server log [14:47:49.575] [info][kibana-monitoring][monitoring][monitoring][plugins] Monitoring status upload endpoint is not enabled in Elasticsearch:Monitoring stats collection is stopped
server log [14:47:49.721] [error][plugins][taskManager] Failed to poll for work: Error: work has timed out
server log [14:47:49.736] [warning][plugins][telemetry] Unable to update legacy telemetry configs.
server log [14:47:49.747] [error][ml][plugins] Error Initializing jobs {"name":"TimeoutError","meta":{"body":null,"statusCode":null,"headers":null,"meta":{"context":null,"request":{"params":{"method":"POST","path":"/.kibana/_search","body":"{\"seq_no_primary_term\":true,\"query\":{\"bool\":{\"filter\":[{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"term\":{\"type\":\"ml-job\"}}],\"must_not\":[{\"exists\":{\"field\":\"namespace\"}}]}}],\"minimum_should_match\":1}}]}}}","querystring":"size=0&from=0&rest_total_hits_as_int=true","headers":{"user-agent":"elasticsearch-js/7.10.0 (linux 4.14.209-160.335.amzn2.x86_64-x64; Node.js v14.15.1)","x-elastic-product-origin":"kibana","content-type":"application/json","content-length":"198"},"timeout":30000},"options":{"maxRetries":0,"ignore":[404]},"id":15},"name":"elasticsearch-js","connection":{"url":"http://localhost:9200/","id":"http://localhost:9200/","headers":{},"deadCount":5,"resurrectTimeout":1607871829747,"_openRequests":13,"status":"dead","roles":{"master":true,"data":true,"ingest":true,"ml":false}},"attempts":0,"aborted":false}},"isBoom":true,"isServer":true,"data":null,"output":{"statusCode":503,"payload":{"statusCode":503,"error":"Service Unavailable","message":"Request timed out"},"headers":{}}}
server log [14:47:49.796] [info][server][Kibana][http] http server running at http://localhost:5601
Unhandled Promise rejection detected:
Error: Client network socket disconnected before secure TLS connection was established
at connResetException (internal/errors.js:617:14)
at TLSSocket.onConnectEnd (_tls_wrap.js:1544:19)
at TLSSocket.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
code: 'ECONNRESET',
path: null,
host: 'storage.googleapis.com',
port: 443,
localAddress: undefined,
config: {
url: 'https://storage.googleapis.com/headless_shell/chromium-ef768c9-darwin_x64.zip',
method: 'get',
headers: {
Accept: 'application/json, text/plain, */*',
'User-Agent': 'axios/0.19.2'
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
responseType: 'stream',
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus],
data: undefined
},
request: <ref *1> Writable {
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: false,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 0,
prefinished: false,
errorEmitted: false,
emitClose: true,
autoDestroy: true,
errored: null,
closed: false
},
_events: [Object: null prototype] {
response: [Function: handleResponse],
error: [Function: handleRequestError]
},
_eventsCount: 2,
_maxListeners: undefined,
_options: {
protocol: 'https:',
maxRedirects: 21,
maxBodyLength: 10485760,
path: '/headless_shell/chromium-ef768c9-darwin_x64.zip',
method: 'GET',
headers: [Object],
agent: undefined,
agents: [Object],
auth: undefined,
hostname: 'storage.googleapis.com',
port: null,
nativeProtocols: [Object],
pathname: '/headless_shell/chromium-ef768c9-darwin_x64.zip'
},
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [TLSSocket],
_header: 'GET /headless_shell/chromium-ef768c9-darwin_x64.zip HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'User-Agent: axios/0.19.2\r\n' +
'Host: storage.googleapis.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: noopPendingOutput],
agent: [Agent],
socketPath: undefined,
method: 'GET',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/headless_shell/chromium-ef768c9-darwin_x64.zip',
_ended: false,
res: null,
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'storage.googleapis.com',
protocol: 'https:',
_redirectable: [Circular *1],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
_currentUrl: 'https://storage.googleapis.com/headless_shell/chromium-ef768c9-darwin_x64.zip',
[Symbol(kCapture)]: false
},
response: undefined,
isAxiosError: true,
toJSON: [Function (anonymous)]
}
Terminating process...
server crashed with status code 1
PS: I did get some warnings at the bootstrap step, but there was no failure at this point.
yarn kbn bootstrap
Does anyone has any insights? Any suggestions? Has anyone set up a docker image?
Thanks for you help,
Mike