Describe the issue:
Hello,
I am trying to install OpenSearch to use it as a search engine on Magento.
I attempted to follow the installation guide.
I installed Java JDK 1.8.
I created an OpenSearch user.
I created directories /var/log and /var/lib for the files and gave full access to these directories.
When I launch the application with the command
sudo -u opensearch /usr/share/opensearch/bin/opensearch
I get a lot of errors like:
org.opensearch.bootstrap.StartupException: java.lang.IllegalStateException: Unable to access ‘path.logs’ (/var/log/opensearch)
Caused by: java.nio.file.AccessDeniedException: /var/log/opensearch
java.lang.IllegalStateException: Unable to access ‘path.logs’ (/var/log/opensearch)
I also get the error:
[2024-01-19T13:46:27,021][ERROR][o.o.s.c.ConfigurationLoaderSecurity7] [node-1] Exception while retrieving configuration for [INTERNALUSERS, ACTIONGROUPS, CONFIG, ROLES, ROLESMAPPING, TENANTS, NODESDN, WHITELIST, ALLOWLIST, AUDIT] (index=.opendistro_security)
org.opensearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
I have been on this for 2 days and I don’t know what to look at.
Could someone please give me a hint?
Many thanks to you.
I will try probably today or tomorrow and i will give you a feedback.
You’re right Opensearch 2.5 is a little bit old but it’s the release recommended by Magento so i don’t know if i can use a newer version.