# X-Pack installation, does not seem to be creating indices

**URL:** https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398
**Category:** Elasticsearch
**Created:** [December 12, 2017, 5:47pm UTC](https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398 "2017-12-12T17:47:27Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ajwillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ajwillo/32/25204_2.png) [@ajwillo](https://discuss.elastic.co/u/ajwillo)
#### Post date: [December 12, 2017, 5:47pm UTC](https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398/1 "2017-12-12T17:47:27Z")

</div>

Hi,

Im following the guide for installing x-pack [https://www.elastic.co/guide/en/elasticsearch/reference/6.0/installing-xpack-es.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/installing-xpack-es.html)

but when it comes to generate the passwords I am met with error:

```
ubuntu@ip-10:~$ sudo /usr/share/elasticsearch/bin/x-pack/setup-passwords interactive

Unexpected response code [404] from calling GET http://127.0.0.1:9200/_xpack/security/_authenticate?pretty
Possible causes include:
 * The relative path of the URL is incorrect. Is there a proxy in-between?
 * The protocol (http/https) does not match the port.
 * Is this really an Elasticsearch server?

ERROR: Uknown error
ubuntu@ip-10:~$ curl http://127.0.0.1:9200/_xpack/security/_authenticate?pretty
{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_not_found_exception",
        "reason" : "no such index",
        "resource.type" : "index_expression",
        "resource.id" : "_xpack",
        "index_uuid" : "_na_",
        "index" : "_xpack"
      }
    ],
    "type" : "index_not_found_exception",
    "reason" : "no such index",
    "resource.type" : "index_expression",
    "resource.id" : "_xpack",
    "index_uuid" : "_na_",
    "index" : "_xpack"
  },
  "status" : 404
}

```

I added the below to my Elasticsearch.yml, hoping to resolve the issues:  
action.auto\_create\_index: .security,.monitoring\*,.watches,.triggered\_watches,.watcher-history\*,.ml\*,\__,._  
xpack.license.self\_generated.type: basic

I then uninstalled x-pack with the purge option and re installed it again, with the same results

the indices do not seem to be created:

ubuntu@ip-10:~$ curl [http://localhost:9200/\_cat/indices?v](http://localhost:9200/_cat/indices?v)  
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size  
yellow open .kibana okhgXcGATfevshyWItKFYA 1 1 2 1 13.6kb 13.6kb  
yellow open logstash-2017.12.12 \_H\_BED7-QsW9wuu0y9FBUA 5 1 370 0 688.7kb 688.7kb

---

<div class="post-metadata">

### Author: ![ajwillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ajwillo/32/25204_2.png) [@ajwillo](https://discuss.elastic.co/u/ajwillo)
#### Post date: [December 13, 2017, 2:48pm UTC](https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398/2 "2017-12-13T14:48:06Z")

</div>

Can anyone point me n the right direction?

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [December 14, 2017, 5:49am UTC](https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398/3 "2017-12-14T05:49:01Z")

</div>

Hi,

Can you please share the output of:

> /usr/share/elasticsearch/bin/elasticsearch -V

> /usr/share/elasticsearch/bin/elasticsearch-plugin list -v

so that we can take this further ?

Also, keep in mind that setting

> xpack.license.self\_generated.type: basic

will not allow you to use Security ( as the trial license would for a limited time ) since [X-Pack Security is not part of the Basic License](https://www.elastic.co/subscriptions)

---

<div class="post-metadata">

### Author: ![ajwillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ajwillo/32/25204_2.png) [@ajwillo](https://discuss.elastic.co/u/ajwillo)
#### Post date: [December 14, 2017, 8:37am UTC](https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398/4 "2017-12-14T08:37:13Z")

</div>

Hi,

I did think that in order for an index to be created data needs to be sent? so then do I need to do something else to send the data for x-pack?

```
ubuntu@ip-10:~$ sudo /usr/share/elasticsearch/bin/elasticsearch -V
Version: 6.0.1, Build: 601be4a/2017-12-04T09:29:09.525Z, JVM: 1.8.0_151
ubuntu@ip-10:~$ sudo /usr/share/elasticsearch/bin/elasticsearch-plugin list -v
Plugins directory: /usr/share/elasticsearch/plugins
x-pack
- Plugin information:
Name: x-pack
Description: Elasticsearch Expanded Pack Plugin
Version: 6.0.1
Native Controller: true
Requires Keystore: true
 * Classname: org.elasticsearch.xpack.XPackPlugin
ubuntu@ip-10:~$
```

---

<div class="post-metadata">

### Author: ![ajwillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ajwillo/32/25204_2.png) [@ajwillo](https://discuss.elastic.co/u/ajwillo)
#### Post date: [December 18, 2017, 12:07pm UTC](https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398/5 "2017-12-18T12:07:18Z")

</div>

ive taken out the action.auto\_create\_index line completely and tried uninstall and re install again, no luck

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [December 18, 2017, 12:35pm UTC](https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398/7 "2017-12-18T12:35:29Z")

</div>

> [@](#):
>
> xpack.license.self\_generated.type: basic

This is almost certainly the cause of your problem.  
Check the output of these two commands, but I expect to find security is not enabled, because you have a _Basic_ license installed, which does not include support for security.

```
curl 'http://localhost:9200/_xpack?categories=features&pretty'

curl 'http://localhost:9200/_xpack/license'

```

---

<div class="post-metadata">

### Author: ![ajwillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ajwillo/32/25204_2.png) [@ajwillo](https://discuss.elastic.co/u/ajwillo)
#### Post date: [December 18, 2017, 3:23pm UTC](https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398/8 "2017-12-18T15:23:08Z")

</div>

I removed that line the other day also and uninstalled/reinstalled, same issue. output from commands as per the below:

```
ubuntu@ip-10:~$ curl 'http://localhost:9200/_xpack?categories=features&pretty'
{
  "features" : {
    "graph" : {
      "description" : "Graph Data Exploration for the Elastic Stack",
      "available" : false,
      "enabled" : true
    },
    "logstash" : {
      "description" : "Logstash management component for X-Pack",
      "available" : false,
      "enabled" : true
    },
    "ml" : {
      "description" : "Machine Learning for the Elastic Stack",
      "available" : false,
      "enabled" : true,
      "native_code_info" : {
        "version" : "6.0.1",
        "build_hash" : "cee2d13e3e1fc5"
      }
    },
    "monitoring" : {
      "description" : "Monitoring for the Elastic Stack",
      "available" : true,
      "enabled" : true
    },
    "security" : {
      "description" : "Security for the Elastic Stack",
      "available" : false,
      "enabled" : false
    },
    "watcher" : {
      "description" : "Alerting, Notification and Automation for the Elastic Stack",
      "available" : false,
      "enabled" : true
    }
  },
  "tagline" : "You know, for X"
}
ubuntu@ip-10:~$ curl 'http://localhost:9200/_xpack/license'
{
  "license" : {
    "status" : "active",
    "uid" : "c62f70dd-290c-4dd5-a070-26b5727bfd2c",
    "type" : "basic",
    "issue_date" : "2017-12-13T12:09:56.699Z",
    "issue_date_in_millis" : 1513166996699,
    "expiry_date" : "2018-01-12T12:09:56.699Z",
    "expiry_date_in_millis" : 1515758996699,
    "max_nodes" : 1000,
    "issued_to" : "elasticsearch",
    "issuer" : "elasticsearch",
    "start_date_in_millis" : -1
  }
}
```

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [December 19, 2017, 8:17am UTC](https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398/9 "2017-12-19T08:17:41Z")

</div>

By same issue, do you mean :

> [@ajwillo](#):
>
> ubuntu@ip-10:~$ sudo /usr/share/elasticsearch/bin/x-pack/setup-passwords interactive
> 
> Unexpected response code [404] from calling GET [http://127.0.0.1:9200/\_xpack/security/\_authenticate?pretty](http://127.0.0.1:9200/_xpack/security/_authenticate?pretty)  
> Possible causes include:
> 
> - The relative path of the URL is incorrect. Is there a proxy in-between?
> - The protocol (http/https) does not match the port.
> - Is this really an Elasticsearch server?
> 
> ERROR: Uknown error

As mentioned before, Security is not a feature that is included in the Basic license, so generating passwords is not applicable. `setup-passwords` is a CLI tool for setting passwords for the X-Pack Security built-in users.

Do you have additional issues with your installation that are relevant to this ?

---

<div class="post-metadata">

### Author: ![ajwillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ajwillo/32/25204_2.png) [@ajwillo](https://discuss.elastic.co/u/ajwillo)
#### Post date: [December 19, 2017, 1:58pm UTC](https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398/10 "2017-12-19T13:58:14Z")

</div>

Thanks, I understand now. I was following the guides and the guides do not say bypass this section if you do not want security.

ive now installed the rest of the plugins and I now have the monitoring installed.

Thanks for your help

---

<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: [January 16, 2018, 1:58pm UTC](https://discuss.elastic.co/t/x-pack-installation-does-not-seem-to-be-creating-indices/111398/11 "2018-01-16T13:58:38Z")

</div>

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