-
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
Devtools console throwing not found error on api call proxy?path=_aliases&method=GET #20064
Comments
Took a quick peek and poked around a little bit. Here is what we found.
I am unfamiliar with the expected behavior of the _aliases index, so I have some questions. I think I know, but I don't want to assume.
|
Aliases don't exist by default, but with my local instance the command returns empty, not sure why on cloud it returns a different message of not found. |
The really weird part is the disparity in the error message. The |
@joegallo Could you lend us your eyes on this one. Maybe there is specific support for 6.4.0 that needs to be implemented for cloud? The issue appears to be isolated to the functional behavior of the ES cluster. @liza-mae states that the issue does not occur in a local environment with the same snapshot and only occurs on cloud. |
Can you double check that? I was able to create an alias. |
Anyway, my read of this is that it's a change in Elasticsearch (whether it's a bug or not I leave up to others). 6.3.0 and 6.3.1-SNAPSHOT will respond with an empty JSON object if there's no aliases, but 6.4.0-SNAPSHOT responds with a 404/error. Maybe it's due to elastic/elasticsearch@38b1a5f? Seems likely to me. In my tests, in order to see this behavior, you must have But then it's just a matter of hitting
versus
Note: I needed to set up an |
/cc @javanna |
Ah, my description was imprecise. I can indeed create an alias. I was attempting to swap an index with an alias in one operation I took this snippet from the docs, and it failed. Apologies for the confusion.
Many thanks for confirming and identifying a commit that may have caused the issue @joegallo |
This is indeed caused by elastic/elasticsearch#31308 (though elastic/elasticsearch#31129 will have the same problem I suspect). On 6.4.0-SNAPSHOT from today:
And then the same snapshot, with elastic/elasticsearch@38b1a5f reverted:
I'll open an issue on the Elasticsearch repo |
I opened elastic/elasticsearch#31516 for this |
Pinging @elastic/es-ui |
@liza-mae Looks like the underlying ES issue has been addressed. Can we close this? |
@cjcenizal yes we can close. Fixed with elastic/elasticsearch#31516 |
Kibana version: 6.4.0-SNAPSHOT
Elasticsearch version: 6.4.0-SNAPSHOT
Server OS version: Cloud
Browser version: Chrome
Browser OS version: Latest
Original install method (e.g. download page, yum, from source, etc.): Snapshots
Describe the bug:
Accessing devtools console is throwing a not found error, is this only happening on cloud, is this expected behavior ?
Steps to reproduce:
Navigate to devtools -> console
POST api/console/proxy?path=_aliases&method=GET
"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","index_uuid":"na","index":"_all"}],"type":"index_not_found_exception","reason":"no such index","index_uuid":"na","index":"_all"},"status":404}
The text was updated successfully, but these errors were encountered: