Hi All,
I'm having issue to start elastic services with error of:
Job for elasticsearch.service failed because a fatal signal was delivered to the control process.
This is a completely new setup and I tried to configure elasticsearch.yml accordingly but failed to start the services. I even tried to start the services without editing any configuration, but still no luck to bring up the services.
Journalctl -xe provide info below:
Process 53310 (java) of user 988 killed by SIGABRT - dumping core
elasticsearch.service: main process exited, code=killed, status=6/ABRT
Failed to start Elasticsearch.
hs_err_pid log:
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00007f0475081b85, pid=44094, tid=44179
JRE version: OpenJDK Runtime Environment (13.0.2+8) (build 13.0.2+8)
Java VM: OpenJDK 64-Bit Server VM (13.0.2+8, mixed mode, sharing, tiered, compressed oops, concurrent mark sweep gc, linux-amd64)
Problematic frame:
C [jna8520079277885295866.tmp+0x12b85] ffi_prep_closure_loc+0x15
Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h" (or dumping to /usr/share/elasticsearch/core.44094)
If you would like to submit a bug report, please visit:
https://github.com/AdoptOpenJDK/openjdk-support/issues
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
--------------- S U M M A R Y ------------
Command Line: -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.locale.providers=COMPAT -Xms8g -Xmx8g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.io.tmpdir=/data1/els_dc1_1/tmp -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/elasticsearch -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m -XX:MaxDirectMemorySize=4294967296 -Des.path.home=/usr/share/elasticsearch -Des.path.conf=/etc/elasticsearch -Des.distribution.flavor=default -Des.distribution.type=rpm -Des.bundled_jdk=true org.elasticsearch.bootstrap.Elasticsearch -p /var/run/elasticsearch/elasticsearch.pid --quiet
Host: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz, 4 cores, 15G, Red Hat Enterprise Linux Server release 7.7 (Maipo)
Extra Info:
--------------- T H R E A D ---------------
Current thread (0x00007f04b8019000): JavaThread "main" [_thread_in_native, id=44179, stack(0x00007f04c24e8000,0x00007f04c25e9000)]
Stack: [0x00007f04c24e8000,0x00007f04c25e9000], sp=0x00007f04c25e6350, free space=1016k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [jna8520079277885295866.tmp+0x12b85] ffi_prep_closure_loc+0x15
C [jna8520079277885295866.tmp+0x9ebc] Java_com_sun_jna_Native_registerMethod+0x51c
j com.sun.jna.Native.registerMethod(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;[I[J[JIJJLjava/lang/reflect/Method;JIZ[Lcom/sun/jna/ToNativeConverter;Lcom/sun/jna/FromNativeConverter;Ljava/lang/String;)J+0
j com.sun.jna.Native.register(Ljava/lang/Class;Lcom/sun/jna/NativeLibrary;)V+1117
j com.sun.jna.Native.register(Ljava/lang/Class;Ljava/lang/String;)V+17
j com.sun.jna.Native.register(Ljava/lang/String;)V+7
j org.elasticsearch.bootstrap.JNACLibrary.<clinit>()V+73
v ~StubRoutines::call_stub
V [libjvm.so+0x89e2d9] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x3c9
V [libjvm.so+0x8710be] InstanceKlass::call_class_initializer(Thread*)+0x22e
V [libjvm.so+0x8716e4] InstanceKlass::initialize_impl(Thread*)+0x4d4
V [libjvm.so+0xacdb3f] LinkResolver::resolve_static_call(CallInfo&, LinkInfo const&, bool, Thread*)+0x64f
V [libjvm.so+0xacf839] LinkResolver::resolve_invoke(CallInfo&, Handle, constantPoolHandle const&, int, Bytecodes::Code, Thread*)+0x2c9
V [libjvm.so+0x8945ce] InterpreterRuntime::resolve_invoke(JavaThread*, Bytecodes::Code)+0x2de
V [libjvm.so+0x8953e5] InterpreterRuntime::resolve_from_cache(JavaThread*, Bytecodes::Code)+0x115
j org.elasticsearch.bootstrap.JNANatives.definitelyRunningAsRoot()Z+8
j org.elasticsearch.bootstrap.Natives.definitelyRunningAsRoot()Z+18
j org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Ljava/nio/file/Path;ZZZ)V+7
j org.elasticsearch.bootstrap.Bootstrap.setup(ZLorg/elasticsearch/env/Environment;)V+71
j org.elasticsearch.bootstrap.Bootstrap.init(ZLjava/nio/file/Path;ZLorg/elasticsearch/env/Environment;)V+234
j org.elasticsearch.bootstrap.Elasticsearch.init(ZLjava/nio/file/Path;ZLorg/elasticsearch/env/Environment;)V+13
j org.elasticsearch.bootstrap.Elasticsearch.execute(Lorg/elasticsearch/cli/Terminal;Ljoptsimple/OptionSet;Lorg/elasticsearch/env/Environment;)V+204
j org.elasticsearch.cli.EnvironmentAwareCommand.execute(Lorg/elasticsearch/cli/Terminal;Ljoptsimple/OptionSet;)V+218
j org.elasticsearch.cli.Command.mainWithoutErrorHandling([Ljava/lang/String;Lorg/elasticsearch/cli/Terminal;)V+79
j org.elasticsearch.cli.Command.main([Ljava/lang/String;Lorg/elasticsearch/cli/Terminal;)I+47
j org.elasticsearch.bootstrap.Elasticsearch.main([Ljava/lang/String;Lorg/elasticsearch/bootstrap/Elasticsearch;Lorg/elasticsearch/cli/Terminal;)I+3
j org.elasticsearch.bootstrap.Elasticsearch.main([Ljava/lang/String;)V+29
v ~StubRoutines::call_stub
V [libjvm.so+0x89e2d9] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x3c9
V [libjvm.so+0x91b69a] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) [clone .isra.71] [clone .constprop.228]+0x2fa
V [libjvm.so+0x91dfdd] jni_CallStaticVoidMethod+0x15d
C [libjli.so+0x587d] JavaMain+0xe4d
C [libjli.so+0x9249] ThreadJavaMain+0x9
Log:
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sun.jna.Native.registerMethod(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;[I[J[JIJJLjava/lang/reflect/Method;JIZ[Lcom/sun/jna/ToNativeConverter;Lcom/sun/jna/FromNativeConverter;Ljava/lang/String;)J+0
j com.sun.jna.Native.register(Ljava/lang/Class;Lcom/sun/jna/NativeLibrary;)V+1117
j com.sun.jna.Native.register(Ljava/lang/Class;Ljava/lang/String;)V+17
j com.sun.jna.Native.register(Ljava/lang/String;)V+7
j org.elasticsearch.bootstrap.JNACLibrary.<clinit>()V+73
v ~StubRoutines::call_stub
j org.elasticsearch.bootstrap.JNANatives.definitelyRunningAsRoot()Z+8
j org.elasticsearch.bootstrap.Natives.definitelyRunningAsRoot()Z+18
j org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Ljava/nio/file/Path;ZZZ)V+7
j org.elasticsearch.bootstrap.Bootstrap.setup(ZLorg/elasticsearch/env/Environment;)V+71
j org.elasticsearch.bootstrap.Bootstrap.init(ZLjava/nio/file/Path;ZLorg/elasticsearch/env/Environment;)V+234
j org.elasticsearch.bootstrap.Elasticsearch.init(ZLjava/nio/file/Path;ZLorg/elasticsearch/env/Environment;)V+13
j org.elasticsearch.bootstrap.Elasticsearch.execute(Lorg/elasticsearch/cli/Terminal;Ljoptsimple/OptionSet;Lorg/elasticsearch/env/Environment;)V+204
j org.elasticsearch.cli.EnvironmentAwareCommand.execute(Lorg/elasticsearch/cli/Terminal;Ljoptsimple/OptionSet;)V+218
j org.elasticsearch.cli.Command.mainWithoutErrorHandling([Ljava/lang/String;Lorg/elasticsearch/cli/Terminal;)V+79
j org.elasticsearch.cli.Command.main([Ljava/lang/String;Lorg/elasticsearch/cli/Terminal;)I+47
j org.elasticsearch.bootstrap.Elasticsearch.main([Ljava/lang/String;Lorg/elasticsearch/bootstrap/Elasticsearch;Lorg/elasticsearch/cli/Terminal;)I+3
j org.elasticsearch.bootstrap.Elasticsearch.main([Ljava/lang/String;)V+29
v ~StubRoutines::call_stub
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000000
Register to memory mapping:
RAX=0x00007f0475082186: ffi_closure_unix64+0x0000000000000000 in /data1/els_dc1_1/tmp/jna--1985354563/jna8520079277885295866.tmp at 0x00007f047506f000
RBX=0x00007f04b8019310 points into unknown readable memory: 80 63 71 c1 04 7f 00 00
RCX=0x00007f04b880d050 points into unknown readable memory: 02 00 00 00 01 00 00 00
RDX=0x00007f047507b970: <offset 0x000000000000c970> in /data1/els_dc1_1/tmp/jna--1985354563/jna8520079277885295866.tmp at 0x00007f047506f000
RSP=0x00007f04c25e6350 is pointing into the stack for thread: 0x00007f04b8019000
RBP=0x00007f04c25e6350 is pointing into the stack for thread: 0x00007f04b8019000
RSI=0x00007f04b880d070 points into unknown readable memory: 02 00 00 00 03 00 00 00
RDI=0x0 is NULL
R8 =0x00007f04b8019000 is a thread
R9 =0x0 is NULL
R10=0x00007f04c25e5da0 is pointing into the stack for thread: 0x00007f04b8019000
R11=0x00007f04c1db0da0: __errno_location+0x0000000000000000 in /lib64/libpthread.so.0 at 0x00007f04c1da0000
R12=0x00007f04b880d050 points into unknown readable memory: 02 00 00 00 01 00 00 00
R13=0x00007f04b880d070 points into unknown readable memory: 02 00 00 00 03 00 00 00
R14=0x0 is NULL
R15=0x0000000000000004 is an unknown value
Registers:
RAX=0x00007f0475082186, RBX=0x00007f04b8019310, RCX=0x00007f04b880d050, RDX=0x00007f047507b970
RSP=0x00007f04c25e6350, RBP=0x00007f04c25e6350, RSI=0x00007f04b880d070, RDI=0x0000000000000000
R8 =0x00007f04b8019000, R9 =0x0000000000000000, R10=0x00007f04c25e5da0, R11=0x00007f04c1db0da0
R12=0x00007f04b880d050, R13=0x00007f04b880d070, R14=0x0000000000000000, R15=0x0000000000000004
RIP=0x00007f0475081b85, EFLAGS=0x0000000000010293, CSGSFS=0x0000000000000033, ERR=0x0000000000000006
TRAPNO=0x000000000000000e
Top of Stack: (sp=0x00007f04c25e6350)
0x00007f04c25e6350: 00007f04c25e6810 00007f0475078ebc
0x00007f04c25e6360: 00007f04c25e6900 00007f04c25e6560
0x00007f04c25e6370: 00007f04b880d3e0 00007f04b880d3c0
0x00007f04c25e6380: 00007f04c25e69b0 0000000000000001
Stack slot to memory mapping:
stack at sp + 0 slots: 0x00007f04c25e6810 is pointing into the stack for thread: 0x00007f04b8019000
stack at sp + 1 slots: 0x00007f0475078ebc: Java_com_sun_jna_Native_registerMethod+0x000000000000051c in /data1/els_dc1_1/tmp/jna--1985354563/jna8520079277885295866.tmp at 0x00007f047506f000
stack at sp + 2 slots: 0x00007f04c25e6900 is pointing into the stack for thread: 0x00007f04b8019000
stack at sp + 3 slots: 0x00007f04c25e6560 is pointing into the stack for thread: 0x00007f04b8019000
stack at sp + 4 slots: 0x00007f04b880d3e0 points into unknown readable memory: 2f 2e 2e 2f 6c 69 62 2f
stack at sp + 5 slots: 0x00007f04b880d3c0 points into unknown readable memory: 2f 75 73 72 2f 73 68 61
stack at sp + 6 slots: 0x00007f04c25e69b0 is pointing into the stack for thread: 0x00007f04b8019000
stack at sp + 7 slots: 0x0000000000000001 is an unknown value