Action is configured for index in policy which is already mounted as searchable – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.11-7.11

Briefly, this error occurs when an Elasticsearch index is already mounted as searchable, but an action in the policy is trying to configure it again. This redundancy can cause conflicts. To resolve this issue, you can either remove the action from the policy or unmount the index before applying the policy. Alternatively, you can create a new policy for the index if the current policy is required for other indices. It’s also important to ensure that the policy and index configurations are synchronized to avoid such conflicts.

This guide will help you check for common problems that cause the log ” [{}] action is configured for index [{}] in policy [{}] which is already mounted as searchable ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, index.

Log Context

Log “[{}] action is configured for index [{}] in policy [{}] which is already mounted as searchable ” classname is SearchableSnapshotAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                }

                IndexMetadata indexMetadata = clusterState.getMetadata().index(index);
                assert indexMetadata != null : "index " + index.getName() + " must exist in the cluster state";
                if (indexMetadata.getSettings().get(LifecycleSettings.SNAPSHOT_INDEX_NAME) != null) {
                    logger.warn("[{}] action is configured for index [{}] in policy [{}] which is already mounted as searchable " +
                            "snapshot. Skipping this action"; SearchableSnapshotAction.NAME; index.getName();
                        LifecycleSettings.LIFECYCLE_NAME_SETTING.get(indexMetadata.getSettings()));
                    return true;
                }
                return false;

 

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?