# Errors Setting all Password ElasticStack 7.16.3 running on IBM Cloud

**URL:** <https://discuss.elastic.co/t/errors-setting-all-password-elasticstack-7-16-3-running-on-ibm-cloud/298096>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [February 23, 2022, 11:46pm UTC](https://discuss.elastic.co/t/errors-setting-all-password-elasticstack-7-16-3-running-on-ibm-cloud/298096 "2022-02-23T23:46:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_Kribbs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bryan_kribbs/32/102243_2.png) [@Bryan\_Kribbs](https://discuss.elastic.co/u/Bryan_Kribbs)\
**Post date:** [February 23, 2022, 11:46pm UTC](https://discuss.elastic.co/t/errors-setting-all-password-elasticstack-7-16-3-running-on-ibm-cloud/298096/1 "2022-02-23T23:46:46Z")

</div>

Hi,

I have been working on setting up the basic security for elastic and kibana, but when I follow [this guide](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/security-minimal-setup.html#security-create-builtin-users). When I run the "Elasticsearch-setup-passwords" command. I am receiving the following error - "could not find java in bundled JDK at /opt/bitnami/Elasticsearch/jdk/bin/java" with sudo.

I looked around at the different environment variable changes for ES\_JAVA\_HOME, JAVA\_HOME, and LD\_LIBRARY\_PATH. With no luck when changing those to the java path.

Any help would be great. Thanks.

---

<div class="post-metadata">

**Author:** ![Albert\_Zaharovits](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/albert_zaharovits/32/24390_2.png) [@Albert\_Zaharovits](https://discuss.elastic.co/u/Albert_Zaharovits)\
**Post date:** [February 28, 2022, 7:13pm UTC](https://discuss.elastic.co/t/errors-setting-all-password-elasticstack-7-16-3-running-on-ibm-cloud/298096/2 "2022-02-28T19:13:40Z")

</div>

Hi @Bryan_Kribbs ,

What is the contents of the jdk dir at the /opt/bitnami/Elasticsearch path?  
Does the ES process start with ./bin/Elasticsearch ?

Elasticsearch ships with a jvm in these later versions, and the `elasticsearch-setup-passwords` script looks to use the JVM from the instalation, unless the `ES_JAVA_HOME` variable is set.

Is this a `.tar` or a package `.deb`/`.rpm` instalation? Can you share more details on the env so that we can try to reproduce this?

---

<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 28, 2022, 7:14pm UTC](https://discuss.elastic.co/t/errors-setting-all-password-elasticstack-7-16-3-running-on-ibm-cloud/298096/3 "2022-03-28T19:14:09Z")

</div>

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