# Elasticsearch 6.3: X-Pack and remote connection doesn't work

**URL:** <https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618>\
**Category:** Elasticsearch\
**Created:** [June 20, 2018, 6:44am UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618 "2018-06-20T06:44:25Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmenendez](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@cmenendez](https://discuss.elastic.co/u/cmenendez)\
**Post date:** [June 20, 2018, 6:44am UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/1 "2018-06-20T06:44:25Z")

</div>

Hi,

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.

Any ideas??? Thank you very much.

---

<div class="post-metadata">

**Author:** ![Jon\_Hourany](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@Jon\_Hourany](https://discuss.elastic.co/u/Jon_Hourany)\
**Post date:** [June 21, 2018, 2:09am UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/2 "2018-06-21T02:09:23Z")

</div>

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
}

```

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
  }
}

```

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`.

---

<div class="post-metadata">

**Author:** ![Srikanth\_YMS](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Srikanth\_YMS](https://discuss.elastic.co/u/Srikanth_YMS)\
**Post date:** [June 27, 2018, 8:14pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/3 "2018-06-27T20:14:11Z")

</div>

Hey! Same problem here..  
`ERROR: X-Pack Security is not available.`  
x-pack is open source right??

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 27, 2018, 8:42pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/4 "2018-06-27T20:42:45Z")

</div>

Read this: [https://www.elastic.co/products/x-pack/open](https://www.elastic.co/products/x-pack/open)

---

<div class="post-metadata">

**Author:** ![Jon\_Hourany](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@Jon\_Hourany](https://discuss.elastic.co/u/Jon_Hourany)\
**Post date:** [June 27, 2018, 8:49pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/5 "2018-06-27T20:49:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jon\_Hourany](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@Jon\_Hourany](https://discuss.elastic.co/u/Jon_Hourany)\
**Post date:** [June 27, 2018, 11:18pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/6 "2018-06-27T23:18:43Z")

</div>

I've filed a bug report on this issue [here](https://github.com/elastic/elasticsearch/issues/31639)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 28, 2018, 1:19am UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/7 "2018-06-28T01:19:42Z")

</div>

If you scroll down you'll see:

> **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](https://www.elastic.co/subscriptions).

---

<div class="post-metadata">

**Author:** ![weyderfs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weyderfs/32/32935_2.png) [@weyderfs](https://discuss.elastic.co/u/weyderfs)\
**Post date:** [July 5, 2018, 12:48pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/8 "2018-07-05T12:48:52Z")

</div>

So how to work around the problem? I can't login in Kibana because this...

---

<div class="post-metadata">

**Author:** ![weyderfs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weyderfs/32/32935_2.png) [@weyderfs](https://discuss.elastic.co/u/weyderfs)\
**Post date:** [July 5, 2018, 12:52pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/9 "2018-07-05T12:52:02Z")

</div>

> 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.

☹

---

<div class="post-metadata">

**Author:** ![cooljsz](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@cooljsz](https://discuss.elastic.co/u/cooljsz)\
**Post date:** [July 6, 2018, 7:13am UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/10 "2018-07-06T07:13:47Z")

</div>

because X-Pack [basic] license did not contain any security.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/e/8ee23564b1a2d75b62617091831217a42f74a6c6.png)  
In the old way(5.x version),elasticsearch.yml had elasticsearch.username: "elastic" elasticsearch.password: "search".It did not work now.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 6, 2018, 7:27am UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/11 "2018-07-06T07:27:58Z")

</div>

@cooljsz just to clarify: Xpack security has never been free.

---

<div class="post-metadata">

**Author:** ![raparis](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@raparis](https://discuss.elastic.co/u/raparis)\
**Post date:** [July 8, 2018, 10:35am UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/12 "2018-07-08T10:35:51Z")

</div>

Does that mean creating passwords and providing authentication just the way we were doing it until 6.2.4 version is not available from now on?  
Cheers

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 8, 2018, 11:43am UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/13 "2018-07-08T11:43:57Z")

</div>

No. May be you have been using a trial version?

I mean that security (login/password) has never been free. It did not change from 2.x to 6.3

---

<div class="post-metadata">

**Author:** ![weyderfs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weyderfs/32/32935_2.png) [@weyderfs](https://discuss.elastic.co/u/weyderfs)\
**Post date:** [July 11, 2018, 8:31pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/14 "2018-07-11T20:31:35Z")

</div>

Okay, it's okay that it will not be free, but how am I going to login into Kibana then?  
I installed the tool following your own documentation

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 11, 2018, 9:37pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/15 "2018-07-11T21:37:04Z")

</div>

If you don't have the security feature, you won't have to log in Kibana.

---

<div class="post-metadata">

**Author:** ![Hari\_Prasad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hari_prasad/32/56784_2.png) [@Hari\_Prasad](https://discuss.elastic.co/u/Hari_Prasad)\
**Post date:** [July 30, 2018, 5:36pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/16 "2018-07-30T17:36:24Z")

</div>

So are there no ways to use ELK stack after one month trial? even without any security features ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 30, 2018, 8:39pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/17 "2018-07-30T20:39:39Z")

</div>

@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.

See [https://www.elastic.co/subscriptions](https://www.elastic.co/subscriptions)

---

<div class="post-metadata">

**Author:** ![Rafael\_Simonelli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafael_simonelli/32/45322_2.png) [@Rafael\_Simonelli](https://discuss.elastic.co/u/Rafael_Simonelli)\
**Post date:** [August 14, 2018, 5:22pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/18 "2018-08-14T17:22:56Z")

</div>

@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?

Thanks!

---

<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 28, 2018, 7:06pm UTC](https://discuss.elastic.co/t/elasticsearch-6-3-x-pack-and-remote-connection-doesnt-work/136618/20 "2018-09-28T19:06:42Z")

</div>

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