# \[security\_exception\] current license is non-compliant for \[security\], with { license.expired.feature="security" }

**URL:** https://discuss.elastic.co/t/security-exception-current-license-is-non-compliant-for-security-with-license-expired-feature-security/97351
**Category:** Elasticsearch
**Created:** [August 17, 2017, 7:13am UTC](https://discuss.elastic.co/t/security-exception-current-license-is-non-compliant-for-security-with-license-expired-feature-security/97351 "2017-08-17T07:13:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)
#### Post date: [August 17, 2017, 7:13am UTC](https://discuss.elastic.co/t/security-exception-current-license-is-non-compliant-for-security-with-license-expired-feature-security/97351/1 "2017-08-17T07:13:44Z")

</div>

ELK version: 5.5.1

I restart one of my ES node, and the ES cluster turns red and can't be accessed.

**[security\_exception] current license is non-compliant for [security], with { license.expired.feature="security" }**

what is wrong........I have updated my license to basic a free days ago.

```auto
# curl -XGET 'http://192.168.3.56:9200/_cluster/health?pretty=true'
{
  "error" : {
    "root_cause" : [
      {
        "type" : "security_exception",
        "reason" : "current license is non-compliant for [security]",
        "license.expired.feature" : "security"
      }
    ],
    "type" : "security_exception",
    "reason" : "current license is non-compliant for [security]",
    "license.expired.feature" : "security"
  },
  "status" : 403
}

```

```auto
# curl -XGET 'http://192.168.3.56:9200/_xpack/license'
{
  "license" : {
    "status" : "active",
    "uid" : "01b569ae-58cf-432c-be06-32d2f1395358",
    "type" : "basic",
    "issue_date" : "2017-07-24T00:00:00.000Z",
    "issue_date_in_millis" : 1500854400000,
    "expiry_date" : "2018-07-24T23:59:59.999Z",
    "expiry_date_in_millis" : 1532476799999,
    "max_nodes" : 100,
    "issued_to" : "shengyong pei (opera)",
    "issuer" : "Web Form",
    "start_date_in_millis" : 1500854400000
  }
}

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/9/69694477545e3da469fd852e063f57cd4b346ec4.png)

---

<div class="post-metadata">

### Author: ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)
#### Post date: [August 18, 2017, 5:10pm UTC](https://discuss.elastic.co/t/security-exception-current-license-is-non-compliant-for-security-with-license-expired-feature-security/97351/2 "2017-08-18T17:10:43Z")

</div>

The Basic license doesn't support the Security feature, so you'll need to disable Security in `elasticsearch.yml` and `kibana.yml` with `xpack.security.enabled: false`

This is documented in [https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-enabling](https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html#xpack-enabling)

---

<div class="post-metadata">

### Author: ![KeithTt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keithtt/32/29447_2.png) [@KeithTt](https://discuss.elastic.co/u/KeithTt)
#### Post date: [August 19, 2017, 2:15am UTC](https://discuss.elastic.co/t/security-exception-current-license-is-non-compliant-for-security-with-license-expired-feature-security/97351/3 "2017-08-19T02:15:07Z")

</div>

Thanks tsullivan, resolved by restarting kibana nodes, maybe it is a coincidence, and I do not think it is necessary to set this parameter `xpack.security.enabled: false` in config file, as you said the basic license do not support security...

---

<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: [September 16, 2017, 2:15am UTC](https://discuss.elastic.co/t/security-exception-current-license-is-non-compliant-for-security-with-license-expired-feature-security/97351/4 "2017-09-16T02:15:14Z")

</div>

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