Failed to build kibana 6.3.2 from source

Hi, when I run yarn build i got this:



Running script [build] in [x-pack]:

$ gulp build
[16:07:27] Using gulpfile ~/kibana/x-pack/gulpfile.js
[16:07:27] Starting 'clean-test'...
[16:07:27] Starting 'report'...
[16:07:27] Starting 'prepare'...
[16:07:27] Finished 'clean-test' after 18 ms
[16:07:27] Starting 'clean'...
[16:07:27] Finished 'clean' after 2.03 ms
[16:07:27] Package Name x-pack
[16:07:27] Version 6.3.2-SNAPSHOT
[16:07:27] Build Number 17306
[16:07:27] Build SHA e42b0debde3688296ebfcb6595c0451d5573aa81
[16:07:27] Finished 'report' after 333 ms
[16:08:30] 'prepare' errored after 1.05 min
[16:08:30] Error: connect ETIMEDOUT 52.216.16.131:443
    at Object._errnoException (util.js:992:11)
    at _exceptionWithHostPort (util.js:1014:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186: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/webopa/kibana/packages/kbn-pm/dist/index.js:39003:9)
   │           at Promise.all.then.arr (/home/webopa/kibana/packages/kbn-pm/dist/index.js:39108:16)
   │           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.

any body know why i meet this issue?
thank you!

Are you trying to build Kibana or X-Pack? If you're trying to build Kibana you'll want to run this script from the kibana directory, not inside the xpack directory.

It shows "connect ETIMEDOUT 52.216.16.131:443"
But I don't understand why It need to request to the server and why It's timeout. my net work well,and installing all dependencies successfully.

thanks for your reply,I'm trying to build Kibana and run this script from the kibana directory.

[10:27:44] Version 7.0.0-alpha1-SNAPSHOT
[10:27:44] Build Number 17989
[10:27:44] Build SHA 430ad1592b8765d249298291591812b66b1859a4
[10:27:44] Finished 'report' after 622 ms
[10:28:04] 'prepare' errored after 21 s
[10:28:04] Error: connect ETIMEDOUT 52.216.80.195:443
    at Object._errnoException (util.js:992:11)
    at _exceptionWithHostPort (util.js:1014:20)

Hi,
I meet the same error when I run "yarn build --skip-os-packages" from kibana directory.
yarn: 1.8
kibana: master

Failed to build kibana 6.3.2 from source #21125

@xinlei thanks.
But I still do not know how to deal with it.

Sorrry ,I`m late to reply,may u have resolved it,Are you in China? It caused by the fucking GFW,just cross the wall。

As above

Thank you for the reply.
I got it.

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