Issue while starting elastic search service

Hi All ,
I am getting below error while starting up elastic service . May I know how to fix this issue as I am new to Elasticsearch .

systemd-entrypoint[62417]: CompileCommand: dontinline java/lang/invoke/MethodHandle.setAsTypeCache bool dontin>
Dec 05 17:34:51 abc systemd-entrypoint[62417]: CompileCommand: dontinline java/lang/invoke/MethodHandle.asTypeUncached bool dontin>
Dec 05 17:34:51 abc systemd-entrypoint[62350]: Failed to load native library:jansi-2.4.0-60af8a6ef4be6b80-libjansi.so. The native >
Dec 05 17:34:51 abc systemd-entrypoint[62350]: java.lang.UnsatisfiedLinkError: /tmp/elasticsearch-18024583892260990691/jansi-2.4.0>
Dec 05 17:34:52 abc systemd-entrypoint[62350]: ERROR: Elasticsearch did not exit normally - check the logs at /var/log/elasticsear>
Dec 05 17:34:53 abc systemd-entrypoint[62350]: ERROR: Elasticsearch died while starting up, with exit code 1
Dec 05 17:34:53 abc systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Dec 05 17:34:53 abc systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Dec 05 17:34:53 abc systemd[1]: Failed to start Elasticsearch.

When i executed journalctl -xe I got below error

sshd[61828]: error: kex_exchange_identification: Connection closed by remote host

Which version of Elasticsearch are you using?

What is the operating system and architecture?

Is the /tmp directory executable?

Which version of Elasticsearch are you using? - elasticsearch-8.16.1-x86_64.rpm one i dowloaded.
What is the operating system and architecture? -- OS VERSION : redhat-8.8
Is the /tmp directory executable? -- no it is not executable
/tmp ext4 rw,nodev,noexec,nosuid 1 2

I googled it and although I did not find anything specifically related to Elasticsearch I found a similar issue that may be related.

I checked the link but did not find resolution .Can you please tell me how to I change the path ? from /tmp to other directory ?

I followed the below link for
downloading Elasticsearch

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