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

**URL:** <https://discuss.elastic.co/t/es-8-0-rpm-install-libjli-so-cannot-be-located-launching-scripts-binaries-from-the-bin-directory-rhel-8/298105>\
**Category:** Elasticsearch\
**Created:** [February 24, 2022, 1:58am UTC](https://discuss.elastic.co/t/es-8-0-rpm-install-libjli-so-cannot-be-located-launching-scripts-binaries-from-the-bin-directory-rhel-8/298105 "2022-02-24T01:58:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![qadv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qadv/32/102245_2.png) [@qadv](https://discuss.elastic.co/u/qadv)\
**Post date:** [February 24, 2022, 1:58am UTC](https://discuss.elastic.co/t/es-8-0-rpm-install-libjli-so-cannot-be-located-launching-scripts-binaries-from-the-bin-directory-rhel-8/298105/1 "2022-02-24T01:58:38Z")

</div>

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:

```auto
{
  "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:

```auto
[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:

```auto
[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.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 24, 2022, 9:20am UTC](https://discuss.elastic.co/t/es-8-0-rpm-install-libjli-so-cannot-be-located-launching-scripts-binaries-from-the-bin-directory-rhel-8/298105/2 "2022-02-24T09:20:18Z")

</div>

Hey,

can you open an issue in [Issues · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues) - that looks like a bug to me.

--Alex

---

<div class="post-metadata">

**Author:** ![qadv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qadv/32/102245_2.png) [@qadv](https://discuss.elastic.co/u/qadv)\
**Post date:** [February 25, 2022, 1:17am UTC](https://discuss.elastic.co/t/es-8-0-rpm-install-libjli-so-cannot-be-located-launching-scripts-binaries-from-the-bin-directory-rhel-8/298105/3 "2022-02-25T01:17:41Z")

</div>

Done.

[GitHub - Issue](https://github.com/elastic/elasticsearch/issues/84380)

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 25, 2022, 1:18am UTC](https://discuss.elastic.co/t/es-8-0-rpm-install-libjli-so-cannot-be-located-launching-scripts-binaries-from-the-bin-directory-rhel-8/298105/4 "2022-03-25T01:18:42Z")

</div>

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