Hi all,
I am trying to build up a kibana development environment as described here and forked, then cloned the kibana repo. Iยดve set up the development environment until it was failing at "npm run elasticsearch" step. I have already searched for a solution without any result. Therefore I appreciate any support. Thank you in advance.
Here is the trace log:
0 info it worked if it ends with ok
1 verbose cli [ '/home/caesar/.nvm/versions/node/v6.9.0/bin/node',
1 verbose cli '/home/caesar/.nvm/versions/node/v6.9.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'elasticsearch' ]
2 info using npm@3.10.8
3 info using node@v6.9.0
4 verbose run-script [ 'preelasticsearch', 'elasticsearch', 'postelasticsearch' ]
5 info lifecycle kibana@6.0.0-alpha1~preelasticsearch: kibana@6.0.0-alpha1
6 silly lifecycle kibana@6.0.0-alpha1~preelasticsearch: no script for preelasticsearch, continuing
7 info lifecycle kibana@6.0.0-alpha1~elasticsearch: kibana@6.0.0-alpha1
8 verbose lifecycle kibana@6.0.0-alpha1~elasticsearch: unsafe-perm in lifecycle true
9 verbose lifecycle kibana@6.0.0-alpha1~elasticsearch: PATH: /home/caesar/.nvm/versions/node/v6.9.0/lib/node_modules/npm/bin/node-gyp-bin:/home/caesar/kibana/node_modules/.bin:/home/caesar/.nvm/versions/node/v6.9.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/caesar/bin:/usr/lib/jvm/java-8-oracle/bin
10 verbose lifecycle kibana@6.0.0-alpha1~elasticsearch: CWD: /home/caesar/kibana
11 silly lifecycle kibana@6.0.0-alpha1~elasticsearch: Args: [ '-c', 'grunt esvm:dev:keepalive' ]
12 silly lifecycle kibana@6.0.0-alpha1~elasticsearch: Returned: code: 1 signal: null
13 info lifecycle kibana@6.0.0-alpha1~elasticsearch: Failed to exec elasticsearch script
14 verbose stack Error: kibana@6.0.0-alpha1 elasticsearch: `grunt esvm:dev:keepalive`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/home/caesar/.nvm/versions/node/v6.9.0/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (/home/caesar/.nvm/versions/node/v6.9.0/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:877:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid kibana@6.0.0-alpha1
16 verbose cwd /home/caesar/kibana
17 error Linux 3.16.0-4-amd64
18 error argv "/home/caesar/.nvm/versions/node/v6.9.0/bin/node" "/home/caesar/.nvm/versions/node/v6.9.0/bin/npm" "run" "elasticsearch"
19 error node v6.9.0
20 error npm v3.10.8
21 error code ELIFECYCLE
22 error kibana@6.0.0-alpha1 elasticsearch: `grunt esvm:dev:keepalive`
22 error Exit status 1
23 error Failed at the kibana@6.0.0-alpha1 elasticsearch script 'grunt esvm:dev:keepalive'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the kibana package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error grunt esvm:dev:keepalive
23 error You can get information on how to open an issue for this project with:
23 error npm bugs kibana
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls kibana
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
Here is the command prompt:
npm run elasticsearch
> kibana@6.0.0-alpha1 elasticsearch /home/caesar/kibana
> grunt esvm:dev:keepalive
Running "esvm:dev:keepalive" (esvm) task
starting up "dev" cluster
Keeping elasticsearch alive, to shutdown press command/control+c
Fatal error: Cannot read property 'master' of undefined
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/home/caesar/.nvm/versions/node/v6.9.0/bin/node" "/home/caesar/.nvm/versions/node/v6.9.0/bin/npm" "run" "elasticsearch"
npm ERR! node v6.9.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! kibana@6.0.0-alpha1 elasticsearch: `grunt esvm:dev:keepalive`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kibana@6.0.0-alpha1 elasticsearch script 'grunt esvm:dev:keepalive'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the kibana package,