I've been trying to test a clean config of ES stack on an Ubuntu VM following Install Elasticsearch with Debian Package | Elasticsearch Guide [7.13] | Elastic
The system was a clean install to a 4 core 4GB VM on 20.04.2 and kernel 5.4.0-74-generic
only other installs to the system were:
default-jre
openssh-server
nginx
kibana
$ java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)
I've tried both through sudo apt-get install elasticsearch
and sudo dpkg -i elasticsearch-7.13.2-amd64.deb
after doing a sha512 hash check. Both with and without default-jre installed (using the package JDK with elasticsearch).
Running with sudo dpkg -D777 -i elasticsearch-7.13.2-amd64.deb
, the install stops at:
D000200: conffderef in='/etc/default/elasticsearch' current working='/etc/default/elasticsearch'
D000200: conffderef nonexistent
D000020: deferred_configure '/etc/default/elasticsearch' (= '/etc/default/elasticsearch') useredited=-1 distedited=-1 what=24
D000200: conffderef in='/etc/init.d/elasticsearch' current working='/etc/init.d/elasticsearch'
D000200: conffderef nonexistent
D000020: deferred_configure '/etc/init.d/elasticsearch' (= '/etc/init.d/elasticsearch') useredited=-1 distedited=-1 what=24
D000002: fork/exec /var/lib/dpkg/info/elasticsearch.postinst ( configure )
and htop
has about 14 child processes spawned with the command:
/usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Xms4m -Xmx64m -XX:+UseSerialGC -Des.path.home=/usr/share/elasticsearch -Des.path.conf=/etc/elasticsearch -Des.distribution.flavor=default -Des.distribution.type=deb -cp /usr/share/elasticsearch/lib/*:/usr/share/elasticsearch/lib/tools/keystore-cli/* org.elasticsearch.common.settings.KeyStoreCli create
one of which spins at 100% CPU until killed.
The crash log from the install:
/usr/share/elasticsearch$ cat hs_err_pid5740.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fb5e0b4ddfd, pid=5740, tid=5786
#
# JRE version: OpenJDK Runtime Environment AdoptOpenJDK (16.0+36) (build 16+36)
# Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK (16+36, mixed mode, sharing, tiered, compressed oops, serial gc, linux-amd64)
# Problematic frame:
# J 77 c1 java.lang.Math.max(II)I java.base@16 (11 bytes) @ 0x00007fb5e0b4ddfd [0x00007fb5e0b4de20+0xffffffffffffffdd]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /usr/share/elasticsearch/core.5740)
#
# If you would like to submit a bug report, please visit:
# https://github.com/AdoptOpenJDK/openjdk-support/issues
#
--------------- S U M M A R Y ------------
Command Line: -Xshare:auto -Xms4m -Xmx64m -XX:+UseSerialGC -Des.path.home=/usr/share/elasticsearch -Des.path.conf=/etc/elasticsearch -Des.distribution.flavor=default -Des.distribution.type=deb org.elasticsearch.common.settings.KeyStoreCli create
Host: QEMU Virtual CPU version 2.5+, 4 cores, 3G, Ubuntu 20.04.2 LTS
Time: Wed Jun 23 09:53:15 2021 EDT elapsed time: 2.643542 seconds (0d 0h 0m 2s)
--------------- T H R E A D ---------------
Current thread (0x00007fb5f8022ee0): JavaThread "main" [_thread_in_Java, id=5786, stack(0x00007fb5fe7c6000,0x00007fb5fe8c7000)]
Stack: [0x00007fb5fe7c6000,0x00007fb5fe8c7000], sp=0x00007fb5fe8c44b8, free space=1017k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
J 77 c1 java.lang.Math.max(II)I java.base@16 (11 bytes) @ 0x00007fb5e0b4ddfd [0x00007fb5e0b4de20+0xffffffffffffffdd]
[error occurred during error reporting (printing native stack), id 0xb, SIGSEGV (0xb) at pc=0x00007fb5ff10f503]
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x000000086466b099
Register to memory mapping: