LD Path issue, graylog open v5

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 [Hold down CTRL and link on link to open tips documents in a separate tab]

Hello && welcome @ritter6281

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

Like the following settings.

 action.auto_create_index: false
 plugins.security.disabled: true
1 Like

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.

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

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