I'm trying to install Elasticsearch 6.3 in my PC. The first problem I find is when I want to set an user and a password. I follow the documentation and use
bin/elasticsearch-setup-passwords interactive
but the result is:
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.
If I try to install X-Pack, the error is X-Pack is already install.
Another problem is when I try to connect remotely with Elasticsearch, I change the network.host in elasticsearch.yml: network.host: "myIP" or network.host: 0.0.0.0. In any case, I get it.
I'm in the same exact boat: fresh install of ES and Kibana through DEB on a remote Ubuntu 16.04 machine.
What I've gathered so far is that this seems to relate to the X-Pack licence now shipping in 6.3. In previous versions this error could appear if the licence expired, but X-Pack basic is free now so this shouldn't be the case.
When I do a GET to _xpack/security this is the response
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
}
I have tried setting xpack.security.enabled: false in elasticsearch.yml as some older posts have recommended, but all that did was chance the status from a 403 to a 404.
Hi @dadoonet. The link you provided is only an explanation that some parts of X-Pack are now open. Unless I didn't see it, It doesn't address the problem and potential bug being reported here that some installs of 6.3 through DEB don't appear to be shipping with the right X-Pack license.
If the code of X-Pack is open, does that mean it's all free?
No. Many features in X-Pack are free, such as monitoring, tile maps, Grok Debugger, and Search Profiler. Some features in X-Pack are paid, and require a license that comes with a Gold or Platinum subscription.
I have tried setting xpack.security.enabled: false in elasticsearch.yml as some older posts have recommended, but all that did was chance the status from a 403 to a 404.
I not found this: " xpack.security.enabled: false" in my kibana.yml and elasticsearch.yml.
@Hari_Prasad Of course you can use Elastic stack after the trial. Just revert to Basic license.
Or use a pure OSS version which is also available on download page.
@dadoonet I'm a little confused here, could you help me please?
I'm a newcomer to Elasticsearch and I'm following the tutorial provided in Portuguese by Luiz Guilherme Santos, hosted in Elastic. In the tutorial, he performs the following steps:
Downloads Elasticsearch 6.2.3 (I downloaded 6.3.2 which is the latest) and Kibana
Extracts the TAR files
Installs X-Pack with elasticsearch-plugin (6.3.2 already comes with it, so I didn't installed it)
Runs Elasticsearch
Runs "X-Pack\setup-passwords interactive"
He didn't set any licenses for X-Pack (fresh installation) and "setup-passwords" worked. So why it isn't working in 6.3.2? Is the tutorial outdated? What are the implications of not setting passwords this way?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.