Graylog RHEL9 installation error

Hey everyone !

Iam trying to install graylog server in RHEL9 VM via promox and i cant start opensearch at all. I am following the installation guide but i cannot understand whats going on and the opensearch does not want to start. Any idea whats going on?

Here is what journalctl prints:

Sep 19 16:28:22 localhost.localdomain systemd-entrypoint[42618]: For complete error details, refer to the log at /var/l>
Sep 19 16:28:22 localhost.localdomain systemd[1]: opensearch.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ An ExecStart= process belonging to unit opensearch.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 19 16:28:22 localhost.localdomain systemd[1]: opensearch.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ The unit opensearch.service has entered the 'failed' state with result 'exit-code'.
Sep 19 16:28:22 localhost.localdomain systemd[1]: Failed to start OpenSearch.
░░ Subject: A start job for unit opensearch.service has failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit opensearch.service has finished with a failure.
░░
░░ The job identifier is 6695 and the job result is failed.
Sep 19 16:28:22 localhost.localdomain systemd[1]: opensearch.service: Consumed 11.015s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ The unit opensearch.service completed and consumed the indicated resources.

Hey @pchatzilabrou

What does OpenSearch logs show?
Do you see errors there and if so what does it show?

Hey ,

I decided to start my installation all over again and i saw that during installation step 3. Choose the version of OpenSearch you want to install. Unless otherwise indicated, the latest available version of OpenSearch is installed.

Iam typing this

sudo OPENSEARCH_INITIAL_ADMIN_PASSWORD=$(tr -dc A-Z-a-z-0-9_@#%^-_=+ < /dev/urandom | head -c${1:-32}) yum install ‘opensearch-2.15.0’

but iam getting this error.

-bash: /dev/urandom : No such file or directory

but the installation process normaly and i didnt see it the first time. How am i suppose to syntax the OPENSEARCH_INITIAL_ADMIN_PASSWORD ;

ah thats the new way.

Create your password then place it into your file called

/etc/environment.

Example:

root@opensearch:/usr/share/opensearch/plugins/opensearch-security/tools# cat /etc/environment.
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
OPENSEARCH_INITIAL_ADMIN_PASSWORD=PasswordHoward123!

Logged out and back in.