Opensearch security not initialized; Securityadmin.sh not running

Good afternoon,

I am trying to set up a 3-node opensearch cluster with transport and http enabled with self-signed certificates. I installed opensearch with tarball on three hosts and as described in the OpenSearch documentation I generated certificates and added them to each host and each opensearch.yml file. The only other modifications I did are the IPs and node names in the opensearch.yml files.
When I start all three nodes I get following error:

[ERROR][o.o.s.c.ConfigurationLoaderSecurity7] [node1] Failure no such index [.opendistro_security] retrieving configuration for [INTERNALUSERS, ACTIONGROUPS, CONFIG, ROLES, ROLESMAPPING, TENANTS, NODESDN, WHITELIST, AUDIT] (index=.opendistro_security)

When I check the cluster health I get the message “OpenSearch Security not initialized.” So I assumed that I had to run
./plugins/opensearch-security/tools/securityadmin.sh
in order to initialize the security settings without terminating opensearch. This is what I did and got the output


** This tool will be deprecated in the next major release of OpenSearch **
** https://github.com/opensearch-project/security/issues/1755 **


WARNING: nor OPENSEARCH_JAVA_HOME nor JAVA_HOME is set, will use

As I read in several other forums the console output has to be something more than this. I have also tried different parameters as in

but the output is always the same and the error message does not disappear, so I assume the script securityadmin.sh was somehow not executed correctly.
Maybe someone has an Idea where the problem could be?

I would be very grateful for a respond!