Elastic 6.4.2 will not start "unable to load JNA native support library"

I have installed ES soooo many times. Every once in awhile, something new pops up.

CentOS 7
Elastic 6.4.2 from RPM installer

I had it running, but we then needed to go into recovery mode to resize the root file system.

And now ES won't start, error in log is:

[2018-10-28T19:53:00,873][WARN ][o.e.b.Natives            ] unable to loa
d JNA native support library, native methods will be disabled.
java.lang.UnsatisfiedLinkError: /tmp/elasticsearch.PRdXLpjT/jna--19853545
63/jna2901201660730912229.tmp: /tmp/elasticsearch.PRdXLpjT/jna--198535456
3/jna2901201660730912229.tmp: failed to map segment from shared object: O
peration not permitted
        at java.lang.ClassLoader

I see that ls -l on /tmp is:

$ ls -l /tmp
total 52
drwx------. 2 root       root        4096 Oct 26 11:55 elasticsearch.QbzXEIeS

What is the step to resolve?

Have you changed /tmp to be mounted noexec? This looks similar to https://github.com/elastic/elasticsearch/issues/18406. You can change the tmp dir Jna uses with -Djna.tmpdir in your jvm.options or with ES_JAVA_OPTS env var.

That was in fact the issue.

Now solved.

Thank you!

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