My cluster ran low on space and ended up red due to unallocated shards. After cleaning out some data and doing my best to get the shards all allocated again, I tried restarting the node with the most disk space.
Now it will not start for me.
After trying several things, and seeing several different messages, I tried upgrading, and then just a full reinstall.
Along the way I saw this message a lot:
fatal error in thread [main], exiting
java.util.ServiceConfigurationError: Service lookup key set is inconsistent with original name set!
After trying to reinstall, that message doesn't show up.
Now my cluster log shows this when I try to start:
I am configuring this via the official ansible elasticsearch module checked out to the 7.8.0 tag.
My host vm is running Ubuntu 18.04.
Data and logs are stored on an iscsi mount.
Of note, when running the ansible role, I do see an error in the elasticsearch : Remove key password
task. Then it tries to start ES and fails.
TASK [elasticsearch : Remove key password] **************************************************************************************************************************************************
failed: [esnode3.example.org] (item=http) => {"ansible_loop_var": "item", "changed": true, "cmd": "/usr/share/elasticsearch/bin/elasticsearch-keystore remove 'xpack.security.http.ssl.secure_key_passphrase'", "delta": "0:00:01.276038", "end": "2020-08-17 12:53:40.845536", "item": "http", "msg": "non-zero return code", "rc": 78, "start": "2020-08-17 12:53:39.569498", "stderr": "ERROR: Setting [xpack.security.http.ssl.secure_key_passphrase] does not exist in the keystore.", "stderr_lines": ["ERROR: Setting [xpack.security.http.ssl.secure_key_passphrase] does not exist in the keystore."], "stdout": "", "stdout_lines": []}
failed: [esnode3.example.org] (item=transport) => {"ansible_loop_var": "item", "changed": true, "cmd": "/usr/share/elasticsearch/bin/elasticsearch-keystore remove 'xpack.security.transport.ssl.secure_key_passphrase'", "delta": "0:00:01.346804", "end": "2020-08-17 12:53:43.021195", "item": "transport", "msg": "non-zero return code", "rc": 78, "start": "2020-08-17 12:53:41.674391", "stderr": "ERROR: Setting [xpack.security.transport.ssl.secure_key_passphrase] does not exist in the keystore.", "stderr_lines": ["ERROR: Setting [xpack.security.transport.ssl.secure_key_passphrase] does not exist in the keystore."], "stdout": "", "stdout_lines": []}
...ignoring
RUNNING HANDLER [elasticsearch : restart elasticsearch] *************************************************************************************************************************************
fatal: [esnode3.example.org]: FAILED! => {"changed": false, "msg": "Unable to start service elasticsearch: Job for elasticsearch.service failed because the control process exited with error code.\nSee \"systemctl status elasticsearch.service\" and \"journalctl -xe\" for details.\n"}
I have done a good bit of googling and haven't found much.
Any help would be appreciated.
Thanks!
Edit:
The message I thought went away after reinstall didn't. It's from SystemD, not ES.
From syslog:
Aug 17 13:21:57 esnode3 systemd[1]: Starting Elasticsearch...
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: fatal error in thread [main], exiting
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: java.util.ServiceConfigurationError: Service lookup key set is inconsistent with original name set!
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.apache.lucene.analysis.util.AnalysisSPILoader.reload(AnalysisSPILoader.java:133)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.apache.lucene.analysis.util.TokenFilterFactory.reloadTokenFilters(TokenFilterFactory.java:73)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.plugins.PluginsService.reloadLuceneSPI(PluginsService.java:577)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.plugins.PluginsService.loadBundle(PluginsService.java:551)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:473)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:164)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.node.Node.<init>(Node.java:317)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.node.Node.<init>(Node.java:266)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:227)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:227)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.cli.Command.main(Command.java:90)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126)
Aug 17 13:22:06 esnode3 systemd-entrypoint[22042]: #011at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)
Aug 17 13:22:07 esnode3 systemd-entrypoint[22042]: 2020-08-17 20:22:07,361332 UTC [22246] ERROR CNamedPipeFactory.cc@226 Unable to open named pipe /tmp/elasticsearch-11145045001933063665/controller_log_22042 for writing: Interrupted system call
Aug 17 13:22:07 esnode3 systemd-entrypoint[22042]: 2020-08-17 20:22:07,362068 UTC [22246] ERROR CLogger.cc@298 Cannot log to named pipe /tmp/elasticsearch-11145045001933063665/controller_log_22042 as it could not be opened for writing
Aug 17 13:22:07 esnode3 systemd-entrypoint[22042]: 2020-08-17 20:22:07,362102 UTC [22246] FATAL Main.cc@102 Could not reconfigure logging
Aug 17 13:22:07 esnode3 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Aug 17 13:22:07 esnode3 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Aug 17 13:22:07 esnode3 systemd[1]: Failed to start Elasticsearch.