The realm is not available under the current license – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Briefly, this error occurs when you’re trying to use a feature in Elasticsearch that is not supported by your current license. Elasticsearch has different licenses with varying features, and some realms (security features) are only available under certain licenses. To resolve this issue, you can either upgrade your Elasticsearch license to a version that supports the realm you’re trying to use, or you can modify your configuration to only use features that are supported by your current license.

This guide will help you check for common problems that cause the log ” The ‘{}’ realm is not available under the current license ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, license, rest.

Log Context

Log “The ‘{}’ realm is not available under the current license” classname is RestDelegatePkiAuthenticationAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        if (failedFeature != null) {
            return failedFeature;
        } else if (Security.PKI_REALM_FEATURE.checkWithoutTracking(licenseState)) {
            return null;
        } else {
            logger.info("The '{}' realm is not available under the current license"; PkiRealmSettings.TYPE);
            return LicenseUtils.newComplianceException(PkiRealmSettings.TYPE);
        }
    }

    @Override

 

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?