# LD Path issue, graylog open v5

**URL:** <https://community.graylog.org/t/ld-path-issue-graylog-open-v5/28172>\
**Category:** Graylog Central (peer support)\
**Tags:** debuggingpl, documentation\
**Created:** [March 21, 2023, 5:35pm UTC](https://community.graylog.org/t/ld-path-issue-graylog-open-v5/28172 "2023-03-21T17:35:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ritter6281](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@ritter6281](https://community.graylog.org/u/ritter6281)\
**Post date:** [March 21, 2023, 5:35pm UTC](https://community.graylog.org/t/ld-path-issue-graylog-open-v5/28172/1 "2023-03-21T17:35:52Z")

</div>

Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.  
**Don’t forget to select tags to help index your topic!**

**1. Describe your incident:**  
Java Path error preventing OpenSearch from working. Specific error:

Starting OpenSearch  
/graylog/opensearch/jdk/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

libjli.so exists on the filesystem in the opensearch path, but that path is not part of the OS LD\_PATH. Is the fix to simply add this to ld.so.conf?

Either way, the docs for installing on ubuntu don’t work in several areas. The Elastic vs. OpenSearch aspect is also a bit vague.

**2. Describe your environment:**

- OS Information: Ubuntu LTS Server 22.04

- Package Version:  
opensearch 2.0.1 tarball

- Service logs, configurations, and environment variables:

**3. What steps have you already taken to try and solve the problem?**

Was about to add path to ld.so.conf and run ldconfig

**4. How can the community help?**  
What is the best solution, as I can think of at least two methods of solving this.

**Helpful Posting Tips:** [Tips for Posting Questions that Get Answers](https://community.graylog.org/t/tips-for-posting-questions-that-get-answers/21828) [Hold down CTRL and link on link to open tips documents in a separate tab]

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [March 21, 2023, 11:00pm UTC](https://community.graylog.org/t/ld-path-issue-graylog-open-v5/28172/2 "2023-03-21T23:00:08Z")

</div>

Hello && welcome @ritter6281

> [@ritter6281](#):
>
> Either way, the docs for installing on ubuntu don’t work in several areas. The Elastic vs. OpenSearch aspect is also a bit vague.

What I ended up doing was using this documention for install Opensearch 2.5/2.6

- [Debian - OpenSearch documentation](https://opensearch.org/docs/latest/install-and-configure/install-opensearch/debian/)  
Then using some of the required information in Graylog docs to make it work with Graylog.

Like the following settings.

```auto
 action.auto_create_index: false
 plugins.security.disabled: true

```

---

<div class="post-metadata">

**Author:** ![H077E](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/h077e/32/15231_2.png) [@H077E](https://community.graylog.org/u/H077E)\
**Post date:** [March 25, 2023, 5:39pm UTC](https://community.graylog.org/t/ld-path-issue-graylog-open-v5/28172/3 "2023-03-25T17:39:35Z")

</div>

Hey @ritter6281

> libjli.so exists on the filesystem in the opensearch path, but that path is not part of the OS LD\_PATH. Is the fix to simply add this to ld.so.conf?

Then let the OpenSearch path become part of the LD path or set a symbolic link form opensearch-path to ld path.

e.g.

```auto
LD_LIBRARY_PATH=/usr/local/lib:/lib64:/opensearch/whatever/path
export LD_LIBRARY_PATH

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [April 8, 2023, 5:40pm UTC](https://community.graylog.org/t/ld-path-issue-graylog-open-v5/28172/4 "2023-04-08T17:40:32Z")

</div>

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