# Elasticsearch Active: failed

**URL:** <https://discuss.elastic.co/t/elasticsearch-active-failed/103598>\
**Category:** Elasticsearch\
**Created:** [October 11, 2017, 6:29pm UTC](https://discuss.elastic.co/t/elasticsearch-active-failed/103598 "2017-10-11T18:29:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhondude](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jhondude](https://discuss.elastic.co/u/Jhondude)\
**Post date:** [October 11, 2017, 6:29pm UTC](https://discuss.elastic.co/t/elasticsearch-active-failed/103598/1 "2017-10-11T18:29:40Z")

</div>

Hello,  
OS = Ubuntu 16.04, install in vm  
java version  
java version "1.8.0\_144"  
Java(TM) SE Runtime Environment (build 1.8.0\_144-b01)  
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

all ELK service are running, but elasticsearch  
root@picserver:~# systemctl status elasticsearch  
● elasticsearch.service - Elasticsearch  
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)  
**Active: failed** (Result: exit-code) since Thu 2017-10-12 01:20:53 WIB; 7min ago  
Docs: [http://www.elastic.co](http://www.elastic.co)  
Process: 14766 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -Des.pidfile=${PID\_DIR}/elasti  
Process: 14763 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exit  
Main PID: 14766 (code=exited, status=1/FAILURE)

Oct 12 01:20:53 picserver elasticsearch[14766]: at org.elasticsearch.node.internal.InternalS  
Oct 12 01:20:53 picserver elasticsearch[14766]: at org.elasticsearch.common.cli.CliTool.\<ini  
Oct 12 01:20:53 picserver elasticsearch[14766]: at org.elasticsearch.common.cli.CliTool.\<ini  
Oct 12 01:20:53 picserver elasticsearch[14766]: at org.elasticsearch.bootstrap.BootstrapCLIP  
Oct 12 01:20:53 picserver elasticsearch[14766]: at org.elasticsearch.bootstrap.Bootstrap.ini  
Oct 12 01:20:53 picserver elasticsearch[14766]: at org.elasticsearch.bootstrap.Elasticsearch  
Oct 12 01:20:53 picserver elasticsearch[14766]: Refer to the log for complete error details.  
Oct 12 01:20:53 picserver systemd[1]: elasticsearch.service: Main process exited, code=exited, statu  
Oct 12 01:20:53 picserver systemd[1]: elasticsearch.service: Unit entered failed state.  
Oct 12 01:20:53 picserver systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

please anyone help me

Thanks

---

<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:** [October 11, 2017, 6:59pm UTC](https://discuss.elastic.co/t/elasticsearch-active-failed/103598/2 "2017-10-11T18:59:08Z")

</div>

I believe that full logs would tell more but it's most likely because of bootstrap checks.

Please read [https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

---

<div class="post-metadata">

**Author:** ![Jhondude](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jhondude](https://discuss.elastic.co/u/Jhondude)\
**Post date:** [October 11, 2017, 7:15pm UTC](https://discuss.elastic.co/t/elasticsearch-active-failed/103598/3 "2017-10-11T19:15:01Z")

</div>

Hi,  
thanks for your response.

i've update my elasticsearch.yml but still same, service still failed  
☹

---

<div class="post-metadata">

**Author:** ![Jhondude](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jhondude](https://discuss.elastic.co/u/Jhondude)\
**Post date:** [October 11, 2017, 8:01pm UTC](https://discuss.elastic.co/t/elasticsearch-active-failed/103598/4 "2017-10-11T20:01:11Z")

</div>

Hi  
actually when i tried to start elasticseach service is active, and suddenly failed.

```
picserver@picserver:/var/log/elasticsearch$ service elasticsearch status
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2017-10-12 02:56:25 WIB; 3s ago
     Docs: http://www.elastic.co
  Process: 10432 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exit
 Main PID: 10435 (java)
    Tasks: 13
   Memory: 108.8M
      CPU: 1.761s
   CGroup: /system.slice/elasticsearch.service
           └─10435 /usr/bin/java -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseC

Oct 12 02:56:28 picserver elasticsearch[10435]: [2017-10-12 02:56:28,183][WARN][bootstrap          
Oct 12 02:56:28 picserver elasticsearch[10435]: [2017-10-12 02:56:28,188][WARN][bootstrap          
Oct 12 02:56:28 picserver elasticsearch[10435]: [2017-10-12 02:56:28,192][WARN][bootstrap          
Oct 12 02:56:28 picserver elasticsearch[10435]: [2017-10-12 02:56:28,196][WARN][bootstrap          
Oct 12 02:56:28 picserver elasticsearch[10435]: # allow user 'elasticsearch' mlockall
Oct 12 02:56:28 picserver elasticsearch[10435]: elasticsearch soft memlock unlimited
Oct 12 02:56:28 picserver elasticsearch[10435]: elasticsearch hard memlock unlimited
Oct 12 02:56:28 picserver elasticsearch[10435]: [2017-10-12 02:56:28,198][WARN][bootstrap          
Oct 12 02:56:28 picserver elasticsearch[10435]: [2017-10-12 02:56:28,912][INFO][node               
Oct 12 02:56:28 picserver elasticsearch[10435]: [2017-10-12 02:56:28,913][INFO][node               
picserver@picserver:/var/log/elasticsearch$ 
picserver@picserver:/var/log/elasticsearch$ service elasticsearch status
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2017-10-12 02:56:30 WIB; 12s ago
     Docs: http://www.elastic.co
  Process: 10435 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -Des.pidfile=${PID_DIR}/elasti
  Process: 10432 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exit
 Main PID: 10435 (code=exited, status=1/FAILURE)

Oct 12 02:56:30 picserver elasticsearch[10435]: at org.elasticsearch.node.Node.<init>(Node.j
Oct 12 02:56:30 picserver elasticsearch[10435]: at org.elasticsearch.node.Node.<init>(Node.j
Oct 12 02:56:30 picserver elasticsearch[10435]: at org.elasticsearch.node.NodeBuilder.build(
Oct 12 02:56:30 picserver elasticsearch[10435]: at org.elasticsearch.bootstrap.Bootstrap.set
Oct 12 02:56:30 picserver elasticsearch[10435]: at org.elasticsearch.bootstrap.Bootstrap.ini
Oct 12 02:56:30 picserver elasticsearch[10435]: at org.elasticsearch.bootstrap.Elasticsearch
Oct 12 02:56:30 picserver elasticsearch[10435]: Refer to the log for complete error details.
Oct 12 02:56:30 picserver systemd[1]: elasticsearch.service: Main process exited, code=exited, statu
Oct 12 02:56:30 picserver systemd[1]: elasticsearch.service: Unit entered failed state.
Oct 12 02:56:30 picserver systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

```

and based on log what should i do with this?

"[2017-10-12 02:56:30,654][ERROR][bootstrap] Exception  
java.lang.IllegalArgumentException: Plugin [license] is incompatible with Elasticsearch [2.4.6]. Was designed for version [2.3.3]"

Thanks

---

<div class="post-metadata">

**Author:** ![Jhondude](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jhondude](https://discuss.elastic.co/u/Jhondude)\
**Post date:** [October 11, 2017, 8:02pm UTC](https://discuss.elastic.co/t/elasticsearch-active-failed/103598/5 "2017-10-11T20:02:00Z")

</div>

Detail log as follows

```
picserver@picserver:/var/log/elasticsearch$ cat /var/log/elasticsearch/*
[2017-10-12 02:38:18,853][INFO][bootstrap] es.default.config is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed.
[2017-10-12 02:53:33,720][WARN][bootstrap] Unable to lock JVM Memory: error=12,reason=Cannot allocate memory
[2017-10-12 02:53:33,726][WARN][bootstrap] This can result in part of the JVM being swapped out.
[2017-10-12 02:53:33,734][WARN][bootstrap] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536
[2017-10-12 02:53:33,734][WARN][bootstrap] These can be adjusted by modifying /etc/security/limits.conf, for example: 
	# allow user 'elasticsearch' mlockall
	elasticsearch soft memlock unlimited
	elasticsearch hard memlock unlimited
[2017-10-12 02:53:33,735][WARN][bootstrap] If you are logged in interactively, you will have to re-login for the new limits to take effect.
[2017-10-12 02:53:34,510][INFO][node] [node-1-picserver] version[2.4.6], pid[9482], build[5376dca/2017-07-18T12:17:44Z]
[2017-10-12 02:53:34,511][INFO][node] [node-1-picserver] initializing ...
[2017-10-12 02:53:36,293][ERROR][bootstrap] Exception
java.lang.IllegalArgumentException: Plugin [license] is incompatible with Elasticsearch [2.4.6]. Was designed for version [2.3.3]
	at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:118)
	at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:378)
	at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:128)
	at org.elasticsearch.node.Node.<init>(Node.java:158)
	at org.elasticsearch.node.Node.<init>(Node.java:140)
	at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:194)
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:286)
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:45)
[2017-10-12 02:56:28,183][WARN][bootstrap] Unable to lock JVM Memory: error=12,reason=Cannot allocate memory
[2017-10-12 02:56:28,188][WARN][bootstrap] This can result in part of the JVM being swapped out.
[2017-10-12 02:56:28,192][WARN][bootstrap] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536
[2017-10-12 02:56:28,196][WARN][bootstrap] These can be adjusted by modifying /etc/security/limits.conf, for example: 
	# allow user 'elasticsearch' mlockall
	elasticsearch soft memlock unlimited
	elasticsearch hard memlock unlimited
[2017-10-12 02:56:28,198][WARN][bootstrap] If you are logged in interactively, you will have to re-login for the new limits to take effect.
[2017-10-12 02:56:28,912][INFO][node] [node-1-picserver] version[2.4.6], pid[10435], build[5376dca/2017-07-18T12:17:44Z]
[2017-10-12 02:56:28,913][INFO][node] [node-1-picserver] initializing ...
[2017-10-12 02:56:30,654][ERROR][bootstrap] Exception
java.lang.IllegalArgumentException: Plugin [license] is incompatible with Elasticsearch [2.4.6]. Was designed for version [2.3.3]
	at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:118)
	at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:378)
	at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:128)
	at org.elasticsearch.node.Node.<init>(Node.java:158)
	at org.elasticsearch.node.Node.<init>(Node.java:140)
	at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:194)
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:286)
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:45)
```

---

<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:** [October 11, 2017, 8:14pm UTC](https://discuss.elastic.co/t/elasticsearch-active-failed/103598/6 "2017-10-11T20:14:06Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

Here:

```auto
[2017-10-12 02:56:30,654][ERROR][bootstrap] Exception
java.lang.IllegalArgumentException: Plugin [license] is incompatible with Elasticsearch [2.4.6]. Was designed for version [2.3.3]

```

This says that you must remove the license plugin and reinstall it.

---

<div class="post-metadata">

**Author:** ![Jhondude](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jhondude](https://discuss.elastic.co/u/Jhondude)\
**Post date:** [October 11, 2017, 8:21pm UTC](https://discuss.elastic.co/t/elasticsearch-active-failed/103598/7 "2017-10-11T20:21:29Z")

</div>

can you tell me how to do it please.  
😊

---

<div class="post-metadata">

**Author:** ![Jhondude](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jhondude](https://discuss.elastic.co/u/Jhondude)\
**Post date:** [October 11, 2017, 8:31pm UTC](https://discuss.elastic.co/t/elasticsearch-active-failed/103598/8 "2017-10-11T20:31:31Z")

</div>

Hi,  
i has just remove the licence, but i cant install new licence..

```
root@picserver:/usr/share/elasticsearch# bin/plugin remove license
-> Removing license...
Removed license
root@picserver:/usr/share/elasticsearch# bin/plugin install license
-> Installing license...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.6/license-2.4.6.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
root@picserver:/usr/share/elasticsearch# bin/plugin install license
-> Installing license...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.6/license-2.4.6.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information

```

But, my elasticsearch has running, i hope this will be pemanent.

```
root@picserver:/usr/share/elasticsearch# service elasticsearch status
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2017-10-12 03:28:17 WIB; 2min 34s ago
     Docs: http://www.elastic.co
  Process: 20060 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exit
 Main PID: 20063 (java)
    Tasks: 32
   Memory: 226.1M
      CPU: 8.086s
   CGroup: /system.slice/elasticsearch.service
           └─20063 /usr/bin/java -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseC

Oct 12 03:28:23 picserver elasticsearch[20063]: [2017-10-12 03:28:23,272][INFO][env                
Oct 12 03:28:23 picserver elasticsearch[20063]: [2017-10-12 03:28:23,276][INFO][env                
Oct 12 03:28:30 picserver elasticsearch[20063]: [2017-10-12 03:28:30,136][INFO][node               
Oct 12 03:28:30 picserver elasticsearch[20063]: [2017-10-12 03:28:30,139][INFO][node               
Oct 12 03:28:30 picserver elasticsearch[20063]: [2017-10-12 03:28:30,364][INFO][transport          
Oct 12 03:28:30 picserver elasticsearch[20063]: [2017-10-12 03:28:30,374][INFO][discovery          
Oct 12 03:28:33 picserver elasticsearch[20063]: [2017-10-12 03:28:33,471][INFO][cluster.service    
Oct 12 03:28:33 picserver elasticsearch[20063]: [2017-10-12 03:28:33,503][INFO][http               
Oct 12 03:28:33 picserver elasticsearch[20063]: [2017-10-12 03:28:33,503][INFO][node               
Oct 12 03:28:33 picserver elasticsearch[20063]: [2017-10-12 03:28:33,686][INFO][gateway            

```

Thanks

---

<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:** [October 11, 2017, 8:43pm UTC](https://discuss.elastic.co/t/elasticsearch-active-failed/103598/9 "2017-10-11T20:43:41Z")

</div>

This URL `Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.6/license-2.4.6.zip ...` is valid on my side.

You need to check why it's not from your machine. May be a proxy?

---

<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 8, 2017, 8:43pm UTC](https://discuss.elastic.co/t/elasticsearch-active-failed/103598/10 "2017-11-08T20:43:50Z")

</div>

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