Blocking operation due to expired license Cluster health cluster stats and indices stats n – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.15

Briefly, this error occurs when the Elasticsearch license has expired. Elasticsearch provides certain features like security, machine learning, etc., under a license. When the license expires, these features are blocked, causing this error. To resolve this issue, you can either update your license if you have a new one or revert to the basic license which is free and doesn’t expire. You can update or revert the license using the Update License API. If you’re using X-Pack, you can also start a trial period.

This guide will help you check for common problems that cause the log ” blocking [{}] operation due to expired license. Cluster health; cluster stats and indices stats \n ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: license, plugin, filter.

Log Context

Log “blocking [{}] operation due to expired license. Cluster health; cluster stats and indices stats \n” classname is SecurityActionFilter.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            - cluster:monitor/stats*
            - indices:monitor/stats*
            - cluster:monitor/nodes/stats*
          */
        if (licenseState.isActive() == false && LICENSE_EXPIRATION_ACTION_MATCHER.test(action)) {
            logger.error("blocking [{}] operation due to expired license. Cluster health; cluster stats and indices stats \n" +
                "operations are blocked on license expiration. All data operations (read and write) continue to work. \n" +
                "If you have a new license; please update it. Otherwise; please reach out to your support contact."; action);
            throw LicenseUtils.newComplianceException(XPackField.SECURITY);
        }

 

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?