Existing basic license has an expiration Basic licenses no longer expire – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.15

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 you’re using an older version of Elasticsearch that still has an expiration date for basic licenses. From version 6.3.0 onwards, basic licenses in Elasticsearch do not expire. To resolve this issue, you can either upgrade your Elasticsearch to a version that supports non-expiring basic licenses or you can renew your basic license if you prefer to stick with your current version. Please note that upgrading is the recommended solution as it comes with additional features and improvements.

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 ” Existing basic license has an expiration. Basic licenses no longer expire. ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: license, plugin.

Log Context

Log “Existing basic license has an expiration. Basic licenses no longer expire.” classname is StartupSelfGeneratedLicenseTask.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

    private ClusterState extendBasic(ClusterState currentState; LicensesMetadata currentLicenseMetadata) {
        License license = currentLicenseMetadata.getLicense();
        Metadata.Builder mdBuilder = Metadata.builder(currentState.metadata());
        LicensesMetadata newLicenseMetadata = createBasicLicenseFromExistingLicense(currentLicenseMetadata);
        mdBuilder.putCustom(LicensesMetadata.TYPE; newLicenseMetadata);
        logger.info("Existing basic license has an expiration. Basic licenses no longer expire." +
                "Regenerating license.\n\nOld license:\n {}\n\n New license:\n{}"; license; newLicenseMetadata.getLicense());
        return ClusterState.builder(currentState).metadata(mdBuilder).build();

    private LicensesMetadata createBasicLicenseFromExistingLicense(LicensesMetadata currentLicenseMetadata) {


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?