-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Kibana no such index - Kibana re-adds index incorrectly. #53322
Comments
Pinging @elastic/kibana-operations (Team:Operations) |
We only run migrations once on startup which does the aliasing and mappings setup. So if the kibana index is created at runtime, and then something performs a write without mappings we'll get dynamic mappings without an alias and the issues above. #32237 is the root issue. In the interim maybe we can dig into your scenario of deleting elasticsearch files. Any context on the data folder deletion? Is using the REST API to delete all except system indices an option? |
The data folder deletion was done manually through file explorer. Thanks for the fast reply. |
Yes, Kibana will need to be restarted if it's index is deleted. We use to allow for this, but it added overhead for every request to ensure the index exists with the correct mappings. Ok to close this issue? |
Restarting seems to fix the issue, for now I think its okay to close. |
Kibana version: 7.4.2
Elasticsearch version: 7.4.2
Server OS version: Windows
Browser version: Google Chrome
Original install method (e.g. download page, yum, from source, etc.): Download Page
Describe the bug:
This is a very unique bug, so we currently have elasticsearch (7.4.2) and kibana (7.4.2) running.
Everything is fine, however if I manually delete the data folder under elasticsearch. Kibana will output an error message (see below for more).
It will then add the kibana index without the proper alias. In my case it was "ui-kibana"
Without the proper alias, everytime I create an index pattern in kibana. It will not save properly, the discovery page will always ask to create a new index pattern.
*Note restarting kibana fixes this issue and the index aliases are placed back in properly again
Steps to reproduce:
Expected behavior:
Upon elasticsearch restarting again and with kibana still running the created kibana index should have an alias associated to it similar to Figure 2 below (note alias was re-added after restarting kibana) . At the moment it creates the broken index ui-kibana (Figure 1) and index patterns cannot be stored properly.
Screenshots (if relevant): - _cat/indices/?v results
Figure 1 - after deleting and restarting elasticsearch
Figure 2 - after restarting Kibana
Provide logs and/or server output (if relevant):
After restarting elasticsearch this is the server output
Kibana will then continuously output this, until restarted:
Any additional context:
I ran into this issue because I wanted to test complete replacement of elasticsearch files, while kibana is still running.
The text was updated successfully, but these errors were encountered: