Running Kibana 4 in development mode


(Tarun Kumar) #1

Hi All,
I am building Kibana plugin and for that I have to iteratively do the re-deploying my plugin to installed plugin folder and restart kibana each time. It seems running kibana in dev mode would help in not restart kibana each time but i am not able to do run Kibana in dev mode.

bin/kibana --dev

would give below error:

ERROR Extra serve options "--dev" must have a value


(Peter Pisljar) #2

for development you should clone our github repository https://github.com/elastic/kibana and follow the instructions in https://github.com/elastic/kibana/blob/4.6/CONTRIBUTING.md on setting up your dev environment


(Tarun Kumar) #4

I downloaded Kibana-4.4.2 (as per our es production compatible version) https://github.com/elastic/kibana/tree/v4.4.2
I did not find config/kibana.dev.yml file. Will i have to add kibana.dev.yml manually?

Nevertheless (without kibana.dev.yml) , i did straight away start and below is error when i did npm start as per contribution kibana page:
user@user:~/Desktop/Tarun-Handover/kibana-4.4.2$ npm start

kibana@4.4.2 start /home/user/Desktop/Tarun-Handover/kibana-4.4.2
./bin/kibana --dev

for complete error please check this link:

https://pastebin.com/KdxuYsQk

especially concerned about less file giving below issue for app_switcher (complete in above pastebin):

ERROR in ./src/ui/public/chrome/directives/app_switcher/app_switcher.less
Module build failed: ModuleBuildError: Module build failed: URIError: URI malformed
at decodeURIComponent (native)
at /home/user/Desktop/Tarun-Handover/kibana-4.4.2/node_modules/loader-utils/index.js:113:12

On ctrl+c

npm ERR! Linux 3.16.0-30-generic
npm ERR! argv "/home/user/.nvm/versions/node/v4.3.2/bin/node" "/home/user/.nvm/versions/node/v4.3.2/bin/npm" "start"
npm ERR! node v4.3.2
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! kibana@4.4.2 start: ./bin/kibana --dev
npm ERR! Exit status 130
npm ERR!
npm ERR! Failed at the kibana@4.4.2 start script './bin/kibana --dev'.
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,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./bin/kibana --dev
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs kibana
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls kibana
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/user/Desktop/Tarun-Handover/kibana-4.4.2/npm-debug.log


(Peter Pisljar) #5

seems that version of kibana is broken at the moment, there is a work around mentioned in this issue:


(Tarun Kumar) #6

hi @ppisljar, it seems the suggestion wont work for kibana-4.4.2 and may have worked kibana-4.5.0
Please check this link as well in this case seems no solution found?:

Here , details on node_modules/autoprefixer-loader/package.json :-
dependencies": {
"autoprefixer-core": "^5.1.0",
"loader-utils": "^0.2.5",
"postcss": "^4.1.11"
},
So, they are asking for downgrading loader-utils version from 0.2.14 to 0.2.13 but mine is already 0.2.5 should i upgrade or down grade ?


(Tarun Kumar) #7

anyone, would like to suggest on this?
I have also posted my query here https://github.com/elastic/kibana/issues/6885#issuecomment-326208738 as user tarunz001


(system) #8

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