# Trial license expires the next day after activation

**URL:** <https://discuss.elastic.co/t/trial-license-expires-the-next-day-after-activation/355716>\
**Category:** Elasticsearch\
**Tags:** license\
**Created:** [March 19, 2024, 10:50am UTC](https://discuss.elastic.co/t/trial-license-expires-the-next-day-after-activation/355716 "2024-03-19T10:50:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Kuyanov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergey_kuyanov/32/77405_2.png) [@Sergey\_Kuyanov](https://discuss.elastic.co/u/Sergey_Kuyanov)\
**Post date:** [March 19, 2024, 10:50am UTC](https://discuss.elastic.co/t/trial-license-expires-the-next-day-after-activation/355716/1 "2024-03-19T10:50:53Z")

</div>

Hello everyone. Yesterday, I successfully deployed and configured Elasticsearch on Kubernetes. We need to use cross-cluster replication, so a trial period was activated. Everything was working fine for about 20 hours, then one node started randomly disconnecting from the master. It was suspected that it lacked resources, so I doubled them and updated the cluster. After that, the trial license became unavailable, and cross-cluster replication stopped working. This has happened twice now. We plan to purchase a platinum license, but I'm unsure about it because even the trial cannot last its full 30 days. It's all very strange; if we can't even try for a few days without having to recreate the clusters each time.  
Elasticsearch version: 8.11.3  
Logs when the node started randomly disconnecting:

```auto
{"@timestamp":"2024-03-19T08:55:31.341Z", "log.level": "INFO", "message":"node-join[{sfo3-es-sfo3-1}{RMyL7_UaTdaH54YrVrKclA}{fdZpfx5LRCegwNpxDstusg}{sfo3-es-sfo3-1}{10.244.6.107}{10.244.6.107:9300}{cdfhilmrstw}{8.11.3}{7000099-8500003} joining, removed [2.8s/2803ms] ago with reason [disconnected], [25] total removals], term: 1, version: 1076, delta: added {{sfo3-es-sfo3-1}{RMyL7_UaTdaH54YrVrKclA}{fdZpfx5LRCegwNpxDstusg}{sfo3-es-sfo3-1}{10.244.6.107}{10.244.6.107:9300}{cdfhilmrstw}{8.11.3}{7000099-8500003}}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[sfo3-es-sfo3-0][masterService#updateTask][T#348]","log.logger":"org.elasticsearch.cluster.service.MasterService","elasticsearch.cluster.uuid":"w4SNQMnsSg2eWYXm51JQPQ","elasticsearch.node.id":"2QvL3D6eQnST1mQhbZEdpg","elasticsearch.node.name":"sfo3-es-sfo3-0","elasticsearch.cluster.name":"sfo3"}

```

Elasticsearch manifests:

```auto
---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: sfo3
  namespace: elasticsearch
spec:
  version: 8.11.3
  http:
    tls:
      selfSignedCertificate:
        disabled: true
  transport:
    tls:
      certificateAuthorities:
        configMapName: remote-certs
    service:
      spec:
        type: LoadBalancer 
  nodeSets:
  - name: sfo3
    count: 2
    config:
      node.store.allow_mmap: False
    podTemplate:
      spec:
        containers:
        - name: elasticsearch
          resources:
            requests:
              memory: 2Gi
              cpu: 2
            limits:
              memory: 2Gi

```

Cluster real age:

```auto
kubectl get sts -n elasticsearch
NAME READY AGE
sfo3-es-sfo3 2/2 26h

```

API response to create follower index:

```auto
Error creating follower index: [403 Forbidden] {
  "error" : {
    "root_cause" : [
      {
        "type" : "security_exception",
        "reason" : "current license is non-compliant for [ccr]",
        "license.expired.feature" : "ccr"
      }
    ],
    "type" : "security_exception",
    "reason" : "current license is non-compliant for [ccr]",
    "license.expired.feature" : "ccr"
  },
  "status" : 403
}

```

Checking the license on the main cluster:

```auto
curl -u elastic:$PW -XGET http://$REGION-es-http:9200/_license
{
  "license" : {
    "status" : "active",
    "uid" : "918a3d9e-4e73-48b5-b970-0a38b2619db6",
    "type" : "basic",
    "issue_date" : "2024-03-19T10:15:12.734Z",
    "issue_date_in_millis" : 1710843312734,
    "max_nodes" : 1000,
    "max_resource_units" : null,
    "issued_to" : "sfo3",
    "issuer" : "elasticsearch",
    "start_date_in_millis" : -1
  }
}
curl -u elastic:$PW -X POST "http://$REGION-es-http:9200/_license/start_trial?acknowledge=true&pretty"
{
  "acknowledged" : true,
  "trial_was_started" : false,
  "error_message" : "Operation failed: Trial was already activated."
}

```

Checking the license on the replica cluster:

```auto
curl -u elastic:$PW -XGET http://$REGION-es-http:9200/_license
{
  "license" : {
    "status" : "active",
    "uid" : "423276a7-9e26-400e-8f57-cf1f3bc94a40",
    "type" : "trial",
    "issue_date" : "2024-03-18T07:51:38.770Z",
    "issue_date_in_millis" : 1710748298770,
    "expiry_date" : "2024-04-17T07:51:38.770Z",
    "expiry_date_in_millis" : 1713340298770,
    "max_nodes" : 1000,
    "max_resource_units" : null,
    "issued_to" : "fra1",
    "issuer" : "elasticsearch",
    "start_date_in_millis" : -1
  }
}

```

Let me know if I can provide any more important information, because it's just a development cluster without any clients. I hope for mutual assistance in resolving this issue. Thank you.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 19, 2024, 1:42pm UTC](https://discuss.elastic.co/t/trial-license-expires-the-next-day-after-activation/355716/2 "2024-03-19T13:42:24Z")

</div>

Hi @Sergey_Kuyanov

Is your "Main Cluster" brand new? To me it looks like the trial was activated/ expired at some point in the past. It can only be activated once.

Seems like When you added resources... There was perhaps an issue.. did you deactivate the trial then try to reactivate?

A new trial absolutely last 30 days.

---

<div class="post-metadata">

**Author:** ![Sergey\_Kuyanov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergey_kuyanov/32/77405_2.png) [@Sergey\_Kuyanov](https://discuss.elastic.co/u/Sergey_Kuyanov)\
**Post date:** [March 30, 2024, 1:39pm UTC](https://discuss.elastic.co/t/trial-license-expires-the-next-day-after-activation/355716/3 "2024-03-30T13:39:16Z")

</div>

Hello @stephenb ,  
the primary and secondary clusters only had one day, the license was activated on both simultaneously, but on the primary cluster it worked for only one day, I completely rebuilt the cluster, and it seems now it's not dropping. But before that, it dropped two or three times.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 27, 2024, 1:39pm UTC](https://discuss.elastic.co/t/trial-license-expires-the-next-day-after-activation/355716/4 "2024-04-27T13:39:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
