Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vivek-mcafee opened this issue Oct 31, 2017 · 12 comments

Comments

@vivek-mcafee
Copy link

vivek-mcafee commented Oct 31, 2017

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 vivek-mcafee changed the title Optimizing and caching bundles for kibana, stateSessionStorageRedirect, timelion and status_page. This may take a few minutes Stuck with Optimizing and caching bundles for kibana, stateSessionStorageRedirect, timelion and status_page. This may take a few minutes Oct 31, 2017
@hanzohan
Copy link

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

@nreese
Copy link
Owner

nreese commented Dec 12, 2017

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

@hanzohan
Copy link

@nreese any idea where i should put node options ?

@nreese
Copy link
Owner

nreese commented Dec 14, 2017

@hanzohan
Copy link

hanzohan commented Dec 20, 2017

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

1513752103451

@conmurray
Copy link

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

@nreese
Copy link
Owner

nreese commented Mar 1, 2018

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

@conmurray
Copy link

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
Copy link

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.

@johnzheng1975
Copy link

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.

@ep4sh
Copy link

ep4sh commented Jan 17, 2019

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.

@siddharthgoel88
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants