May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:100)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.cli.Command.main(Command.java:101)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:135)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:101)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: For complete error details, refer to the log at /var/log/wazuh-indexer/wazuh-cluster.log
[root@xxx ~]# export JAVA_HOME=/usr/share/elasticsearch/jdk/
[root@xxx ~]# /usr/share/elasticsearch/plugins/opendistro_security/tools/securityadmin.sh -cd /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/ -icl -nhnv -cacert /etc/wazuh-indexer/certs/root-ca.pem -cert /etc/wazuh-indexer/certs/admin.pem -key /etc/wazuh-indexer/certs/admin-key.pem -h localhost
Open Distro Security Admin v7
Will connect to localhost:9300
ERR: Seems there is no Elasticsearch running on localhost:9300 - Will exit
Also tried specifing "-P 9200" or the Java and cert path in wazuh-indexer nut nothing change..
Now both elastichsearch and wash-indexer is not starting... what I have to do?
-- Logs begin at Fri 2022-05-20 03:39:44 CEST, end at Fri 2022-05-20 22:36:50 CEST. --
May 20 03:39:51 xxx.xxx systemd[1]: Starting Wazuh-indexer...
-- Subject: Unit wazuh-indexer.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit wazuh-indexer.service has begun starting up.
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: Exception in thread "main" org.opensearch.bootstrap.BootstrapException: java.nio.file.AccessDeniedException: /etc/wazuh-indexer/certs
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: Likely root cause: java.nio.file.AccessDeniedException: /etc/wazuh-indexer/certs
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:431)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at java.base/java.nio.file.Files.newDirectoryStream(Files.java:476)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:300)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:373)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at java.base/java.nio.file.Files.walkFileTree(Files.java:2840)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.common.logging.LogConfigurator.configure(LogConfigurator.java:232)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.common.logging.LogConfigurator.configure(LogConfigurator.java:142)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:373)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:178)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:169)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:100)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.cli.Command.main(Command.java:101)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:135)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:101)
May 20 03:39:57 xxx.xxx systemd-entrypoint[1208]: For complete error details, refer to the log at /var/log/wazuh-indexer/wazuh-cluster.log
May 20 03:39:57 xxx.xxx systemd[1]: wazuh-indexer.service: main process exited, code=exited, status=1/FAILURE
May 20 03:39:57 xxx.xxx systemd[1]: Failed to start Wazuh-indexer.
-- Subject: Unit wazuh-indexer.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit wazuh-indexer.service has failed.
--
-- The result is failed.
May 20 03:39:57 xxx.xxx systemd[1]: Unit wazuh-indexer.service entered failed state.
May 20 03:39:57 xxx.xxx systemd[1]: wazuh-indexer.service failed.