-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Server doesn't respond until elasticsearch is live #7278
Comments
There's also the x-pack issue 2200 where Kibana (and plugins?) only check for license when they start up. So if Kibana (with x-pack installed) starts before Elasticsearch it gives a license error. |
@LeeDr This issue seems to be unrelated to x-pack issue 2200. I just downloaded the kibana alpha3 tgz, extracted it and ran |
I'm guessing this is waiting for .kibana/config, which is injected into index.html now |
@jbudz Thanks for pointing me to that. It's not actually that line, but the one after that: https://github.com/elastic/kibana/blob/master/src/ui/index.js#L75. If I comment it out (for testing), the status page loads up. Looking into a fix now... |
If elasticsearch plugin is not ready, do not block
This is still an issue on the latest master. If there's a version mismatch between Kibana and ES, then requests to Kibana just timeout instead of the user being dropped into the status page. |
Also causing #7318 |
Looking into this now (commenting to make it clear because I was already the assignee from the previous fix). |
@epixa I'm unable to reproduce this off the latest master (1cf2979). I'm running ES 2.3.2 instead of the compatible ES 5.0.0. The Kibana server logs show:
And Kibana loads up in the browser on the status page with the same error message: |
Change the version number in your local package.json to 5.0.0 (instead of 5.0.0-snapshot). Then run it against es master as you normally would. |
Yup, if I modify the package.json as you suggested, I am able to reproduce the issue. Thanks! I can run with this now... |
@epixa This seems to happen only in the case of going from a snapshot release to GA release. It does not happen when going from an alpha release to a GA release (I just verified this by tweaking the At best, that line of code looks outdated (it doesn't account for "alpha"). At worst, it seems to be preventing a legitimate upgrade path (from snapshot or beta to GA). I'm inclined to remove this line but I don't know enough about the rationale for this line and I can't infer much from the commit that introduced it: 1d7749f. Thoughts on how to proceed here? /cc @simianhacker as he was the original committer for this line. |
This is interesting... On one hand, I do want to figure out what this |
Alright, I can make it so that the user is dropped into the status page with the Kibana plugin being red because user settings could not be found for the installed version of Kibana. Totally agree that this would be better than just timing out. I will update PR #7333 to do this. Separately we still need to decide if we want Kibana to create a new doc in |
Go for status page error. |
While fixing this issue, we discovered an edge case that we weren't handling in the |
When kibana is running without elasticsearch, requests to /app/kibana will never reply
The text was updated successfully, but these errors were encountered: