Job for elasticsearch.service failed because the control process exited with error code

Hello community...

I am installing ELASTICSEARCH on my CentOS7.8 server BUT I am facing this error when i try to Start and enable elasticsearch service on boot, take in mind this is my second installation...

ERROR:

Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details

systemctl status elasticsearch.service

● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2020-10-15 01:26:52 -05; 1h 5min ago
     Docs: https://www.elastic.co
  Process: 24583 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
 Main PID: 24583 (code=exited, status=1/FAILURE)

Oct 15 01:26:52  vps-789849.cromket.com systemd-entrypoint[24583]: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161)
Oct 15 01:26:52  vps-789849.cromket.com systemd-entrypoint[24583]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
Oct 15 01:26:52  vps-789849.cromket.com systemd-entrypoint[24583]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127)
Oct 15 01:26:52  vps-789849.cromket.com systemd-entrypoint[24583]: at org.elasticsearch.cli.Command.main(Command.java:90)
Oct 15 01:26:52  vps-789849.cromket.com systemd-entrypoint[24583]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126)
Oct 15 01:26:52  vps-789849.cromket.com systemd-entrypoint[24583]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)
Oct 15 01:26:52  vps-789849.cromket.com systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Oct 15 01:26:52  vps-789849.cromket.com systemd[1]: Failed to start Elasticsearch.
Oct 15 01:26:52  vps-789849.cromket.com systemd[1]: Unit elasticsearch.service entered failed state.
Oct 15 01:26:52  vps-789849.cromket.com systemd[1]: elasticsearch.service failed.

journalctl -xe

 Oct 15 02:35:06  vps-789849.cromket.com dbus[604]: [system] Successfully activated service 'org.freedesktop.problems'
Oct 15 02:35:07  vps-789849.cromket.com kernel: LOG_OUTPUT: IN= OUT=eth0 SRC=192.741.380.162 DST=209.141.56.18 LEN=76 TOS=0x00 PREC=0x00 TTL=64 ID=42179 DF PROTO=UDP SPT=36892 DPT=123 LEN=56 
Oct 15 02:35:08  vps-789849.cromket.com kernel: LOG_OUTPUT: IN= OUT=eth0 SRC=192.741.380.162 DST=66.172.10.184 LEN=76 TOS=0x00 PREC=0x00 TTL=64 ID=48156 DF PROTO=UDP SPT=33698 DPT=123 LEN=56 
Oct 15 02:35:09  vps-789849.cromket.com kernel: LOG_OUTPUT: IN= OUT=eth0 SRC=192.741.380.162 DST=209.141.56.18 LEN=76 TOS=0x00 PREC=0x00 TTL=64 ID=42934 DF PROTO=UDP SPT=41873 DPT=123 LEN=56 
Oct 15 02:35:10  vps-789849.cromket.com kernel: LOG_OUTPUT: IN= OUT=eth0 SRC=192.741.380.162 DST=66.172.10.184 LEN=76 TOS=0x00 PREC=0x00 TTL=64 ID=49805 DF PROTO=UDP SPT=49604 DPT=123 LEN=56 
Oct 15 02:35:11  vps-789849.cromket.com kernel: LOG_OUTPUT: IN= OUT=eth0 SRC=192.741.380.162 DST=209.141.56.18 LEN=76 TOS=0x00 PREC=0x00 TTL=64 ID=44710 DF PROTO=UDP SPT=34637 DPT=123 LEN=56 
Oct 15 02:35:12  vps-789849.cromket.com kernel: LOG_OUTPUT: IN= OUT=eth0 SRC=192.741.380.162 DST=173.255.192.10 LEN=76 TOS=0x00 PREC=0x00 TTL=64 ID=701 DF PROTO=UDP SPT=59141 DPT=123 LEN=56 
... another 73 lines!

elasticsearch.log

[2020-10-15T01:26:46,412][WARN ][o.e.b.Natives            ] [ vps-789849.cromket.com] unable to load JNA native support library, native methods will be disabled.
java.lang.UnsatisfiedLinkError: /tmp/elasticsearch-6339340273109761995/jna87900868717404189.tmp: /tmp/elasticsearch-6339340273109761995/jna87900868717404189.tmp: failed to map segment from shared object: Operation not permitted
        at jdk.internal.loader.NativeLibraries.load(Native Method) ~[?:?]
        at jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383) ~[?:?]
        at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227) ~[?:?]
        at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169) ~[?:?]
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2407) ~[?:?]
        at java.lang.Runtime.load0(Runtime.java:747) ~[?:?]
        at java.lang.System.load(System.java:1857) ~[?:?]
        at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018) ~[jna-5.5.0.jar:5.5.0 (b0)]
        at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988) ~[jna-5.5.0.jar:5.5.0 (b0)]
        at com.sun.jna.Native.<clinit>(Native.java:195) ~[jna-5.5.0.jar:5.5.0 (b0)]
        at java.lang.Class.forName0(Native Method) ~[?:?]
        at java.lang.Class.forName(Class.java:377) ~[?:?]
        at org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:45) [elasticsearch-7.9.2.jar:7.9.2]
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:110) [elasticsearch-7.9.2.jar:7.9.2]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178) [elasticsearch-7.9.2.jar:7.9.2]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393) [elasticsearch-7.9.2.jar:7.9.2]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) [elasticsearch-7.9.2.jar:7.9.2]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161) [elasticsearch-7.9.2.jar:7.9.2]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-7.9.2.jar:7.9.2]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127) [elasticsearch-cli-7.9.2.jar:7.9.2]
        at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-7.9.2.jar:7.9.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126) [elasticsearch-7.9.2.jar:7.9.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-7.9.2.jar:7.9.2]
[2020-10-15T01:26:46,428][WARN ][o.e.b.Natives            ] [ vps-789849.cromket.com] cannot check if running as root because JNA is not available
[2020-10-15T01:26:46,429][WARN ][o.e.b.Natives            ] [ vps-789849.cromket.com] cannot install system call filter because JNA is not available
[2020-10-15T01:26:46,429][WARN ][o.e.b.Natives            ] [ vps-789849.cromket.com] cannot register console handler because JNA is not available
[2020-10-15T01:26:46,431][WARN ][o.e.b.Natives            ] [ vps-789849.cromket.com] cannot getrlimit RLIMIT_NPROC because JNA is not available
[2020-10-15T01:26:46,431][WARN ][o.e.b.Natives            ] [ vps-789849.cromket.com] cannot getrlimit RLIMIT_AS because JNA is not available
[2020-10-15T01:26:46,431][WARN ][o.e.b.Natives            ] [ vps-789849.cromket.com] cannot getrlimit RLIMIT_FSIZE because JNA is not available
...165 more lines..!!

hope you could help..!

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