# Failed activate basic license

**URL:** <https://discuss.elastic.co/t/failed-activate-basic-license/118873>\
**Category:** Elasticsearch\
**Created:** [February 7, 2018, 3:46pm UTC](https://discuss.elastic.co/t/failed-activate-basic-license/118873 "2018-02-07T15:46:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![1\_Maximys\_1](https://avatars.discourse-cdn.com/v4/letter/1/b782af/32.png) [@1\_Maximys\_1](https://discuss.elastic.co/u/1_Maximys_1)\
**Post date:** [February 7, 2018, 3:46pm UTC](https://discuss.elastic.co/t/failed-activate-basic-license/118873/1 "2018-02-07T15:46:02Z")

</div>

Hi.  
I've installed ELK with docker.  
I need activate Kibana, because we need Monitor tab in Kibana.  
I received json license.  
How should I activate it?  
I found this cmdline:  
curl -XPUT -u elastic 'http://:/\_xpack/license' -d @license.json  
But I receive error:

[root@centos tmp]# curl -XPUT -u root '[http://localhost:9200/\_xpack/license](http://localhost:9200/_xpack/license)' -H "Content-Type: application/json" -d SomeName.json  
Enter host password for user 'root':  
No handler found for uri [/\_xpack/license] and method [PUT][root@centos tmp]#  
[root@centos tmp]# curl [http://localhost:9200](http://localhost:9200)  
{  
"name" : "02oa-5T",  
"cluster\_name" : "elasticsearch",  
"cluster\_uuid" : "8o6PCGdMT1GfsEYdGqyKEA",  
"version" : {  
"number" : "5.6.6",  
"build\_hash" : "7d99d36",  
"build\_date" : "2018-01-09T23:55:47.880Z",  
"build\_snapshot" : false,  
"lucene\_version" : "6.6.1"  
},  
"tagline" : "You Know, for Search"  
}

Also, Do I need before install X-Pack? If yes, should I use it inside kibana container or in real host?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 7, 2018, 5:50pm UTC](https://discuss.elastic.co/t/failed-activate-basic-license/118873/2 "2018-02-07T17:50:38Z")

</div>

Try adding a `@` in front of your filename:

```auto
curl -XPUT -u root 'http://localhost:9200/_xpack/license' -H "Content-Type: application/json" -d @SomeName.json

```

Also, have you really set up a user named `root` in Elasticsearch?

---

<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 7, 2018, 5:50pm UTC](https://discuss.elastic.co/t/failed-activate-basic-license/118873/3 "2018-03-07T17:50:41Z")

</div>

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