My wazuh server has been up and running for several months but today I'm not able to access it. I've restarted the services and wazuh-indexer fails to start.
-- Logs begin at Mon 2025-02-24 09:21:38 EST, end at Mon 2025-02-24 09:37:52 EST. --
Feb 24 09:21:43 systemd[1]: Starting Wazuh-indexer...
-- Subject: Unit wazuh-indexer.service has begun start-up
-- Defined-By: systemd
-- Support:
https://access.redhat.com/support--
-- Unit wazuh-indexer.service has begun starting up.
Feb 24 09:21:46 systemd-entrypoint[1400]: WARNING: A terminally deprecated method in java.lang.System has been called
Feb 24 09:21:46 systemd-entrypoint[1400]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/wazuh-indexer/lib/opensearch-2.8.0.jar)
Feb 24 09:21:46 systemd-entrypoint[1400]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
Feb 24 09:21:46 systemd-entrypoint[1400]: WARNING: System::setSecurityManager will be removed in a future release
Feb 24 09:21:47 systemd-entrypoint[1400]: WARNING: A terminally deprecated method in java.lang.System has been called
Feb 24 09:21:47 systemd-entrypoint[1400]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/wazuh-indexer/lib/opensearch-2.8.0.jar)
Feb 24 09:21:47 systemd-entrypoint[1400]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
Feb 24 09:21:47 systemd-entrypoint[1400]: WARNING: System::setSecurityManager will be removed in a future release
Feb 24 09:21:51 systemd-entrypoint[1400]: uncaught exception in thread [main]
Feb 24 09:21:51 systemd-entrypoint[1400]: OpenSearchException[Unable to load plugin class [org.opensearch.securityanalytics.SecurityAnalyticsPlugin]]; nested: ClassNotFoundException[org.opensearch.securityanalytics.SecurityAnalyticsPlugin];
Feb 24 09:21:51 systemd-entrypoint[1400]: Likely root cause: java.lang.ClassNotFoundException: org.opensearch.securityanalytics.SecurityAnalyticsPlugin
Feb 24 09:21:51 systemd-entrypoint[1400]: at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
Feb 24 09:21:51 systemd-entrypoint[1400]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
Feb 24 09:21:51 systemd-entrypoint[1400]: at java.base/java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:872)
Feb 24 09:21:51 systemd-entrypoint[1400]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
Feb 24 09:21:51 systemd-entrypoint[1400]: at java.base/java.lang.Class.forName0(Native Method)
Feb 24 09:21:51 systemd-entrypoint[1400]: at java.base/java.lang.Class.forName(Class.java:467)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.plugins.PluginsService.loadPluginClass(PluginsService.java:758)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.plugins.PluginsService.loadBundle(PluginsService.java:719)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.plugins.PluginsService.loadBundles(PluginsService.java:533)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.plugins.PluginsService.<init>(PluginsService.java:195)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.node.Node.<init>(Node.java:454)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.node.Node.<init>(Node.java:381)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:242)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.bootstrap.Bootstrap.setup(Bootstrap.java:242)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:404)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:180)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:171)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:104)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.cli.Command.main(Command.java:101)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:137)
Feb 24 09:21:51 systemd-entrypoint[1400]: at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:103)
Feb 24 09:21:51 systemd-entrypoint[1400]: For complete error details, refer to the log at /var/log/wazuh-indexer/wazuh-cluster.log
Feb 24 09:24:43 systemd[1]: wazuh-indexer.service: start operation timed out. Terminating.
Feb 24 09:24:43 systemd[1]: wazuh-indexer.service: Failed with result 'timeout'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support:
https://access.redhat.com/support--
-- The unit wazuh-indexer.service has entered the 'failed' state with result 'timeout'.
Feb 24 09:24:43 systemd[1]: Failed to start Wazuh-indexer.
-- Subject: Unit wazuh-indexer.service has failed
-- Defined-By: systemd
-- Support:
https://access.redhat.com/support--
-- Unit wazuh-indexer.service has failed.
I've already restarted the service multiple times and rebooted the VM multiple times but still getting the error. Its strange that all of a sudden the service will fail to start. Please help. Thank you.