-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
beats 6.0 tries to use previous template and fails with '[_all] is disabled in 6.0' #4869
Comments
cc @Rasroh - I think I could temporarily script a work-around to delete the old template before starting up the 6.0 beats. |
@ruflin I think I also hit this one the other day, but then couldn't reproduce it. If the issue happens on ES upgrade, then it's understandable why I couldn't reproduce it. @LeeDr The 6.0 template uses a higher order so it should override the 5.x one. Somehow, though, this doesn't seem to happen in this case, or the way that works is not what we expect. |
Hmm, right, this makes sense to me know. In my previous tests, I ran metricbeat 6.x and 5.x in parallel against ES 6.0. This works fine, because metricbeat 5.x will load a different template when it sees ES 6.0. But if you run metricbeat against ES 5.x, then upgrade to 6.x, Metricbeat can't know that it needs to use a new template. Then any index that matches the old template is going to fail. @LeeDr I think a better workaround would be to delete the Beats templates immediately before or after the Elasticsearch upgrade. I wonder if this is a scenario in which Elasticsearch should automatically "upgrade" the template to remove the @dakrone does the above explanation of the issue makes sense? Any comments on what we could do? |
@tsg the problem doesn't start when I upgrade elasticsearch to 6.0 (without stopping the beats). At that point the beats are all still writing data to elasticsearch OK. The problem I've seen only comes in when I upgrade to beats 6.0. So my work-around to delete the old template before starting the 6.0 beat is working. |
@dakrone the scope of upgrade API is deal with internal indices (not templates), so it's definitely out of the scope. But we have other mechanisms that allow plugins to deal with templates. So, theoretically we could add this functionality to x-pack, but it will not help users who don't install x-pack. |
@tsg who's working on this? Can we get the issue assigned? |
On the Beats side, this is being addressed in: #4901 |
#4901 is done, so I think we can consider this closed. Note that in the upgrading guide, we will ask people to make sure the 5.6 (or 6.0) template is loaded (via |
For confirmed bugs, please report:
Starting the beat will create a new template like this;
but there is still the old template;
and since the new index that gets created by the 6. beat is named packetbeat-6.0.0-beta1-2017.08.10 it will match either template, and apparently pickets the original one.
Then you get this in your log;
The text was updated successfully, but these errors were encountered: