kibana-time-plugin icon indicating copy to clipboard operation
kibana-time-plugin copied to clipboard

Stuck with Optimizing and caching bundles for kibana, stateSessionStorageRedirect, timelion and status_page. This may take a few minutes

Open vivek-mcafee opened this issue 6 years ago • 12 comments

After installing the kibana-time-plugin and then restarting. The kibana dashboard doesn't comes up. Its stuck forever with the following message:

"Optimizing and caching bundles for kibana, stateSessionStorageRedirect, timelion and status_page. This may take a few minutes"

I am using kibana 5.6.3. I followed the instruction from Readme file and the installed it. After bower install I changed the package.json file to

{ "name": "kibana-time-plugin", "version": "5.6.3" }

Please find the logs below.

{"type":"log","@timestamp":"2017-10-31T10:45:59Z","tags":["plugins","debug"],"pid":6213,"dir":"/usr/share/kibana/plugins","message":"Scanning /usr/share/kibana/plugins for plugins"} {"type":"log","@timestamp":"2017-10-31T10:45:59Z","tags":["plugins","debug"],"pid":6213,"dir":"/usr/share/kibana/src/core_plugins","message":"Scanning /usr/share/kibana/src/core_plugins for plugins"} {"type":"log","@timestamp":"2017-10-31T10:45:59Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/plugins/kibana-time-plugin/index.js","message":"Found plugin at /usr/share/kibana/plugins/kibana-time-plugin/index.js"} {"type":"log","@timestamp":"2017-10-31T10:45:59Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/console/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/console/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:00Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/elasticsearch/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/elasticsearch/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:00Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/kbn_doc_views/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/kbn_doc_views/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:00Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/kbn_vislib_vis_types/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/kbn_vislib_vis_types/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:00Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/kibana/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/kibana/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:00Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/markdown_vis/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/markdown_vis/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:00Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/metrics/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/metrics/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:00Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/region_map/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/region_map/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:00Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/spy_modes/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/spy_modes/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:01Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/state_session_storage_redirect/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/state_session_storage_redirect/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:01Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/status_page/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/status_page/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:01Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/table_vis/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/table_vis/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:01Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/tagcloud/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/tagcloud/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:01Z","tags":["plugins","debug"],"pid":6213,"path":"/usr/share/kibana/src/core_plugins/timelion/index.js","message":"Found plugin at /usr/share/kibana/src/core_plugins/timelion/index.js"} {"type":"log","@timestamp":"2017-10-31T10:46:02Z","tags":["info","optimize"],"pid":6213,"message":"Optimizing and caching bundles for kibana, stateSessionStorageRedirect, timelion and status_page. This may take a few minutes"}

vivek-mcafee avatar Oct 31 '17 10:10 vivek-mcafee

i am using kibana 6.0.0 and i have the same problem too. Stuck for longtime then close immediately. Any update?

hanzohan avatar Dec 12 '17 09:12 hanzohan

Try adding NODE_OPTIONS=--max-old-space-size=8000 to NODE_OPTIONS

nreese avatar Dec 12 '17 15:12 nreese

@nreese any idea where i should put node options ?

hanzohan avatar Dec 14 '17 06:12 hanzohan

https://nodejs.org/api/cli.html

nreese avatar Dec 14 '17 15:12 nreese

@nreese i was adding node options in kibana-plugin.bat but still kibana's cmd crash after caching bundles.

1513752103451

hanzohan avatar Dec 20 '17 06:12 hanzohan

Im also experiencing the exact same issue. Has anyone got a solution?

conmurray avatar Mar 01 '18 12:03 conmurray

what version of node are you using? Are you using the version defined in <KIBANA_HOPME>.node_version?

nreese avatar Mar 01 '18 15:03 nreese

Hi Nathan, Im on Ubuntu 16.04

So I was upgrading from 5.2.2 to 5.6.8 and so removed the plugin without issues just to be on the safe side. It was working fine with 5.2.2 understandibly. I upgraded Elasticsearch, logstash and Kibana and made sure these guys were all working a-ok.

Then did a git clone of the plugin and git checkout 5.5 as per instructions. Didn't appear to have any issues installing with bower albeit I do use sudo bower install --allow-root which is what I did last time. I updated the package.json to 5.6.8.

It seems to all go swimmingly and then did a sudo systemctl restart kibana. It looked fine but I saw the log in journalctl and couldnt connect.

I've got VM snapshots so can retry things but its odd. Im currently moving toward 6.2 anyways but this is a really useful plugin so fair play to you.

conmurray avatar Mar 01 '18 16:03 conmurray

Ok coming back to this again.. I redid my steps and have attached my screenshots for anyone.. visual_Steps_For_5.6.8.docx

Seems I was impatient as Kibana was still optimizing things.

Working now.

conmurray avatar Mar 02 '18 08:03 conmurray

Cannot believe I need wait one hour, and cannot believe finally it works after 1 hour! What a patient people I should be, and what an aaaamazing software it is.

johnzheng1975 avatar Jun 25 '18 08:06 johnzheng1975

Had the same output with restart kibana by timeout. Then checked up version of Elasticsearch and Kibana version (kibana was newer). After installed older version kibana - works fine.

ep4sh avatar Jan 17 '19 07:01 ep4sh

I am wondering if this is now solved with 6.6 release?

siddharthgoel88 avatar Jan 30 '19 08:01 siddharthgoel88