# Error while installing elasticsearch license

**URL:** <https://discuss.elastic.co/t/error-while-installing-elasticsearch-license/227222>\
**Category:** Elasticsearch\
**Created:** [April 9, 2020, 12:26am UTC](https://discuss.elastic.co/t/error-while-installing-elasticsearch-license/227222 "2020-04-09T00:26:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![manoj123](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@manoj123](https://discuss.elastic.co/u/manoj123)\
**Post date:** [April 9, 2020, 12:26am UTC](https://discuss.elastic.co/t/error-while-installing-elasticsearch-license/227222/1 "2020-04-09T00:26:21Z")

</div>

Recently I tried to install elastic search license for the version 5.6.8.

The error I am seeing is

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/3/23d3903d9cdcec81bc7566051634bc4be6e18b44.png)

Curl I ran: curl -XPUT -u elastic '[http://es-d3-logs.int.stage.tmocce.com:9200/](http://es-d3-logs.int.stage.tmocce.com:9200/) \_xpack/license' -H "Content-Type: application/json" -d @license.json

I have replaced the downloaded JSON @license.json place.

Can someone help me.?

---

<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:** [April 9, 2020, 1:44am UTC](https://discuss.elastic.co/t/error-while-installing-elasticsearch-license/227222/2 "2020-04-09T01:44:16Z")

</div>

Welcome!

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with `</>` icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

There's a space after `:9200/` and before `_xpack`.  
May be that's the problem?

---

<div class="post-metadata">

**Author:** ![manoj123](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@manoj123](https://discuss.elastic.co/u/manoj123)\
**Post date:** [April 9, 2020, 6:45am UTC](https://discuss.elastic.co/t/error-while-installing-elasticsearch-license/227222/3 "2020-04-09T06:45:03Z")

</div>

Thanks for replying. Sure, I will avoid posting images.  
It looks like there is a space but actually there is no space in between :9200/\_xpack

---

<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:** [April 9, 2020, 6:48am UTC](https://discuss.elastic.co/t/error-while-installing-elasticsearch-license/227222/4 "2020-04-09T06:48:00Z")

</div>

The error message indicates a problem reading the file. Are the user permissions set correctly? Is the path correct?

---

<div class="post-metadata">

**Author:** ![manoj123](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@manoj123](https://discuss.elastic.co/u/manoj123)\
**Post date:** [April 9, 2020, 7:38pm UTC](https://discuss.elastic.co/t/error-while-installing-elasticsearch-license/227222/5 "2020-04-09T19:38:38Z")

</div>

Thanks, issue resolved after removing '@' symbol before license.  
Infact I am facing another big issue with logstash.

````auto
` * bash[shutdown logstash] action run
    [execute] kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

    ================================================================================
    Error executing action `run` on resource 'bash[shutdown logstash]'
    ================================================================================

    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '1'
    ---- Begin output of "bash" "/tmp/chef-script20200409-7602-t9khsp" ----
    STDOUT:
    STDERR: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
    ---- End output of "bash" "/tmp/chef-script20200409-7602-t9khsp" ----
    Ran "bash" "/tmp/chef-script20200409-7602-t9khsp" returned 1

    Cookbook Trace:
    ---------------
    /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
    /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
    /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
    /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
    /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'

    Resource Declaration:
    ---------------------
    # In /var/chef/cache/cookbooks/tmo-logstash/recipes/default.rb

     36: bash 'shutdown logstash' do
     37: action :run
     38: code "kill -9 $(pgrep -u logstash)"
     39: end
     40:

    Compiled Resource:
    ------------------
    # Declared in /var/chef/cache/cookbooks/tmo-logstash/recipes/default.rb:36:in `from_file'

    bash("shutdown logstash") do
      action [:run]
      retries 0
      retry_delay 2
      default_guard_interpreter :default
      command "shutdown logstash"
      backup 5
      returns 0
      code "kill -9 $(pgrep -u logstash)"
      interpreter "bash"
      declared_type :bash
      cookbook_name "tmo-logstash"
      recipe_name "default"
    end

    Platform:
    ---------
    x86_64-linux

Recipe: filebeat::config
  * service[filebeat] action start (up to date)

Running handlers:
Running handlers complete
Chef Client failed. 4 resources updated in 39 seconds```

I can see logstash under cd/opt folder but still when I check for ps -ef | grep logstash. I don't see the service as running.
````

---

<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:** [May 7, 2020, 7:48pm UTC](https://discuss.elastic.co/t/error-while-installing-elasticsearch-license/227222/6 "2020-05-07T19:48:52Z")

</div>

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