Elasticsearch service getting aborted

Hi,

I'm running Elasticsearch 6.2.2 on Rhel 7.6 and Java openjdk 1.8.0_242.

When the Elasticsearch is started, it keeps getting aborted with the following error:

Mar 03 16:07:15 barnda044 systemd[1]: Started Elasticsearch.
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: #
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: # A fatal error has been detected by the Java Runtime Environment:
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: #
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: #  SIGSEGV (0xb) at pc=0x00007fedbcc29b85, pid=29823, tid=0x00007fedeaadb700
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: #
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: # JRE version: OpenJDK Runtime Environment (8.0_242-b08) (build 1.8.0_242-b08)
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: # Java VM: OpenJDK 64-Bit Server VM (25.242-b08 mixed mode linux-amd64 compressed oops)
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: # Problematic frame:
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: # C  [jna9139010698262288310.tmp+0x12b85]  ffi_prep_closure_loc+0x15
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: #
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: #
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: # An error report file with more information is saved as:
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: # /tmp/hs_err_pid29823.log
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: #
Mar 03 16:07:17 barnda044 elasticsearch-wrapper[29823]: # If you would like to submit a bug report, please visit:
Mar 03 16:07:17 barnda044 systemd[1]: elasticsearch.service: main process exited, code=killed, status=6/ABRT
Mar 03 16:07:17 barnda044 systemd[1]: Unit elasticsearch.service entered failed state.
Mar 03 16:07:17 barnda044 systemd[1]: elasticsearch.service failed.

Any idea how I can fix this?

Hi @Ihjaz,

the file: /tmp/hs_err_pid29823.log should contain more details and would be worthwhile looking into.

There is a previous issue that resembles this though for an older ES version:

Thanks @HenningAndersen.

Changing the jna tmp dir to /var/lib/elasticsearch as mentioned in the thread you shared fixed the issue.

-Djna.tmpdir=/var/lib/elasticsearch/tmp

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