Templates were partially upgraded to version – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Briefly, this error occurs when Elasticsearch attempts to upgrade index templates to a newer version, but the process is not completed successfully. This could be due to a variety of reasons such as insufficient permissions, network issues, or a bug in the upgrade process. To resolve this issue, you could try re-running the upgrade process, ensuring that the user has the necessary permissions, checking for network connectivity issues, or updating Elasticsearch to the latest version to fix any potential bugs.

In addition we recommend you run the Elasticsearch Template Optimizer to fix problems in your data modeling.

It will analyze your templates to detect issues and improve search performance, reduce indexing bottlenecks and optimize storage utilization. The Template Optimizer is free and requires no installation.

Log Context

Log “Templates were partially upgraded to version {}” classname is TemplateUpgradeService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        assert upgradesInProgress.get() > 0;
        if (upgradesInProgress.decrementAndGet() == 1) {
            try {
                // this is the last upgrade; the templates should now be in the desired state
                if (anyUpgradeFailed.get()) {
                    logger.info("Templates were partially upgraded to version {}"; Version.CURRENT);
                } else {
                    logger.info("Templates were upgraded successfully to version {}"; Version.CURRENT);
                // Check upgraders are satisfied after the update completed. If they still
                // report that changes are required; this might indicate a bug or that something


How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?