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

TypeError: status.indices[index] is undefined #171

Open
Wilfred opened this issue Nov 3, 2014 · 2 comments
Open

TypeError: status.indices[index] is undefined #171

Wilfred opened this issue Nov 3, 2014 · 2 comments

Comments

@Wilfred
Copy link

Wilfred commented Nov 3, 2014

I've got a cluster with some unassigned shards, I'm getting this error:

TypeError: status.indices[index] is undefined

It's crashing on this line:

if(node === "Unassigned" || !status.indices[index].shards[shard]) {

status.indices is missing logstash-2014.10.10 (value for shard). I'm afraid I can't give reproduction instructions, it occurred during a 1.1 -> 1.2.4 migration whilst some shards were still unassigned.

As a result, it's not possible to see the status of my cluster on the main page of elasticsearch-head.

@Wilfred
Copy link
Author

Wilfred commented Nov 3, 2014

FWIW, I was able to work around the issue by using a debugger to see which indices were causing problems, then using the elasticsearch API to close those indices. The page then rendered as expected.

@samjudson
Copy link

I had the same issue - it appears to happen after a cluster crash when the health is red. I added an extra statement to the line and it works fine:

if(node === "Unassigned" || !status.indices[index] || !status.indices[index].shards[shard]) {

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

2 participants