New Install 8.17 scripts not working - java

New to Elasticsearch.

Working on setting up a proof of concept.

I'm using the tutorial here
Tutorial 1: Installing a self-managed Elastic Stack | Elastic Installation and Upgrade Guide [8.17] | Elastic

Anytime I try to use any of the scripts located at /usr/share/elasticsearch/bin/

I get an error.

I'm trying to use this command to generate a token
sudo /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node

The error I get is
/usr/share/elasticsearch/jdk/bin/java:error while loading shared library: libjli.so: cannot open shared object file: no such file or directory

Also happens when I run the script to change the built in user.

My understanding is that elasticsearch is bundled with Java, so I shouldn't have to do anything with java.

Hi @mjanzen,

Welcome! This could either be down to a bad Java install (if you are not using the bundled Java) or a file permissions issue. Are you definitely using the bundled install over a local install?

Can you check out the remediation steps for the below issues and see if the recommendations solve your issue?

Let us know how you get on!

This was a result of the DISA Stig installation.

I re-deployed with the standard RHEL Image and the issue was resolved.