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
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'.
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]"
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)
Please format your code using </> icon as explained in this guide. It will make your post more readable.
Or use markdown style like:
```
CODE
```
Here:
[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.
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
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.