Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES 6.3: X-Pack Licence is "Expired" on New Install #31639

Closed
JonathanHourany opened this Issue Jun 27, 2018 · 6 comments

Comments

Projects
None yet
5 participants
@JonathanHourany
Copy link

JonathanHourany commented Jun 27, 2018

Elasticsearch version: 6.3

JVM version (java -version): 1.8.0_171

OS version (uname -a if on a Unix-like system): Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-128-generic x86_64)

Description of the problem including expected versus actual behavior:

Following the steps provided at Install Elasticsearch with Debian Package I downloaded and installed the DEB files for both Elasticsearch 6.3 and Kibana. I continued following the steps and at some point (I'm no longer able to find them) the steps recommended using bin/elasticsearch-setup-passwords interactive to setup passwords across packages. On running this script I got the following error

Unexpected response code [403] from calling GET http://127.0.0.1:9200/_xpack/security/_authenticate?pretty
It doesn't look like the X-Pack security feature is available on this Elasticsearch node.
Please check if you have installed a license that allows access to X-Pack Security feature.

ERROR: X-Pack Security is not available.`

Following the trail I sent out a GET to `_xpack/security/_authenticate

GET "http://127.0.0.1:9200/_xpack/security/_authenticate?pretty"
{
  "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
}

And querying the X-Pack licence API get me this:

GET "http://localhost:9200/_xpack/license"{
  "license" : {
    "status" : "active",
    "uid" : "a5100a6a-cce1-4d51-b197-97fc2304e50a",
    "type" : "basic",
    "issue_date" : "2018-06-20T22:13:12.053Z",
    "issue_date_in_millis" : 1529532792053,
    "max_nodes" : 1000,
    "issued_to" : "elasticsearch",
    "issuer" : "elasticsearch",
    "start_date_in_millis" : -1
  }
}

It looks like X-Pack thinks the licence is expired for some reason. Like the .deb version might be shipping with expired licenses. There's a thread going on the Elasticsearch forums with other useres experiancing this issue.

@jasontedor

This comment has been minimized.

Copy link
Member

jasontedor commented Jun 27, 2018

A basic license is not entitled to security features. To try out security you need to use a trial license or obtain a subscription.

@jasontedor jasontedor closed this Jun 27, 2018

@JonathanHourany

This comment has been minimized.

Copy link
Author

JonathanHourany commented Jun 28, 2018

@jasontedor

This comment has been minimized.

Copy link
Member

jasontedor commented Jun 28, 2018

Security is in 6.3. It’s not available with a basic license. You can see the license levels and what a basic license provides. Yes it is enabled by default, but the functionality is simply not available with a basic license.

@Karmadon

This comment has been minimized.

Copy link

Karmadon commented Jul 3, 2018

so much greedy

@weyderfs

This comment has been minimized.

Copy link

weyderfs commented Jul 5, 2018

So how to work around the problem? I'm install ELK stack 6.3 and can't login in Kibana because this...

@rafarnaez

This comment has been minimized.

Copy link

rafarnaez commented Feb 22, 2019

So how to work around the problem? I'm install ELK stack 6.3 and can't login in Kibana because this...

This could help to those who install kibana elasticsearch without xpack as basic / free license

https://aboullaite.me/secure-kibana-keycloak/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.