# Kibana fails to start when using the Network Plugin

**URL:** <https://discuss.elastic.co/t/kibana-fails-to-start-when-using-the-network-plugin/222425>\
**Category:** Kibana\
**Created:** [March 6, 2020, 9:08am UTC](https://discuss.elastic.co/t/kibana-fails-to-start-when-using-the-network-plugin/222425 "2020-03-06T09:08:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitagarwal10k](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankitagarwal10k/32/64579_2.png) [@ankitagarwal10k](https://discuss.elastic.co/u/ankitagarwal10k)\
**Post date:** [March 6, 2020, 9:08am UTC](https://discuss.elastic.co/t/kibana-fails-to-start-when-using-the-network-plugin/222425/1 "2020-03-06T09:08:07Z")

</div>

Hi,

I tried using the Kibana network plugin on my Ubuntu 18 version by downloading the latest version of the network plugin tar.gz file as the Kibana version on my system is 7.6  
But when I start the Kibana service - it fails with the below mentioned error in the logs:

\*\*\> FATAL Error: Optimizations failure.

> ERROR in ./plugins/network\_vis/public/network\_vis.js  
> Module not found: Error: Can't resolve 'ui/vis/vis\_factory' in '/usr/share/kibana/plugins/network\_vis/public'
> 
> kibana.service: Main process exited, code=exited, status=1/FAILURE  
> kibana.service: Failed with result 'exit-code'.  
> kibana.service: Service hold-off time over, scheduling restart.\*\*

Below is the details of package.json file

\*\*\> {

> "name": "network\_vis",  
> "version": "7.5.2",  
> "kibana": {  
> "version": "kibana"  
> },  
> "authors": [  
> "David Moreno Lumbreras [dmorenolumb@gmail.com](mailto:dmorenolumb@gmail.com)"  
> ],  
> "license": "Apache-2.0",  
> "repository": {  
> "type": "git",  
> "url": "[GitHub - dlumbrer/kbn\_network: Network Plugin for Kibana](https://github.com/dlumbrer/kbn_network)"  
> },  
> "dependencies": {  
> "vis-network": "7.2.0",  
> "randomcolor": "0.5.0",  
> "css-element-queries": "0.3.2",  
> "keycharm": "^0.2.0",  
> "moment": "^2.24.0",  
> "vis-data": "^6.2.1",  
> "vis-util": "^1.1.8"  
> }  
> }\*\*

And below is the content in the network\_vis.js file

\*\*\> import "plugins/network\_vis/network\_vis.less";

> import { KbnNetworkVisController } from './network\_vis\_controller'  
> import { visFactory } from 'ui/vis/vis\_factory';  
> import { Schemas } from 'ui/vis/editors/default/schemas';  
> import { setup as visualizations } from '../../../src/legacy/core\_plugins/visualizations/public/np\_ready/public/legacy';  
> import image from './images/icon-network.svg';  
> import networkVisTemplate from 'plugins/network\_vis/network\_vis.html';  
> import networkVisParamsTemplate from 'plugins/network\_vis/network\_vis\_params.html';  
> import { AngularVisController } from 'ui/vis/vis\_types/angular\_vis\_type';
> 
> // register the provider with the visTypes registry  
> visualizations.types.registerVisualization(NetworkVisTypeProvider);
> 
> // define the TableVisType  
> function NetworkVisTypeProvider(Private) {
> 
> // return the visType object, which kibana will use to display and configure new  
> // Vis object of this type.  
> return visFactory.createBaseVisualization({  
> name: 'network',  
> title: 'Network',  
> image,  
> description: 'Displays a network node that link two fields that have been selected.',  
> visualization: AngularVisController,  
> visConfig: {  
> defaults: {  
> showLabels: true,  
> showPopup: true,  
> showColorLegend: true,  
> nodePhysics: true,  
> firstNodeColor: '#6F86D7',  
> secondNodeColor: '#DAA05D',  
> canvasBackgroundColor: '#FFFFFF',  
> shapeFirstNode: 'dot',  
> shapeSecondNode: 'box',  
> displayArrow: false,  
> posArrow: 'to',  
> shapeArrow: 'arrow',  
> smoothType: 'continuous',  
> scaleArrow: 1,  
> minCutMetricSizeNode: 0,  
> maxNodeSize: 80,  
> minNodeSize: 8,  
> maxEdgeSize: 20,  
> minEdgeSize: 0.1,  
> springConstant: 0.001,  
> gravitationalConstant: -35000,  
> labelColor: '#000000'  
> },  
> template: networkVisTemplate,  
> },  
> editorConfig: {  
> optionsTemplate: networkVisParamsTemplate,  
> schemas: new Schemas([  
> {  
> group: 'metrics',  
> name: 'size\_node',  
> title: 'Node Size',  
> mustBeFirst: 'true',  
> min: 1,  
> max: 1,  
> defaults: [  
> { type: 'count', schema: 'size\_node' }  
> ]  
> },  
> {  
> group: 'metrics',  
> name: 'size\_edge',  
> title: 'Edge Size',  
> max: 1,  
> },  
> {  
> group: 'buckets',  
> name: 'first',  
> icon: 'fa fa-circle-thin',  
> mustBeFirst: 'true',  
> title: 'Node',  
> min: 1,  
> max: 2,  
> aggFilter: ['terms']//Only have sense choose terms  
> },  
> {  
> group: 'buckets',  
> name: 'second',  
> icon: 'fa fa-random',  
> title: 'Relation',  
> max: 1,  
> aggFilter: ['terms']  
> },  
> {  
> group: 'buckets',  
> name: 'colornode',  
> icon: 'fa fa-paint-brush',  
> title: 'Node Color',  
> max: 1,  
> aggFilter: ['terms']  
> },  
> {  
> group: 'buckets',  
> name: 'colornode',  
> icon: 'fa fa-paint-brush',  
> title: 'Node Color',  
> max: 1,  
> aggFilter: ['terms']  
> }  
> ])  
> },  
> responseHandlerConfig: {  
> asAggConfigResults: true  
> },  
> // structures the data tables (returned by kibana in resp and in UI Inspect)  
> hierarchicalData: function (vis) {  
> return true;  
> },  
> });  
> }
> 
> export default NetworkVisTypeProvider;\*\*

I am unable to get a proper resolution for it from anywhere on the google or the digitalocean website.

Can anyone help me here with this issue ? How can this be resolved and what changes will I have to make?

---

<div class="post-metadata">

**Author:** ![Bruno1](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@Bruno1](https://discuss.elastic.co/u/Bruno1)\
**Post date:** [March 12, 2020, 10:14am UTC](https://discuss.elastic.co/t/kibana-fails-to-start-when-using-the-network-plugin/222425/2 "2020-03-12T10:14:12Z")

</div>

Hi, I have the same issue than you,

The plugin doesn't working for now on 7.6.0 version, you can try to downgrade to 7.4.0

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 12, 2020, 1:28pm UTC](https://discuss.elastic.co/t/kibana-fails-to-start-when-using-the-network-plugin/222425/3 "2020-03-12T13:28:37Z")

</div>

The best would be to contact the plugin creator, if they have a github page or something. It's not created or maintained by us.

---

<div class="post-metadata">

**Author:** ![ankitagarwal10k](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankitagarwal10k/32/64579_2.png) [@ankitagarwal10k](https://discuss.elastic.co/u/ankitagarwal10k)\
**Post date:** [March 17, 2020, 11:24am UTC](https://discuss.elastic.co/t/kibana-fails-to-start-when-using-the-network-plugin/222425/4 "2020-03-17T11:24:25Z")

</div>

I tried contacting the dev and also have created an issue there, but no response from the dev yet.  
Could you help if you have any idea about the issue and the solution for it ?

---

<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:** [April 14, 2020, 11:24am UTC](https://discuss.elastic.co/t/kibana-fails-to-start-when-using-the-network-plugin/222425/5 "2020-04-14T11:24:38Z")

</div>

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