# Issue coming when trying to active trial

**URL:** <https://discuss.elastic.co/t/issue-coming-when-trying-to-active-trial/342823>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [September 12, 2023, 11:15am UTC](https://discuss.elastic.co/t/issue-coming-when-trying-to-active-trial/342823 "2023-09-12T11:15:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitkumar.gupta](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amitkumar.gupta](https://discuss.elastic.co/u/amitkumar.gupta)\
**Post date:** [September 12, 2023, 11:15am UTC](https://discuss.elastic.co/t/issue-coming-when-trying-to-active-trial/342823/1 "2023-09-12T11:15:30Z")

</div>

HI,

below is my elastic cluster -

{  
"name" : "myappserver2",  
"cluster\_name" : "elasticsearch",  
"cluster\_uuid" : "RK\_4iG\_2TYqjuVy-1pmb9Q",  
"version" : {  
"number" : "8.6.1",  
"build\_flavor" : "default",  
"build\_type" : "tar",  
"build\_hash" : "180c9830da956993e59e2cd70eb32b5e383ea42c",  
"build\_date" : "2023-01-24T21:35:11.506992272Z",  
"build\_snapshot" : false,  
"lucene\_version" : "9.4.2",  
"minimum\_wire\_compatibility\_version" : "7.17.0",  
"minimum\_index\_compatibility\_version" : "7.0.0"  
},  
"tagline" : "You Know, for Search"  
}

I am running command to activate trial..  
curl -X POST "localhost:9200/\_license/start\_trial?acknowledge=true&pretty"

but i am getting this error-  
{  
"error": {  
"root\_cause": [  
{  
"type": "security\_exception",  
"reason": "missing authentication credentials for REST request [/\_license/start\_trial?acknowledge=true&pretty]",  
"header": {  
"WWW-Authenticate": [  
"Basic realm="security" charset="UTF-8"",  
"ApiKey"  
]  
}  
}  
],  
"type": "security\_exception",  
"reason": "missing authentication credentials for REST request [/\_license/start\_trial?acknowledge=true&pretty]",  
"header": {  
"WWW-Authenticate": [  
"Basic realm="security" charset="UTF-8"",  
"ApiKey"  
]  
}  
},  
"status": 401  
}

can anyone please guide me how can we get API KEY.. provide me link and how to use in curl command.

---

<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:** [September 12, 2023, 11:35am UTC](https://discuss.elastic.co/t/issue-coming-when-trying-to-active-trial/342823/2 "2023-09-12T11:35:20Z")

</div>

Welcome!

You need to use the credentials which have been generated when you first started the cluster or the updated login / passwords if you changed that.

Note that if you are running Kibana as well, you can activate the trial from the web interface.

---

<div class="post-metadata">

**Author:** ![amitkumar.gupta](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amitkumar.gupta](https://discuss.elastic.co/u/amitkumar.gupta)\
**Post date:** [September 13, 2023, 5:54am UTC](https://discuss.elastic.co/t/issue-coming-when-trying-to-active-trial/342823/3 "2023-09-13T05:54:42Z")

</div>

> [@dadoonet](#):
>
> You need to use the credentials which have been generated when you first started the cluster or the updated login / passwords if you changed that.

Thanks so much for your response.  
Do you steps how can we enable this using Kibana..

and i downloaded the package and set the user name as elastic initially.. so i didn;t set any mail yet.. do you have some sample how can we pass credentials in curl command.. i mean what parameter we need to give in header and body for user name and password to pass to ES.

---

<div class="post-metadata">

**Author:** ![amitkumar.gupta](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amitkumar.gupta](https://discuss.elastic.co/u/amitkumar.gupta)\
**Post date:** [September 14, 2023, 11:57am UTC](https://discuss.elastic.co/t/issue-coming-when-trying-to-active-trial/342823/4 "2023-09-14T11:57:30Z")

</div>

Thanks so much for your response.  
Do you steps how can we enable this using Kibana..

---

<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:** [September 14, 2023, 12:43pm UTC](https://discuss.elastic.co/t/issue-coming-when-trying-to-active-trial/342823/5 "2023-09-14T12:43:27Z")

</div>

> [@amitkumar.gupta](#):
>
> Do you steps how can we enable this using Kibana..

See [License Management | Kibana Guide [8.11] | Elastic](https://www.elastic.co/guide/en/kibana/current/managing-licenses.html)

---

<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:** [October 12, 2023, 12:44pm UTC](https://discuss.elastic.co/t/issue-coming-when-trying-to-active-trial/342823/6 "2023-10-12T12:44:13Z")

</div>

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