Closed mshar039 closed 8 years ago
@mshar039 Are there any error messages in the logs of your Elasticsearch nodes?
@joschi Following is the log from /var/log/elasticsearch/graylog2.log
[2016-03-14 04:11:46,752][INFO ][node ] [Arkon] version[1.7.3], pid[31721], build[05d4530/2015-10-15T09:14:17Z]
[2016-03-14 04:11:46,758][INFO ][node ] [Arkon] initializing ...
[2016-03-14 04:11:46,903][INFO ][plugins ] [Arkon] loaded [suggest], sites []
[2016-03-14 04:11:46,934][INFO ][env ] [Arkon] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [39.5gb], net total_space [49.9gb], types [rootfs]
[2016-03-14 04:11:47,073][ERROR][bootstrap ] Exception
java.lang.VerifyError: class org.elasticsearch.rest.action.suggest.SuggestAction overrides final method handleRequest.(Lorg/elasticsearch/rest/RestRequest;Lorg/elasticsearch/rest/RestChannel;)V
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.elasticsearch.plugin.suggest.SuggestPlugin.processModule(SuggestPlugin.java:27)
at org.elasticsearch.plugins.PluginsService.processModule(PluginsService.java:193)
at org.elasticsearch.plugins.PluginsModule.processModule(PluginsModule.java:61)
at org.elasticsearch.common.inject.Modules.processModules(Modules.java:64)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:58)
at org.elasticsearch.node.internal.InternalNode.<init>(InternalNode.java:210)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:77)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:245)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
It looks like your Elasticsearch installation is corrupted. Reinstall Elasticsearch 1.7.5 from the official packages and try again.
@joschi I installed Elasticsearch 1.7.5 and tried again. Gave the following configurations:
in /etc/elasticsearch/elasticsearch.yml cluster.name: graylog2 node.master: true node.data: true bootstrap.mlockall: true network.host: 127.0.0.1 discovery.zen.ping.multicast.enabled: false discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300"]
$ systemctl status elasticsearch.service elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2016-03-15 00:27:10 IST; 3min 11s ago Docs: http://www.elastic.co Process: 14689 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -Des.pidfile=$PID_DIR/elasticsearch.pid -Des.default.path.home=$ES_HOME -Des.default.path.logs=$LOG_DIR -Des.default.path.data=$DATA_DIR -Des.default.config=$CONF_FILE -Des.default.path.conf=$CONF_DIR (code=exited, status=3) Main PID: 14689 (code=exited, status=3)
Mar 15 00:27:08 localhost.localdomain systemd[1]: Started Elasticsearch. Mar 15 00:27:08 localhost.localdomain systemd[1]: Starting Elasticsearch... Mar 15 00:27:10 localhost.localdomain elasticsearch[14689]: {1.7.3}: Initialization Failed ... Mar 15 00:27:10 localhost.localdomain elasticsearch[14689]: 1) ElasticsearchException Mar 15 00:27:10 localhost.localdomain elasticsearch[14689]: NullPointerException2) ElasticsearchException[unexpected field in shard state [index_uuid]] Mar 15 00:27:10 localhost.localdomain elasticsearch[14689]: CorruptStateException[unexpected field in shard state [index_uuid]] Mar 15 00:27:10 localhost.localdomain systemd[1]: elasticsearch.service: main process exited, code=exited, status=3/NOTIMPLEMENTED Mar 15 00:27:10 localhost.localdomain systemd[1]: Unit elasticsearch.service entered failed state. Mar 15 00:27:10 localhost.localdomain systemd[1]: elasticsearch.service failed.
Please help.
@mshar039 According to the logs you've posted, you're still running a corrupted version of Elasticsearch 1.7.3.
Same issue with ES-oss 6.8.10
Problem description
Could not connect to Elasticsearch after 2 weeks of successful run.
I was able to run the graylog and elasticsearch services properly. After feeding logs file to the elasticsearch through logstash, cluster health became yellow and soon after that graylog released the elasticsearch cluster.
elasticsearch/elasticsearch.yml
graylog/server/server.conf
Environment
I am new to working with tools and linux environment. Please help me with this.