im trying build kibana version 6.3 and see below errors.
yarn run v1.8.0
$ gulp build
[11:48:39] Using gulpfile ~/Documents/dev/kibana/x-pack/gulpfile.js
[11:48:39] Starting 'clean-test'...
[11:48:39] Starting 'report'...
[11:48:39] Starting 'prepare'...
[11:48:39] Finished 'clean-test' after 18 ms
[11:48:39] Starting 'clean'...
[11:48:39] Finished 'clean' after 1.9 ms
[11:48:40] Package Name x-pack
[11:48:40] Version 6.3.0-SNAPSHOT
[11:48:40] Build Number 17221
[11:48:40] Build SHA 269e616609d07a6b8da563fff5f00fe31fe7c2e8
[11:48:40] Finished 'report' after 419 ms
[11:49:03] 'prepare' errored after 24 s
[11:49:03] Error: read ECONNRESET
at _errnoException (util.js:1022:11)
at TLSWrap.onread (net.js:628:25)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
│ERROR failure
│ERROR Error: Command failed: yarn run build
│ at makeError (/home/ghfan/Documents/dev/kibana/packages/kbn-pm/dist/index.js:39003:9)
│ at Promise.all.then.arr (/home/ghfan/Documents/dev/kibana/packages/kbn-pm/dist/index.js:39108:16)
│ at <anonymous>
│ at process._tickCallback (internal/process/next_tick.js:188:7)
and sometime is this error:
yarn run v1.8.0
$ gulp build
[11:36:09] Using gulpfile ~/Documents/dev/kibana/x-pack/gulpfile.js
[11:36:09] Starting 'clean-test'...
[11:36:09] Starting 'report'...
[11:36:09] Starting 'prepare'...
[11:36:09] Finished 'clean-test' after 17 ms
[11:36:09] Starting 'clean'...
[11:36:09] Finished 'clean' after 2.29 ms
[11:36:09] Package Name x-pack
[11:36:09] Version 6.3.0-SNAPSHOT
[11:36:09] Build Number 17221
[11:36:09] Build SHA 269e616609d07a6b8da563fff5f00fe31fe7c2e8
[11:36:09] Finished 'report' after 365 ms
[11:36:30] 'prepare' errored after 21 s
[11:36:30] Error: write EPROTO 140481886783296:error:1409E0E5:SSL routines:ssl3_write_bytes:ssl handshake failure:../deps/openssl/openssl/ssl/s3_pkt.c:659:
at _errnoException (util.js:1022:11)
at WriteWrap.afterWrite (net.js:880:14)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
│ERROR failure
│ERROR Error: Command failed: yarn run build
│ at makeError (/home/ghfan/Documents/dev/kibana/packages/kbn-pm/dist/index.js:39003:9)
│ at Promise.all.then.arr (/home/ghfan/Documents/dev/kibana/packages/kbn-pm/dist/index.js:39108:16)
│ at <anonymous>
│ at process._tickCallback (internal/process/next_tick.js:188:7)
Are you sure your Elasticsearch is up and running, that you are connecting against? Even if not Kibana should start, but that error means the connection to somewhere accidentally died, and it sounds like the only think I currently can think of.
Yes, my es is always running during the build period but the kibana is stopped.
and now what's interesting is the build pass and no that error while the es instance is killed.
so, Kibana and es should be stopping before the start of test and build, right? I remembered the the Kibana/es will be starting automatically if needed during the test.
It depends on which tests are actually executed But usually everything should be started up correctly. Are you perhaps running behind a proxy, that might block traffic? Because I think during building time we actually download node executables, which would need to have free network access.
there's no proxy here and the modules download/installation is always completed successfully. I think it's due to the running es instance. I just tried again without the es and the build passed again.
and now the question is I can not restart the es, it always throws this error, I don't know why.
ghfan@bmw001:~/Documents/dev/kibana$ yarn es snapshot
yarn run v1.8.0
$ node scripts/es snapshot
/home/ghfan/Documents/dev/kibana/packages/kbn-es/node_modules/chalk/index.js:72
ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g');
^
TypeError: Cannot read property 'close' of undefined
at Object.<anonymous> (/home/ghfan/Documents/dev/kibana/packages/kbn-es/node_modules/chalk/index.js:72:75)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/ghfan/Documents/dev/kibana/packages/kbn-es/src/cli.js:1:77)
at Module._compile (module.js:652:30)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Ah that actually is a know (still weird error). If you hit that ansy color package, try executing yarn kbn clean (to clean out all node_modules and yarn kbn bootstrap to install all of them again.
Especially when switching branches to 6.3, sometime this package seem to have an issue and won't work until you cleaned and reinstalled node_modules.
and unfortunately, still can not load and start es now after yarn kbn clean and yarn kbn bootstrap.
ghfan@bmw001:~/Documents/dev/kibana$ yarn es snapshot
yarn run v1.8.0
$ node scripts/es snapshot
info Installing from snapshot
│ info version: 6.3.0
│ info install path: /home/ghfan/Documents/dev/kibana/.es/6.3.0
│ info license: basic
│ info downloading from https://snapshots.elastic.co/downloads/elasticsearch/elasticsearch-6.3.0-SNAPSHOT.tar.gz
│ERROR Unhandled error
│ERROR Error: Not Found
│ at Promise (/home/ghfan/Documents/dev/kibana/packages/kbn-es/src/install/snapshot.js:75:25)
│ at new Promise (<anonymous>)
│ at fetch.then.res (/home/ghfan/Documents/dev/kibana/packages/kbn-es/src/install/snapshot.js:65:7)
│ at <anonymous>
│ at process._tickCallback (internal/process/next_tick.js:188:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
this snapshot version should be no longer existing!
so if once the corresponding es version is official released, should auto download the from the artifacts but no still the old link. hope can fix it in the future.
That's true. It would be better if we might try also a stable version beside the snapshot. Could you please open an issue for that on GitHub? Btw a temporary solution that works for you: make sure you are on 6.3 branch, in which case it would download 6.3.3-SNAPSHOT which still exists. If you must test 6.3.0 specific, you could download the appropriate ES version manually, and use yarn es archive ./path/to/that/archive.tar.gz to start that specific version.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.