Creating new model alias for model – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.13-8.9

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your Elasticsearch operation.

Briefly, this error occurs when Elasticsearch tries to create a new alias for a model, but it encounters an issue. This could be due to a conflict with an existing alias, insufficient permissions, or a network issue. To resolve this, you can check if the alias already exists and delete it if necessary, ensure the user has the correct permissions to create an alias, or troubleshoot network connectivity. Additionally, check your Elasticsearch version and upgrade if necessary, as some versions may have bugs related to alias creation.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” creating new model_alias [{}] for model [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “creating new model_alias [{}] for model [{}]” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        final ClusterState.Builder builder = ClusterState.builder(currentState);
        final ModelAliasMetadata currentMetadata = ModelAliasMetadata.fromState(currentState);
        String currentModelId = currentMetadata.getModelId(request.getModelAlias());
        final Map newMetadata = new HashMap(currentMetadata.modelAliases());
        if (currentModelId == null) {
  "creating new model_alias [{}] for model [{}]"; request.getModelAlias(); request.getModelId());
        } else {
                "updating model_alias [{}] to refer to model [{}] from model [{}]";


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?