# Kibana 6.3 build error

**URL:** <https://discuss.elastic.co/t/kibana-6-3-build-error/144817>\
**Category:** Kibana\
**Created:** [August 17, 2018, 4:25am UTC](https://discuss.elastic.co/t/kibana-6-3-build-error/144817 "2018-08-17T04:25:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![guanghaofan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guanghaofan/32/31153_2.png) [@guanghaofan](https://discuss.elastic.co/u/guanghaofan)\
**Post date:** [August 17, 2018, 4:25am UTC](https://discuss.elastic.co/t/kibana-6-3-build-error/144817/1 "2018-08-17T04:25:00Z")

</div>

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)

```

any one know what happens and why this error?

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [August 17, 2018, 6:09am UTC](https://discuss.elastic.co/t/kibana-6-3-build-error/144817/2 "2018-08-17T06:09:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![guanghaofan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guanghaofan/32/31153_2.png) [@guanghaofan](https://discuss.elastic.co/u/guanghaofan)\
**Post date:** [August 17, 2018, 7:59am UTC](https://discuss.elastic.co/t/kibana-6-3-build-error/144817/3 "2018-08-17T07:59:50Z")

</div>

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`.

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [August 17, 2018, 8:01am UTC](https://discuss.elastic.co/t/kibana-6-3-build-error/144817/4 "2018-08-17T08:01:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![guanghaofan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guanghaofan/32/31153_2.png) [@guanghaofan](https://discuss.elastic.co/u/guanghaofan)\
**Post date:** [August 17, 2018, 8:22am UTC](https://discuss.elastic.co/t/kibana-6-3-build-error/144817/5 "2018-08-17T08:22:23Z")

</div>

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.
```

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [August 17, 2018, 8:24am UTC](https://discuss.elastic.co/t/kibana-6-3-build-error/144817/6 "2018-08-17T08:24:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![guanghaofan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guanghaofan/32/31153_2.png) [@guanghaofan](https://discuss.elastic.co/u/guanghaofan)\
**Post date:** [August 17, 2018, 8:27am UTC](https://discuss.elastic.co/t/kibana-6-3-build-error/144817/7 "2018-08-17T08:27:23Z")

</div>

yes, I'm just confused why I can start the es before.😀  
thank you, sir!👍

---

<div class="post-metadata">

**Author:** ![guanghaofan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guanghaofan/32/31153_2.png) [@guanghaofan](https://discuss.elastic.co/u/guanghaofan)\
**Post date:** [August 20, 2018, 7:31am UTC](https://discuss.elastic.co/t/kibana-6-3-build-error/144817/8 "2018-08-20T07:31:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [August 20, 2018, 8:19am UTC](https://discuss.elastic.co/t/kibana-6-3-build-error/144817/9 "2018-08-20T08:19:00Z")

</div>

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.

Cheers,  
Tim

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 17, 2018, 8:19am UTC](https://discuss.elastic.co/t/kibana-6-3-build-error/144817/10 "2018-09-17T08:19:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
