Elastic Search is not starting please help

Can someone help me with elasticsearch, its not starting.
when I check the status this is the response

sudo systemctl status elasticsearch

● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-06-25 17:46:36 IST; 3s ago
Docs: http://www.elastic.co
Process: 10668 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=134)
Main PID: 10668 (code=exited, status=134)

Jun 25 17:46:32 adivid-ubuntu-01 systemd[1]: Started Elasticsearch.
Jun 25 17:46:36 adivid-ubuntu-01 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=134/n/a
Jun 25 17:46:36 adivid-ubuntu-01 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

when i checked the log file

tail /var/log/elasticsearch/gc.log

[2019-06-25T10:03:54.969+0000][1251][safepoint ] Total time for which application threads were stopped: 0.1736486 seconds, Stopping threads took: 0.1735926 seconds
[2019-06-25T10:03:54.969+0000][1251][gc,heap,exit ] Heap
[2019-06-25T10:03:54.969+0000][1251][gc,heap,exit ] par new generation total 153344K, used 32749K [0x00000000c0000000, 0x00000000ca660000, 0x00000000ca660000)
[2019-06-25T10:03:54.969+0000][1251][gc,heap,exit ] eden space 136320K, 24% used [0x00000000c0000000, 0x00000000c1ffb678, 0x00000000c8520000)
[2019-06-25T10:03:54.969+0000][1251][gc,heap,exit ] from space 17024K, 0% used [0x00000000c8520000, 0x00000000c8520000, 0x00000000c95c0000)
[2019-06-25T10:03:54.969+0000][1251][gc,heap,exit ] to space 17024K, 0% used [0x00000000c95c0000, 0x00000000c95c0000, 0x00000000ca660000)
[2019-06-25T10:03:54.969+0000][1251][gc,heap,exit ] concurrent mark-sweep generation total 878208K, used 0K [0x00000000ca660000, 0x0000000100000000, 0x0000000100000000)
[2019-06-25T10:03:54.969+0000][1251][gc,heap,exit ] Metaspace used 13196K, capacity 13434K, committed 13696K, reserved 1060864K
[2019-06-25T10:03:54.969+0000][1251][gc,heap,exit ] class space used 1219K, capacity 1328K, committed 1408K, reserved 1048576K
[2019-06-25T10:03:54.975+0000][1251][safepoint ] Application time: 0.0057239 seconds

Another log with name

tail /var/log/elasticsearch/hs_err_pid14972.log

CPU:total 2 (initial active 2) (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, tsc
CPU Model and flags from /proc/cpuinfo:
model name : Intel(R) Pentium(R) Dual CPU E2200 @ 2.20GHz
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm pti dtherm

Memory: 4k page, physical 1907772k(97156k free), swap 1003516k(638716k free)

vm_info: OpenJDK 64-Bit Server VM (10.0.2+13-Ubuntu-1ubuntu0.18.04.4) for linux-amd64 JRE (10.0.2+13-Ubuntu-1ubuntu0.18.04.4), built on Nov 13 2018 12:53:39 by "buildd" with gcc 7.3.0

END.

I have a Testing Server with only 2gb RAM, running it on Ubuntu 18.04 LTS BIONIC

Sometimes its active after few seconds then it fails

Hi,

Is there another log file with the name of you node in /var/log/elasticsearch/ directoy maybe there's more information there.

Does your server already boot before or is it the first time you launch it?
Did you install plugins?

PS: can you use the formating button for the logs it's really hard to read.

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