ES 8.0 RPM Install - libjli.so cannot be located launching scripts/binaries from the bin directory - RHEL 8

I am deploying a new ES cluster running 8.0 using RHEL 8.5. Fairly vanilla deployment and Elasticsearch is running on the first node with auto-security used, no JVM installed (using built-in). SELINUX is permissive.

Elastic is launching using systemd and I am able to query the cluster information:

{
  "name" : "es-mstr-01.corp.nklab.com.au",
  "cluster_name" : "nkl-prd-es-clr-01",
  "cluster_uuid" : "zpb0mWSGSVSVvByeZ-fl4w",
  "version" : {
    "number" : "8.0.0",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "1b6a7ece17463df5ff54a3e1302d825889aa1161",
    "build_date" : "2022-02-03T16:47:57.507843096Z",
    "build_snapshot" : false,
    "lucene_version" : "9.0.0",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}

When I attempt to run any of the scripts in the bin folder to generate tokens for adding the additional nodes I receive the following:

[template@es-mstr-01 ~]$ cd /usr/share/elasticsearch/bin
[template@es-mstr-01 bin]$ sudo ./elasticsearch-create-enrollment-token -s node
/usr/share/elasticsearch/jdk/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
[template@es-mstr-01 bin]$ ./elasticsearch-create-enrollment-token -s node
./elasticsearch-env: line 83: /usr/share/elasticsearch/jdk/bin/java: Operation not permitted

Additionally, the following output can be seen when attempting to locate libjli.so:

[template@es-mstr-01 bin]$ locate libjli.so
/usr/share/elasticsearch/jdk/lib/libjli.so
[template@es-mstr-01 bin]$ sudo ldd /usr/share/elasticsearch/jdk/bin/java
	linux-vdso.so.1 (0x00007ffeb3bf4000)
	libz.so.1 => /lib64/libz.so.1 (0x00007f1f7e6bf000)
	libjli.so => /usr/share/elasticsearch/jdk/bin/../lib/libjli.so (0x00007f1f7e4ae000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1f7e28e000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f1f7e08a000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f1f7dcc5000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f1f7ead9000)
[template@es-mstr-01 bin]$

Any ideas would be greatly appreciated. I have also attempted to add the path using ldconfig but this made no difference.

Hey,

can you open an issue in Issues · elastic/elasticsearch · GitHub - that looks like a bug to me.

--Alex

Done.

GitHub - Issue

Thanks

2 Likes

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