I get the following error: "Job for elasticsearch.service failed because the control process exited with error code." When I try to start elasticsearch on my Ubuntu 18.04 server. I have tried uninstalling and re-installing elasticsearch several times and I always get the same resulting error.
Some system info:
Operating System: Ubuntu 18.04.4 LTS
Kernel: Linux 4.15.0-76-generic
Architecture: x86-64
Java
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode)
elasticsearch/stable,now 7.6.0 amd64 [installed]
systemctl status elasticsearch.service
elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/elasticsearch.service.d
└─override.conf
Active: failed (Result: exit-code) since Sun 2020-02-16 20:21:01 UTC; 8min ago
Docs: http://www.elastic.co
Process: 7533 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid -
Main PID: 7533 (code=exited, status=1/FAILURE)
Feb 16 20:21:00 archie elasticsearch[7533]: at org.elasticsearch.bootstrap.Elasticsearch.execu
Feb 16 20:21:00 archie elasticsearch[7533]: at org.elasticsearch.cli.EnvironmentAwareCommand.e
Feb 16 20:21:00 archie elasticsearch[7533]: at org.elasticsearch.cli.Command.mainWithoutErrorH
Feb 16 20:21:00 archie elasticsearch[7533]: at org.elasticsearch.cli.Command.main(Command.java
Feb 16 20:21:00 archie elasticsearch[7533]: at org.elasticsearch.bootstrap.Elasticsearch.main(
Feb 16 20:21:00 archie elasticsearch[7533]: at org.elasticsearch.bootstrap.Elasticsearch.main(
Feb 16 20:21:00 archie elasticsearch[7533]: For complete error details, refer to the log at /var/log/e
Feb 16 20:21:01 archie systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/F
Feb 16 20:21:01 archie systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Feb 16 20:21:01 archie systemd[1]: Failed to start Elasticsearch.
edit /var/log/elasticsearch/gc.log.10
[2020-02-16T20:20:34.745+0000][7604][gc] Using Concurrent Mark Sweep
[2020-02-16T20:20:34.745+0000][7604][gc,heap,coops] Heap address: 0x00000000c0000000, size: 1024 MB, Compressed Oops mode: 32-bit
[2020-02-16T20:20:34.851+0000][7604][safepoint ] Safepoint "EnableBiasedLocking", Time since last: 53024080 ns, Reaching safepoint: 105157 ns, At safepoint: 62857 ns, Total: 168014 ns
[2020-02-16T20:20:34.857+0000][7604][gc,heap,exit ] Heap
[2020-02-16T20:20:34.857+0000][7604][gc,heap,exit ] par new generation total 153344K, used 8179K [0x00000000c0000000, 0x00000000ca660000, 0x00000000ca660000)
[2020-02-16T20:20:34.857+0000][7604][gc,heap,exit ] eden space 136320K, 6% used [0x00000000c0000000, 0x00000000c07fce60, 0x00000000c8520000)
[2020-02-16T20:20:34.857+0000][7604][gc,heap,exit ] from space 17024K, 0% used [0x00000000c8520000, 0x00000000c8520000, 0x00000000c95c0000)
[2020-02-16T20:20:34.857+0000][7604][gc,heap,exit ] to space 17024K, 0% used [0x00000000c95c0000, 0x00000000c95c0000, 0x00000000ca660000)
[2020-02-16T20:20:34.857+0000][7604][gc,heap,exit ] concurrent mark-sweep generation total 878208K, used 0K [0x00000000ca660000, 0x0000000100000000, 0x0000000100000000)
[2020-02-16T20:20:34.857+0000][7604][gc,heap,exit ] Metaspace used 136K, capacity 4480K, committed 4480K, reserved 1056768K
[2020-02-16T20:20:34.857+0000][7604][gc,heap,exit ] class space used 3K, capacity 384K, committed 384K, reserved 1048576K