# Problem Missing authentication token for REST request

**URL:** https://discuss.elastic.co/t/problem-missing-authentication-token-for-rest-request/119066
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [February 8, 2018, 2:21pm UTC](https://discuss.elastic.co/t/problem-missing-authentication-token-for-rest-request/119066 "2018-02-08T14:21:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![IvoGeel123](https://avatars.discourse-cdn.com/v4/letter/i/9d8465/32.png) [@IvoGeel123](https://discuss.elastic.co/u/IvoGeel123)
#### Post date: [February 8, 2018, 2:21pm UTC](https://discuss.elastic.co/t/problem-missing-authentication-token-for-rest-request/119066/1 "2018-02-08T14:21:37Z")

</div>

Hello everyone,

I just started using ElasticSearch and Kibana and had great experiences so far.  
However, I just installed the X-pack and retrieved a 1-year basic license.  
When I tried to update the license to my ES and Kibana it gave an error stating:

"error": {  
"root\_cause": [  
{  
"type": "security\_exception",  
"reason": "missing authentication token for REST request [/bank/account/\_bulk?pretty%20-d%20%7B%22password%22%20:%20%22mWn4T85RTbTjNx5bpdN6%22%29]",  
"header": {  
"WWW-Authenticate": "Basic realm="security" charset="UTF-8""  
}  
}  
],  
"type": "security\_exception",  
"reason": "missing authentication token for REST request [/bank/account/\_bulk?pretty%20-d%20%7B%22password%22%20:%20%22mWn4T85RTbTjNx5bpdN6%22%29]",  
"header": {  
"WWW-Authenticate": "Basic realm="security" charset="UTF-8""  
}  
},  
"status": 401

I used the passwords provided by Elastic in the .yml of elasticsearch and kibana.  
Also after this, I couldn't see any of the data that I had loaded in before installing the X-pack and license.

Can anyone help me with this issue?

Thanks in advance!

Ivo

---

<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: [February 8, 2018, 3:39pm UTC](https://discuss.elastic.co/t/problem-missing-authentication-token-for-rest-request/119066/2 "2018-02-08T15:39:20Z")

</div>

Hi,

Please note that the Basic License does not include Security. You can get a comprehensive view of what is included in every subscription tier by visiting [this page](https://www.elastic.co/subscriptions)

---

<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: [February 8, 2018, 11:42pm UTC](https://discuss.elastic.co/t/problem-missing-authentication-token-for-rest-request/119066/3 "2018-02-08T23:42:25Z")

</div>

> [@IvoGeel123](#):
>
> When I tried to update the license to my ES and Kibana it gave an error stating:
> 
> ```auto
> "error": {
> "root_cause": [
> {
> "type": "security_exception",
> 
> ```

When you install x-pack, the default behaviour is for it to automatically generates a trial license for all platinum features. This includes X-Pack security, which it now preventing you from installing your Basic license (which doesn't not include security).

The easiest solution is to disable security in your configuration file, and restart. Add

```auto
xpack.security.enabled: false

```

to your `elasticsearch.yml` on every node, then you'll be able to install your new 1-year basic license.

---

<div class="post-metadata">

### Author: ![IvoGeel123](https://avatars.discourse-cdn.com/v4/letter/i/9d8465/32.png) [@IvoGeel123](https://discuss.elastic.co/u/IvoGeel123)
#### Post date: [February 9, 2018, 8:00am UTC](https://discuss.elastic.co/t/problem-missing-authentication-token-for-rest-request/119066/4 "2018-02-09T08:00:04Z")

</div>

Thank you! I hadn't figured that out and it works now.

Ivo

---

<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: [March 9, 2018, 8:00am UTC](https://discuss.elastic.co/t/problem-missing-authentication-token-for-rest-request/119066/5 "2018-03-09T08:00:39Z")

</div>

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