kbn_sankey_vis icon indicating copy to clipboard operation
kbn_sankey_vis copied to clipboard

Cannot run it on Kibana 5

Open dmkog opened this issue 8 years ago • 19 comments

Whn I try to run Kibana 5.1.1 after cloning this to the kibana plugins folder I cannot run Kibana any more until I uninstall this visualization.

The error when I try to run Kibana is:

FATAL TypeError: Cannot read property 'error' of undefined at OptionManager.mergeOptions (/usr/share/kibana/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126:28) at OptionManager.addConfig (/usr/share/kibana/node_modules/babel-core/lib/transformation/file/options/option-manager.js:107:10) at OptionManager.findConfigs (/usr/share/kibana/node_modules/babel-core/lib/transformation/file/options/option-manager.js:168:35) at OptionManager.init (/usr/share/kibana/node_modules/babel-core/lib/transformation/file/options/option-manager.js:229:12) at compile (/usr/share/kibana/node_modules/babel-core/lib/api/register/node.js:117:22) at normalLoader (/usr/share/kibana/node_modules/babel-core/lib/api/register/node.js:199:14) at Object.require.extensions.(anonymous function) [as .js] (/usr/share/kibana/node_modules/babel-core/lib/api/register/node.js:216:7) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Plugins. (/usr/share/kibana/src/server/plugins/plugin_collection.js:66:30) at undefined.next (native) at step (/usr/share/kibana/src/server/plugins/plugin_collection.js:22:273) at /usr/share/kibana/src/server/plugins/plugin_collection.js:22:443

dmkog avatar Dec 23 '16 12:12 dmkog

i tried with kibana 5.1.2, getting the above error

muruga avatar Jan 19 '17 22:01 muruga

Same here :(

AdrianP- avatar Feb 07 '17 09:02 AdrianP-

I just released a Kibana 6.0.0-alpha1 version of this plugin (Actually, a clone of this one).

https://github.com/JuanCarniglia/kbn_sankey_vis

Let me know if it works for you guys.

Thanks!

JuanCarniglia avatar Mar 02 '17 20:03 JuanCarniglia

@JuanCarniglia your solution has a problem when running npm run build. It asks for babel-register, and even installing it, it gives the same error.

And on your README file, the instructions are pointing to clone to this repo instead of yours. Just to fix that :)

WolfangAukang avatar Mar 22 '17 15:03 WolfangAukang

@muruga @khubdm2 @AdrianP- I got it working on Kibana 5.2.1. I based the code on @JuanCarniglia repo with the latest build he did for 6.0.0-alpha. The repo is https://github.com/WolfangAukang/kbn_sankey_vis

WolfangAukang avatar Mar 23 '17 15:03 WolfangAukang

Has anyone tried this with 5.4.1 ? I tried (for 5 minutes..) chenryn, JuanCarniglia and WolfangAukang and I'm getting all sort of errors.

rcfontana avatar Jun 27 '17 07:06 rcfontana

@rcfontana What kind of error are you receiving? I can help you

EDIT: Have you changed the version at the package.json to the version you are using?

WolfangAukang avatar Jun 27 '17 14:06 WolfangAukang

Please paste the error result here. It might be a missing dependency or maybe a wrong path (A lot of them changed from 4.x to 5.x and to 6.x, but I don't believe many changed from 5.2.1 to 5.4.x.

JuanCarniglia avatar Jun 27 '17 14:06 JuanCarniglia

cd KIBANA_HOME/plugins git clone https://github.com/JuanCarniglia/kbn_sankey_vis Changed the package.json to 5.4.1

Now I'm getting husky issues.

some WARN issues: npm WARN package.json [email protected] No repository field. npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) ... ... npm ERR! [email protected] install: node ./bin/install.js npm ERR! Exit status 127 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is most likely a problem with the husky package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node ./bin/install.js npm ERR! You can get their info via: npm ERR! npm owner ls husky npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.16.0-4-amd64 npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "husky" npm ERR! cwd /usr/share/kibana/plugins/kbn_sankey_vis npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /usr/share/kibana/plugins/kbn_sankey_vis/npm-debug.log npm ERR! not ok code 0

rcfontana avatar Jun 27 '17 14:06 rcfontana

Trying to get this working with Kibana 5.2.2.

Have tired both the https://github.com/JuanCarniglia/kbn_sankey_vis and https://github.com/WolfangAukang/kbn_sankey_vis.

Getting this error on kibana:

/elk/bundles/commons.bundle.js?v=14723:38 TypeError: _d32.default.sankey is not a function at _buildVis (/elk/bundles/kibana.bundle.js?v=14723:162) at Object.fn (/elk/bundles/kibana.bundle.js?v=14723:162) at Scope.$digest (/elk/bundles/commons.bundle.js?v=14723:39) at Scope.$apply (/elk/bundles/commons.bundle.js?v=14723:39) at done (/elk/bundles/commons.bundle.js?v=14723:37) at completeRequest (/elk/bundles/commons.bundle.js?v=14723:37) at XMLHttpRequest.xhr.onload (/elk/bundles/commons.bundle.js?v=14723:37)

scottwallred avatar Jul 25 '17 17:07 scottwallred

I just installed the plugin on 5.3.3 via https://github.com/WolfangAukang/kbn_sankey_vis

@chenryn: Is there a chance to merge his contribution into this main repo? Would be great to have a working installation process :) Or did you stop maintaining?

kaihil avatar Aug 07 '17 14:08 kaihil

@chenryn I can do the pull request

@kaihil Did you have to follow any other steps besides the ones indicated on the repo? It's because some people could not install it, so I don't know if there is something missing or not.

WolfangAukang avatar Aug 07 '17 14:08 WolfangAukang

No, i just cloned the repo and adapted the "version" in the package.json. After restarting kibana, it worked!

kaihil avatar Aug 07 '17 15:08 kaihil

@kaihil PR is welcome.

chenryn avatar Aug 09 '17 02:08 chenryn

@WolfangAukang: Could you do that PR? I'm not really into this kibana plugin stuff, but would highly appreciate it :)

kaihil avatar Aug 10 '17 12:08 kaihil

Sure, let me do some stuff (I have cloned it from JuanCarniglia instead of Chenryn) and I will be ready for the pull request

WolfangAukang avatar Aug 15 '17 15:08 WolfangAukang

Hey guys , there is someone why uses this pluging with kibana 5.5 ?

nagmar avatar Aug 24 '17 07:08 nagmar

Not working on 5.5.0 both repos

akefallonitis avatar Sep 11 '17 14:09 akefallonitis

Just committed a working version for Kibana 5.5 on my http://github.com/JuanCarniglia/kbn_sankey_vis, check the releases folder.

JuanCarniglia avatar Sep 15 '17 19:09 JuanCarniglia