# Free license import issue for ELK in version 5.6.2 with xpack freeshly installed,

**URL:** <https://discuss.elastic.co/t/free-license-import-issue-for-elk-in-version-5-6-2-with-xpack-freeshly-installed/103084>\
**Category:** Elasticsearch\
**Created:** [October 6, 2017, 9:45pm UTC](https://discuss.elastic.co/t/free-license-import-issue-for-elk-in-version-5-6-2-with-xpack-freeshly-installed/103084 "2017-10-06T21:45:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dje2006dje](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@dje2006dje](https://discuss.elastic.co/u/dje2006dje)\
**Post date:** [October 6, 2017, 9:45pm UTC](https://discuss.elastic.co/t/free-license-import-issue-for-elk-in-version-5-6-2-with-xpack-freeshly-installed/103084/1 "2017-10-06T21:45:12Z")

</div>

Hello,  
after installing xpack i can't apply my license because I have this issue (I have no connection to internet from my Windows 2008 R2 server ) :

_..._  
_d+AA","start\_date\_in\_millis":1507248000000}}_  
_Enter host password for user 'elastic':_  
_Enter host password for user 'tFormat':_  
\_ % Total % Received % Xferd Average Speed Time Time Time Current\_  
\_ Dload Upload Total Spent Left Speed\_  
_107 430 103 415 0 15 13387 483 --:--:-- --:--:-- --:--:-- 12903_  
_curl: (6) Could not resolve host: XAAiAGwAaQBjAGUAbgBzAGUAXAAiADoAewBcACIAdQBpAGQAXAAiADoAXAAiADM_  
_cAMQBiAGMALQA0ADEAYQA5AC0AOAA1AGYAYQAtADMAZAAyADIANQA5AGEAZQA1AGUAOQBjAFwAIgAsAFwAIgB0AHkAcABlAFw_  
_MAXAAiACwAXAAiAGkAcwBzAHU_  
_curl: (6) Could not resolve host: xml; Host not found_  
_curl: (6) Could not resolve host: text; Host not found_

I don't know this strange tformat user ! and have not its password too (by default i took changeme in doubt !)

i have fine update kibana,elastic, logstash passwords previously . i can connect to 9200 port by Http (+password) , for example

_{_  
\_ "license" : {\_  
\_ "status" : "active",\_  
\_ "uid" : "1d72a87e-844e-4d15-b7a3-a8b1cfbcd224",\_  
\_ "type" : "trial",\_  
\_ "issue\_date" : "2017-10-06T15:07:33.121Z",\_  
\_ "issue\_date\_in\_millis" : 1507302453121,\_  
\_ "expiry\_date" : "2017-11-05T15:07:33.121Z",\_  
\_ "expiry\_date\_in\_millis" : 1509894453121,\_  
\_ "max\_nodes" : 1000,\_  
\_ "issued\_to" : "elasticsearch",\_  
\_ "issuer" : "elasticsearch",\_  
\_ "start\_date\_in\_millis" : -1\_  
\_ }\_  
_}_

If i launch curl in verbose mode i can see an 401 error code but after ignoring this (?) :

_Enter host password for user 'elastic':_  
_Enter host password for user 'tFormat':_  
_\* Couldn't find host 127.0.0.1 in the netrc file; using defaults  
 \* About to connect() to 127.0.0.1 port 9200 (#0)  
 \* Trying 127.0.0.1... connected  
 \* Connected to 127.0.0.1 (127.0.0.1) port 9200 (#0)  
 \* Server auth using Basic with user 'tFormat'  
 \> PUT /xpack/license HTTP/1.1  
 \> Authorization: Basic dEZvcm1hdDplbGFzdGljcGFzc3dvcmQ=  
 \> User-Agent: curl/7.19.2 (i386-pc-win32) libcurl/7.19.2 OpenSSL/0.9.8i zlib/1.2.3  
 \> Host:127.0.0.1:9200  
 \> Accept: /  
 \> Content-Type: application/json  
 \> Content-Length: 15  
 \>  
 } [data not shown]  
\_ % Total % Received % Xferd Average Speed Time Time Time Current  
\_ Dload Upload Total Spent Left Speed_  
\_ 0 15 0 0 0 15 0 319 --:--:-- --:--:-- --:--:-- 319\< HTTP/1.1 **401 Unauthorized** \_  
_\*\*\* **Authentication problem. Ignoring this**.\*\*_  
_\< WWW-Authenticate: Basic realm="security" charset="UTF-8"_  
_\< content-type: application/json; charset=UTF-8_  
_\< content-length: 415_  
_\<_  
_{ [data not shown]_  
_107 430 103 415 0 15 4414 159 --:--:-- --:--:-- --:--:-- 8510\* Connection #0 to host 127.0.0.1 left int_  
_act_

i did not see other similar solved topics, could you please help me ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 6, 2017, 10:37pm UTC](https://discuss.elastic.co/t/free-license-import-issue-for-elk-in-version-5-6-2-with-xpack-freeshly-installed/103084/2 "2017-10-06T22:37:03Z")

</div>

Please show the complete curl command you are running.

---

<div class="post-metadata">

**Author:** ![dje2006dje](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@dje2006dje](https://discuss.elastic.co/u/dje2006dje)\
**Post date:** [October 7, 2017, 7:02am UTC](https://discuss.elastic.co/t/free-license-import-issue-for-elk-in-version-5-6-2-with-xpack-freeshly-installed/103084/3 "2017-10-07T07:02:54Z")

</div>

the complete command is (i have protected the double quote by \ for the data string due to windows ) :

curl -XPUT -u elastic '[http://127.0.0.1:9200/\_xpack/license](http://127.0.0.1:9200/_xpack/license)' -H "Content-Type: application/json" -d {"license":{"uid":"3def8f53-71bc-41a9-85fa-3d2259ae5e9c","type":"basic","issue\_date\_in\_millis":1507248000000,"expiry\_date\_in\_millis":1538870399999,"max\_nodes":100,"issued\_to":"jerome azais (Spie)","issuer":"Web Form","signature":"AAAAAwAAAA2v8bCJrr9YyYiqV3dJAAABmC9ZN0hjZDBGYnVyRXpCOW5Bb3FjZDAxOWpSbTVoMVZwUzRxVk1PSmkxaktJRVl5MUYvUWh3bHZVUTllbXNPbzBUemtnbWpBbmlWRmRZb25KNFlBR2x0TXc2K2p1Y1VtMG1UQU9TRGZVSGRwaEJGUjE3bXd3LzRqZ05iLzRteWFNekdxRGpIYlFwYkJiNUs0U1hTVlJKNVlXekMrSlVUdFIvV0FNeWdOYnlESDc3MWhlY3hSQmdKSjJ2ZTcvYlBFOHhPQlV3ZHdDQ0tHcG5uOElCaDJ4K1hob29xSG85N0kvTWV3THhlQk9NL01VMFRjNDZpZEVXeUtUMXIyMlIveFpJUkk2WUdveEZaME9XWitGUi9WNTZVQW1FMG1DenhZU0ZmeXlZakVEMjZFT2NvOWxpZGlqVmlHNC8rWVVUYzMwRGVySHpIdURzKzFiRDl4TmM1TUp2VTBOUlJZUlAyV0ZVL2kvVk10L0NsbXNFYVZwT3NSU082dFNNa2prQ0ZsclZ4NTltbU1CVE5lR09Bck93V2J1Y3c9PQAAAQBa6pNYYROrzllaHs3Gwv1TKy2dodewQKyJh0NtmclC+IkFW1psDfte+YCtNv8d2zbAbRnQPGMcHbIX5626Z7UAYsPTJ2URFunZ2koHgByrg27sEx0I7hY3p8FCXNEtlQL9/qsdU95r/qQ28ZrtbpzCKHYGVO4dsxqHLJZ2kn51tBJTuUxG1X8X9BbWyYGpvDkyOlH8dQv9URdZWg5RszW4PXxgjp5u1Js63aEhijsbm9vedKM9iOiqV4H1gtKSJgyFogEJa7jiT+GbEoEbeRp4/9WJTLF191o2M4sc9wi03yuGwtli9xXyyMnby7XAupSGRg49BnXSF/i9wZ66d+AA","start\_date\_in\_millis":1507248000000}}

---

<div class="post-metadata">

**Author:** ![dje2006dje](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@dje2006dje](https://discuss.elastic.co/u/dje2006dje)\
**Post date:** [October 7, 2017, 7:09am UTC](https://discuss.elastic.co/t/free-license-import-issue-for-elk-in-version-5-6-2-with-xpack-freeshly-installed/103084/4 "2017-10-07T07:09:57Z")

</div>

you can't see the double quote (to protect my data string after the -d option) in my previous command because this editor remove them. my command (i am under windows ) is :

curl -XPUT -u elastic '[http://127.0.0.1:9200/\_xpack/license](http://127.0.0.1:9200/_xpack/license)' -H "Content-Type: application/json" -d { license\":{\"uid\":\"3def8f53-71bc-41a9-85fa-3d2259ae5e9c\",\"type\":\"basic\",\"issue\_date\_in\_millis\":1507248000000,\"expiry\_date\_in\_millis\":1538870399999,\"max\_nodes\":100,\"issued\_to\":\"jerome azais (Spie)\",\"issuer\":\"Web Form\",\"signature\":\"AAAAAwAAAA2v8bCJrr9YyYiqV3dJAAABmC9ZN0hjZDBGYnVyRXpCOW5Bb3FjZDAxOWpSbTVoMVZwUzRxVk1PSmkxaktJRVl5MUYvUWh3bHZVUTllbXNPbzBUemtnbWpBbmlWRmRZb25KNFlBR2x0TXc2K2p1Y1VtMG1UQU9TRGZVSGRwaEJGUjE3bXd3LzRqZ05iLzRteWFNekdxRGpIYlFwYkJiNUs0U1hTVlJKNVlXekMrSlVUdFIvV0FNeWdOYnlESDc3MWhlY3hSQmdKSjJ2ZTcvYlBFOHhPQlV3ZHdDQ0tHcG5uOElCaDJ4K1hob29xSG85N0kvTWV3THhlQk9NL01VMFRjNDZpZEVXeUtUMXIyMlIveFpJUkk2WUdveEZaME9XWitGUi9WNTZVQW1FMG1DenhZU0ZmeXlZakVEMjZFT2NvOWxpZGlqVmlHNC8rWVVUYzMwRGVySHpIdURzKzFiRDl4TmM1TUp2VTBOUlJZUlAyV0ZVL2kvVk10L0NsbXNFYVZwT3NSU082dFNNa2prQ0ZsclZ4NTltbU1CVE5lR09Bck93V2J1Y3c9PQAAAQBa6pNYYROrzllaHs3Gwv1TKy2dodewQKyJh0NtmclC+IkFW1psDfte+YCtNv8d2zbAbRnQPGMcHbIX5626Z7UAYsPTJ2URFunZ2koHgByrg27sEx0I7hY3p8FCXNEtlQL9/qsdU95r/qQ28ZrtbpzCKHYGVO4dsxqHLJZ2kn51tBJTuUxG1X8X9BbWyYGpvDkyOlH8dQv9URdZWg5RszW4PXxgjp5u1Js63aEhijsbm9vedKM9iOiqV4H1gtKSJgyFogEJa7jiT+GbEoEbeRp4/9WJTLF191o2M4sc9wi03yuGwtli9xXyyMnby7XAupSGRg49BnXSF/i9wZ66d+AA\",\"start\_date\_in\_millis\":1507248000000}}

---

<div class="post-metadata">

**Author:** ![dje2006dje](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@dje2006dje](https://discuss.elastic.co/u/dje2006dje)\
**Post date:** [October 7, 2017, 7:41am UTC](https://discuss.elastic.co/t/free-license-import-issue-for-elk-in-version-5-6-2-with-xpack-freeshly-installed/103084/5 "2017-10-07T07:41:39Z")

</div>

it's okay no, in fact the tformat is due to powershell itself, with cmd interpreter i have not the tformat issue.

i need to change simple quotes by double quotes inside the provide command (in elastic guide line [https://www.elastic.co/guide/en/x-pack/5.6/installing-license.html](https://www.elastic.co/guide/en/x-pack/5.6/installing-license.html) ) like that :

curl -XPUT -u elastic "[http://127.0.0.1:9200/\_xpack/license](http://127.0.0.1:9200/_xpack/license)" -H "Content-Type: application/json" -d @\<my\_file\>

i have not powsershell in version number 3 that is the reason i have not used the get-content command for windows because Invoke-WebRequest is missing in powershell 2.

to conclude my previous command is running fine under cmd(dos) interpreter instead of use powershell

So this topics can be solved , thanks a lot Mark for your help

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 7, 2017, 9:25am UTC](https://discuss.elastic.co/t/free-license-import-issue-for-elk-in-version-5-6-2-with-xpack-freeshly-installed/103084/6 "2017-10-07T09:25:19Z")

</div>

Next time it's good to use `</>` to code format things, that way it won't remove anything 🙂

---

<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:** [November 4, 2017, 9:25am UTC](https://discuss.elastic.co/t/free-license-import-issue-for-elk-in-version-5-6-2-with-xpack-freeshly-installed/103084/7 "2017-11-04T09:25:54Z")

</div>

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