Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexer crash loop without providing error message #879

Open
karlschriek opened this issue Oct 31, 2024 · 6 comments
Open

Indexer crash loop without providing error message #879

karlschriek opened this issue Oct 31, 2024 · 6 comments

Comments

@karlschriek
Copy link

I am deploying Wazuh based on the kubernetes manifests in this repo. I've made adjustments in order to generate secure credentials instead of using the hardcoded secrets, and also to generate TLS certs using certificate manager. But other than that the manifests are pretty much the same as the example ones provided.

I am deploying v4.9.1.

Dashboard and manager (master plus workers) start up correctly. But the indexer is in a crash loop. It starts up, runs for about 60 seconds and then restarts. It does not provide any error messages that would indicate the reason for the crash, which makes it extremely hard to debug.

There are a lot of warnings, but since those are unlikely to have anything to do with changes I've made, I assume they should not play any kind of important role here.

Here are the complete logs for one of the pods. Does any of this point to an obvious problem? Or does anyone have suggestions on how I could discover the root problem?

WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/wazuh-indexer/lib/opensearch-2.13.0.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
WARNING: System::setSecurityManager will be removed in a future release
Oct 31, 2024 3:43:00 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/wazuh-indexer/lib/opensearch-2.13.0.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
WARNING: System::setSecurityManager will be removed in a future release
[2024-10-31T15:43:02,022][INFO ][o.o.n.Node               ] [wazuh-indexer-0] version[2.13.0], pid[1], build[rpm/06e21c13dd7df95b42014376ce7531fa574ce569/2024-10-15T16:48:17.780639Z], OS[Linux/5.15.0-1064-azure/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/21.0.2/21.0.2+13-LTS]
[2024-10-31T15:43:02,024][INFO ][o.o.n.Node               ] [wazuh-indexer-0] JVM home [/usr/share/wazuh-indexer/jdk], using bundled JDK/JRE [true]
[2024-10-31T15:43:02,024][INFO ][o.o.n.Node               ] [wazuh-indexer-0] JVM arguments [-Xshare:auto, -Dopensearch.networkaddress.cache.ttl=60, -Dopensearch.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.security.manager=allow, -Djava.locale.providers=SPI,COMPAT, -XX:+UseG1GC, -XX:G1ReservePercent=25, -XX:InitiatingHeapOccupancyPercent=30, -Djava.io.tmpdir=/tmp/opensearch-2778469769811173973, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/wazuh-indexer, -XX:ErrorFile=/var/log/wazuh-indexer/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/wazuh-indexer/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.security.manager=allow, -Djava.util.concurrent.ForkJoinPool.common.threadFactory=org.opensearch.secure_sm.SecuredForkJoinWorkerThreadFactory, -Dclk.tck=100, -Djdk.attach.allowAttachSelf=true, -Djava.security.policy=file:///usr/share/wazuh-indexer/opensearch-performance-analyzer/opensearch_security.policy, --add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED, -Xms1g, -Xmx1g, -Dlog4j2.formatMsgNoLookups=true, -XX:MaxDirectMemorySize=536870912, -Dopensearch.path.home=/usr/share/wazuh-indexer, -Dopensearch.path.conf=/usr/share/wazuh-indexer, -Dopensearch.distribution.type=rpm, -Dopensearch.bundled_jdk=true]
[2024-10-31T15:43:05,738][INFO ][o.o.s.s.t.SSLConfig      ] [wazuh-indexer-0] SSL dual mode is disabled
[2024-10-31T15:43:05,738][INFO ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] OpenSearch Config path is /usr/share/wazuh-indexer
[2024-10-31T15:43:06,536][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-0] JVM supports TLSv1.3
[2024-10-31T15:43:06,619][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-0] Config directory is /usr/share/wazuh-indexer/, from there the key- and truststore files are resolved relatively
[2024-10-31T15:43:07,943][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-0] TLS Transport Client Provider : JDK
[2024-10-31T15:43:07,944][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-0] TLS Transport Server Provider : JDK
[2024-10-31T15:43:07,944][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-0] TLS HTTP Provider             : JDK
[2024-10-31T15:43:07,944][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-0] Enabled TLS protocols for transport layer : [TLSv1.3, TLSv1.2]
[2024-10-31T15:43:07,944][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-0] Enabled TLS protocols for HTTP layer      : [TLSv1.2]
[2024-10-31T15:43:08,128][INFO ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] Clustername: wazuh
[2024-10-31T15:43:08,525][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] Directory /usr/share/wazuh-indexer/.cache has insecure file permissions (should be 0700)
[2024-10-31T15:43:08,525][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] Directory /usr/share/wazuh-indexer/.cache/JNA has insecure file permissions (should be 0700)
[2024-10-31T15:43:08,525][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] Directory /usr/share/wazuh-indexer/.cache/JNA/temp has insecure file permissions (should be 0700)
[2024-10-31T15:43:08,526][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] Directory /usr/share/wazuh-indexer/certs has insecure file permissions (should be 0700)
[2024-10-31T15:43:08,526][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/certs/admin.pem has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,526][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/certs/node.pem has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,526][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/certs/admin-key.pem has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,527][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/certs/node-key.pem has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,527][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/certs/root-ca.pem has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,527][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] Directory /usr/share/wazuh-indexer/logs has insecure file permissions (should be 0700)
[2024-10-31T15:43:08,528][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/opensearch.yml has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,528][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/lib/modules has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,528][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/lib/jspawnhelper has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,528][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jarsigner has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,528][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jmod has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,529][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jstatd has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,529][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/java has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,529][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jrunscript has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,529][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jfr has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,530][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jconsole has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,530][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/javadoc has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,530][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/keytool has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,530][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jshell has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,531][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jwebserver has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,531][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/serialver has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,531][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jmap has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,531][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jlink has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,532][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jimage has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,532][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jstack has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,532][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jinfo has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,532][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jar has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,533][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jdeprscan has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,533][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jhsdb has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,533][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jdb has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,533][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/javap has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,533][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jstat has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,534][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jps has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,534][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jpackage has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,534][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jdeps has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,534][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/javac has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,535][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/jcmd has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,535][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/jdk/bin/rmiregistry has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,535][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/performance-analyzer-rca/bin/performance-analyzer-rca has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,535][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/performance-analyzer-rca/bin/performance-analyzer-agent has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,535][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/opensearch-env has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,536][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/indexer-security-init.sh has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,536][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/opensearch-keystore has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,536][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/opensearch-upgrade has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,536][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/opensearch-performance-analyzer/performance-analyzer-agent-cli has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,619][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/opensearch-performance-analyzer/performance-analyzer-agent has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,619][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/opensearch-cli has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,619][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/systemd-entrypoint has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,619][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/opensearch-shard has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,620][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/opensearch has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,620][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/opensearch-plugin has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,620][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/opensearch-env-from-file has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,620][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/bin/opensearch-node has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,621][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/opensearch-security/internal_users.yml has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,621][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/plugins/opensearch-security/tools/audit_config_migrater.sh has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,621][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/plugins/opensearch-security/tools/securityadmin.sh has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,621][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-passwords-tool.sh has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,621][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-certs-tool.sh has insecure file permissions (should be 0600)
[2024-10-31T15:43:08,622][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] File /usr/share/wazuh-indexer/plugins/opensearch-security/tools/hash.sh has insecure file permissions (should be 0600)
[2024-10-31T15:43:13,826][INFO ][o.o.p.c.c.PluginSettings ] [wazuh-indexer-0] Trying to create directory /dev/shm/performanceanalyzer/.
[2024-10-31T15:43:13,827][INFO ][o.o.p.c.c.PluginSettings ] [wazuh-indexer-0] Config: metricsLocation: /dev/shm/performanceanalyzer/, metricsDeletionInterval: 1, httpsEnabled: false, cleanup-metrics-db-files: true, batch-metrics-retention-period-minutes: 7, rpc-port: 9650, webservice-port 9600
[2024-10-31T15:43:15,134][INFO ][o.o.i.r.ReindexPlugin    ] [wazuh-indexer-0] ReindexPlugin reloadSPI called
[2024-10-31T15:43:15,135][INFO ][o.o.i.r.ReindexPlugin    ] [wazuh-indexer-0] Unable to find any implementation for RemoteReindexExtension
[2024-10-31T15:43:15,229][INFO ][o.o.j.JobSchedulerPlugin ] [wazuh-indexer-0] Loaded scheduler extension: opendistro_anomaly_detector, index: .opendistro-anomaly-detector-jobs
[2024-10-31T15:43:15,318][INFO ][o.o.j.JobSchedulerPlugin ] [wazuh-indexer-0] Loaded scheduler extension: reports-scheduler, index: .opendistro-reports-definitions
[2024-10-31T15:43:15,319][INFO ][o.o.j.JobSchedulerPlugin ] [wazuh-indexer-0] Loaded scheduler extension: opendistro-index-management, index: .opendistro-ism-config
[2024-10-31T15:43:15,320][INFO ][o.o.j.JobSchedulerPlugin ] [wazuh-indexer-0] Loaded scheduler extension: scheduler_geospatial_ip2geo_datasource, index: .scheduler-geospatial-ip2geo-datasource
[2024-10-31T15:43:15,321][INFO ][o.o.j.JobSchedulerPlugin ] [wazuh-indexer-0] Loaded scheduler extension: opensearch_sap_job, index: .opensearch-sap--job
[2024-10-31T15:43:15,326][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [aggs-matrix-stats]
[2024-10-31T15:43:15,326][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [analysis-common]
[2024-10-31T15:43:15,326][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [cache-common]
[2024-10-31T15:43:15,326][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [geo]
[2024-10-31T15:43:15,326][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [ingest-common]
[2024-10-31T15:43:15,326][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [ingest-geoip]
[2024-10-31T15:43:15,326][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [ingest-user-agent]
[2024-10-31T15:43:15,327][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [lang-expression]
[2024-10-31T15:43:15,327][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [lang-mustache]
[2024-10-31T15:43:15,327][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [lang-painless]
[2024-10-31T15:43:15,327][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [mapper-extras]
[2024-10-31T15:43:15,327][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [opensearch-dashboards]
[2024-10-31T15:43:15,327][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [parent-join]
[2024-10-31T15:43:15,327][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [percolator]
[2024-10-31T15:43:15,327][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [rank-eval]
[2024-10-31T15:43:15,328][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [reindex]
[2024-10-31T15:43:15,328][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [repository-url]
[2024-10-31T15:43:15,328][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [search-pipeline-common]
[2024-10-31T15:43:15,328][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [systemd]
[2024-10-31T15:43:15,328][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded module [transport-netty4]
[2024-10-31T15:43:15,328][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-alerting]
[2024-10-31T15:43:15,328][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-anomaly-detection]
[2024-10-31T15:43:15,329][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-asynchronous-search]
[2024-10-31T15:43:15,329][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-cross-cluster-replication]
[2024-10-31T15:43:15,329][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-geospatial]
[2024-10-31T15:43:15,329][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-index-management]
[2024-10-31T15:43:15,329][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-job-scheduler]
[2024-10-31T15:43:15,329][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-knn]
[2024-10-31T15:43:15,329][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-ml]
[2024-10-31T15:43:15,329][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-neural-search]
[2024-10-31T15:43:15,330][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-notifications]
[2024-10-31T15:43:15,330][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-notifications-core]
[2024-10-31T15:43:15,330][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-observability]
[2024-10-31T15:43:15,330][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-performance-analyzer]
[2024-10-31T15:43:15,330][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-reports-scheduler]
[2024-10-31T15:43:15,330][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-security]
[2024-10-31T15:43:15,330][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-security-analytics]
[2024-10-31T15:43:15,330][INFO ][o.o.p.PluginsService     ] [wazuh-indexer-0] loaded plugin [opensearch-sql]
[2024-10-31T15:43:15,629][INFO ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-0] Disabled https compression by default to mitigate BREACH attacks. You can enable it by setting 'http.compression: true' in opensearch.yml
[2024-10-31T15:43:15,631][INFO ][o.o.e.ExtensionsManager  ] [wazuh-indexer-0] ExtensionsManager initialized
[2024-10-31T15:43:15,639][INFO ][o.a.l.s.MemorySegmentIndexInputProvider] [wazuh-indexer-0] Using MemorySegmentIndexInput with Java 21 or later; to disable start with -Dorg.apache.lucene.store.MMapDirectory.enableMemorySegments=false
[2024-10-31T15:43:15,724][INFO ][o.o.e.NodeEnvironment    ] [wazuh-indexer-0] using [1] data paths, mounts [[/var/lib/wazuh-indexer (/dev/sdb)]], net usable_space [957.1mb], net total_space [973.4mb], types [ext4]
[2024-10-31T15:43:15,724][INFO ][o.o.e.NodeEnvironment    ] [wazuh-indexer-0] heap size [1gb], compressed ordinary object pointers [true]
[2024-10-31T15:43:15,824][INFO ][o.o.n.Node               ] [wazuh-indexer-0] node name [wazuh-indexer-0], node ID [s2eNY6BwTkyrHQx3lU9PYA], cluster name [wazuh], roles [ingest, remote_cluster_client, data, cluster_manager]
[2024-10-31T15:43:23,635][INFO ][o.o.n.p.NeuralSearch     ] [wazuh-indexer-0] Registering hybrid query phase searcher with feature flag [plugins.neural_search.hybrid_search_disabled]
[2024-10-31T15:43:25,435][WARN ][o.o.s.c.Salt             ] [wazuh-indexer-0] If you plan to use field masking pls configure compliance salt e1ukloTsQlOgPquJ to be a random string of 16 chars length identical on all nodes
[2024-10-31T15:43:25,537][ERROR][o.o.s.a.s.SinkProvider   ] [wazuh-indexer-0] Default endpoint could not be created, auditlog will not work properly.
[2024-10-31T15:43:25,538][WARN ][o.o.s.a.r.AuditMessageRouter] [wazuh-indexer-0] No default storage available, audit log may not work properly. Please check configuration.
[2024-10-31T15:43:25,538][INFO ][o.o.s.a.i.AuditLogImpl   ] [wazuh-indexer-0] Message routing enabled: false
[2024-10-31T15:43:25,631][INFO ][o.o.s.f.SecurityFilter   ] [wazuh-indexer-0] <NONE> indices are made immutable.
[2024-10-31T15:43:26,536][INFO ][o.o.a.b.ADCircuitBreakerService] [wazuh-indexer-0] Registered memory breaker.
[2024-10-31T15:43:27,722][INFO ][o.o.m.b.MLCircuitBreakerService] [wazuh-indexer-0] Registered ML memory breaker.
[2024-10-31T15:43:27,723][INFO ][o.o.m.b.MLCircuitBreakerService] [wazuh-indexer-0] Registered ML disk breaker.
[2024-10-31T15:43:27,723][INFO ][o.o.m.b.MLCircuitBreakerService] [wazuh-indexer-0] Registered ML native memory breaker.
[2024-10-31T15:43:28,029][INFO ][o.r.Reflections          ] [wazuh-indexer-0] Reflections took 197 ms to scan 1 urls, producing 22 keys and 63 values 
[2024-10-31T15:43:28,322][WARN ][o.o.s.p.SQLPlugin        ] [wazuh-indexer-0] Master key is a required config for using create and update datasource APIs. Please set plugins.query.datasources.encryption.masterkey config in opensearch.yml in all the cluster nodes. More details can be found here: https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/admin/datasources.rst#master-key-config-for-encrypting-credential-information
@karlschriek
Copy link
Author

Possibly related to this? #839

@karlschriek
Copy link
Author

Some further info on this. I've now brought my deployment manifests exactly in line with what is found here:

https://github.com/wazuh/wazuh-kubernetes/tree/v4.9.1/wazuh

I.e. I am generating certs using the code provided there, and am using all the hardcoded secrets as per the manifests. The only thing I have changed is the StorageClass, since in the example code it is not actually a valid resource. I have defined that as follows (in order to provision Azure Disks):

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: wazuh-storage
provisioner: disk.csi.azure.com
parameters:
  skuName: Standard_LRS
  cachingMode: ReadWrite
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true

I am still get the exact same behaviour on the indexer (i.e. it restarts without any error message after around 60 seconds), so I can pretty much exclude the possibility that this is being caused by any custom configurations I have made.

Have also tried #839 (since that seems to be a fix that should create more stability and prevent a crash loop if indexer-0 unexpectedly crashes) but that does not resolve it since the root reason for the crash still appears to be something else.

@praetorianer777
Copy link

Same problem here on v4.9.2
I also set the masterkey as mentioned in the logs

[2024-10-31T15:43:28,322][WARN ][o.o.s.p.SQLPlugin ] [wazuh-indexer-0] Master key is a required config for using create and update datasource APIs. Please set plugins.query.datasources.encryption.masterkey config in opensearch.yml in all the cluster nodes. More details can be found here: https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/admin/datasources.rst#master-key-config-for-encrypting-credential-information

this message is now gone but still the same behavior

Only changes (except masterkey) I made was also to change the storage class

Here are also my logs

WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/wazuh-indexer/lib/opensearch-2.13.0.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
WARNING: System::setSecurityManager will be removed in a future release
Nov 13, 2024 9:18:23 AM sun.util.locale.provider.LocaleProviderAdapter
WARNING: COMPAT locale provider will be removed in a future release
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/wazuh-indexer/lib/opensearch-2.13.0.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
WARNING: System::setSecurityManager will be removed in a future release
[2024-11-13T09:18:25,558][INFO ][o.o.n.Node ] [wazuh-indexer-1] version[2.13.0], pid[1], build[rpm/0aa3533d9a82a2a9acf03285cc47dfe264c5a15b/2024-10-28T15:29:00.446834Z], OS[Linux/5.15.0-118-generic/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/21.0.2/21.0.2+13-LTS]
[2024-11-13T09:18:25,560][INFO ][o.o.n.Node ] [wazuh-indexer-1] JVM home [/usr/share/wazuh-indexer/jdk], using bundled JDK/JRE [true]
[2024-11-13T09:18:25,560][INFO ][o.o.n.Node ] [wazuh-indexer-1] JVM arguments [-Xshare:auto, -Dopensearch.networkaddress.cache.ttl=60, -Dopensearch.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.security.manager=allow, -Djava.locale.providers=SPI,COMPAT, -XX:+UseG1GC, -XX:G1ReservePercent=25, -XX:InitiatingHeapOccupancyPercent=30, -Djava.io.tmpdir=/tmp/opensearch-17935408313180645067, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/wazuh-indexer, -XX:ErrorFile=/var/log/wazuh-indexer/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/wazuh-indexer/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.security.manager=allow, -Djava.util.concurrent.ForkJoinPool.common.threadFactory=org.opensearch.secure_sm.SecuredForkJoinWorkerThreadFactory, -Dclk.tck=100, -Djdk.attach.allowAttachSelf=true, -Djava.security.policy=file:///usr/share/wazuh-indexer/opensearch-performance-analyzer/opensearch_security.policy, --add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED, -Xms1g, -Xmx1g, -Dlog4j2.formatMsgNoLookups=true, -XX:MaxDirectMemorySize=536870912, -Dopensearch.path.home=/usr/share/wazuh-indexer, -Dopensearch.path.conf=/usr/share/wazuh-indexer, -Dopensearch.distribution.type=rpm, -Dopensearch.bundled_jdk=true]
[2024-11-13T09:18:29,651][INFO ][o.o.s.s.t.SSLConfig ] [wazuh-indexer-1] SSL dual mode is disabled
[2024-11-13T09:18:29,652][INFO ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] OpenSearch Config path is /usr/share/wazuh-indexer
[2024-11-13T09:18:30,653][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-1] JVM supports TLSv1.3
[2024-11-13T09:18:30,655][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-1] Config directory is /usr/share/wazuh-indexer/, from there the key- and truststore files are resolved relatively
[2024-11-13T09:18:32,354][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-1] TLS Transport Client Provider : JDK
[2024-11-13T09:18:32,355][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-1] TLS Transport Server Provider : JDK
[2024-11-13T09:18:32,355][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-1] TLS HTTP Provider : JDK
[2024-11-13T09:18:32,356][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-1] Enabled TLS protocols for transport layer : [TLSv1.3, TLSv1.2]
[2024-11-13T09:18:32,356][INFO ][o.o.s.s.DefaultSecurityKeyStore] [wazuh-indexer-1] Enabled TLS protocols for HTTP layer : [TLSv1.3, TLSv1.2]
[2024-11-13T09:18:32,546][INFO ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] Clustername: wazuh
[2024-11-13T09:18:32,955][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] Directory /usr/share/wazuh-indexer/.cache has insecure file permissions (should be 0700)
[2024-11-13T09:18:32,956][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] Directory /usr/share/wazuh-indexer/.cache/JNA has insecure file permissions (should be 0700)
[2024-11-13T09:18:32,956][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] Directory /usr/share/wazuh-indexer/.cache/JNA/temp has insecure file permissions (should be 0700)
[2024-11-13T09:18:32,956][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] Directory /usr/share/wazuh-indexer/certs has insecure file permissions (should be 0700)
[2024-11-13T09:18:32,957][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/certs/admin.pem has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,957][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/certs/root-ca.pem has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,957][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/certs/admin-key.pem has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,958][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/certs/node-key.pem has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,958][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/certs/node.pem has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,958][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/opensearch.yml has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,959][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] Directory /usr/share/wazuh-indexer/logs has insecure file permissions (should be 0700)
[2024-11-13T09:18:32,959][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/performance-analyzer-rca/bin/performance-analyzer-rca has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,959][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/performance-analyzer-rca/bin/performance-analyzer-agent has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,960][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/lib/modules has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,960][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/lib/jspawnhelper has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,960][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jcmd has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,961][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jdb has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,961][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/rmiregistry has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,961][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jlink has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,962][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jstatd has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,962][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jimage has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,962][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/serialver has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,963][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jps has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,964][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jar has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,964][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jpackage has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,964][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jshell has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,965][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/javac has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,965][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jstat has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,965][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/keytool has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,966][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jmap has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,966][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jconsole has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,966][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jdeps has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,967][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jmod has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,967][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/java has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,967][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/javap has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,967][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jrunscript has insecure file permissions (should be 0600)
[2024-11-13T09:18:32,968][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jfr has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,045][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jinfo has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,045][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jdeprscan has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,046][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jstack has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,046][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jhsdb has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,046][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jarsigner has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,047][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/jwebserver has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,047][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/jdk/bin/javadoc has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,047][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/opensearch-security/internal_users.yml has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,048][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/plugins/opensearch-security/tools/securityadmin.sh has insecure file permissions (should be 0600)[2024-11-13T09:18:33,048][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-certs-tool.sh has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,048][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/plugins/opensearch-security/tools/audit_config_migrater.sh has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,048][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/plugins/opensearch-security/tools/hash.sh has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,049][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-passwords-tool.sh has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,049][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/opensearch-shard has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,049][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/opensearch-keystore has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,050][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/opensearch-env has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,050][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/opensearch-cli has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,050][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/systemd-entrypoint has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,051][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/opensearch-env-from-file has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,051][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/opensearch has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,051][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/opensearch-node has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,051][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/opensearch-performance-analyzer/performance-analyzer-agent has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,052][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/opensearch-performance-analyzer/performance-analyzer-agent-cli has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,052][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/opensearch-upgrade has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,052][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/opensearch-plugin has insecure file permissions (should be 0600)
[2024-11-13T09:18:33,053][WARN ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] File /usr/share/wazuh-indexer/bin/indexer-security-init.sh has insecure file permissions (should be 0600)
[2024-11-13T09:18:40,349][INFO ][o.o.p.c.c.PluginSettings ] [wazuh-indexer-1] Config: metricsLocation: /dev/shm/performanceanalyzer/, metricsDeletionInterval: 1, httpsEnabled: false, cleanup-metrics-db-files: true, batch-metrics-retention-period-minutes: 7, rpc-port: 9650, webservice-port 9600
[2024-11-13T09:18:42,045][INFO ][o.o.i.r.ReindexPlugin ] [wazuh-indexer-1] ReindexPlugin reloadSPI called
[2024-11-13T09:18:42,047][INFO ][o.o.i.r.ReindexPlugin ] [wazuh-indexer-1] Unable to find any implementation for RemoteReindexExtension
[2024-11-13T09:18:42,148][INFO ][o.o.j.JobSchedulerPlugin ] [wazuh-indexer-1] Loaded scheduler extension: opendistro_anomaly_detector, index: .opendistro-anomaly-detector-jobs
[2024-11-13T09:18:42,167][INFO ][o.o.j.JobSchedulerPlugin ] [wazuh-indexer-1] Loaded scheduler extension: reports-scheduler, index: .opendistro-reports-definitions
[2024-11-13T09:18:42,246][INFO ][o.o.j.JobSchedulerPlugin ] [wazuh-indexer-1] Loaded scheduler extension: opendistro-index-management, index: .opendistro-ism-config
[2024-11-13T09:18:42,247][INFO ][o.o.j.JobSchedulerPlugin ] [wazuh-indexer-1] Loaded scheduler extension: scheduler_geospatial_ip2geo_datasource, index: .scheduler-geospatial-ip2geo-datasource
[2024-11-13T09:18:42,248][INFO ][o.o.j.JobSchedulerPlugin ] [wazuh-indexer-1] Loaded scheduler extension: opensearch_sap_job, index: .opensearch-sap--job
[2024-11-13T09:18:42,346][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [aggs-matrix-stats]
[2024-11-13T09:18:42,347][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [analysis-common]
[2024-11-13T09:18:42,347][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [cache-common]
[2024-11-13T09:18:42,347][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [geo]
[2024-11-13T09:18:42,347][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [ingest-common]
[2024-11-13T09:18:42,348][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [ingest-geoip]
[2024-11-13T09:18:42,348][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [ingest-user-agent]
[2024-11-13T09:18:42,348][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [lang-expression]
[2024-11-13T09:18:42,348][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [lang-mustache]
[2024-11-13T09:18:42,348][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [lang-painless]
[2024-11-13T09:18:42,348][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [mapper-extras]
[2024-11-13T09:18:42,349][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [opensearch-dashboards]
[2024-11-13T09:18:42,349][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [parent-join]
[2024-11-13T09:18:42,349][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [percolator]
[2024-11-13T09:18:42,349][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [rank-eval]
[2024-11-13T09:18:42,349][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [reindex]
[2024-11-13T09:18:42,349][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [repository-url]
[2024-11-13T09:18:42,350][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [search-pipeline-common]
[2024-11-13T09:18:42,350][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [systemd]
[2024-11-13T09:18:42,350][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded module [transport-netty4]
[2024-11-13T09:18:42,350][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-alerting]
[2024-11-13T09:18:42,351][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-anomaly-detection]
[2024-11-13T09:18:42,351][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-asynchronous-search]
[2024-11-13T09:18:42,351][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-cross-cluster-replication]
[2024-11-13T09:18:42,351][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-geospatial]
[2024-11-13T09:18:42,351][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-index-management]
[2024-11-13T09:18:42,351][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-job-scheduler]
[2024-11-13T09:18:42,352][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-knn]
[2024-11-13T09:18:42,352][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-ml]
[2024-11-13T09:18:42,352][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-neural-search]
[2024-11-13T09:18:42,352][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-notifications]
[2024-11-13T09:18:42,352][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-notifications-core]
[2024-11-13T09:18:42,352][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-observability]
[2024-11-13T09:18:42,353][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-performance-analyzer]
[2024-11-13T09:18:42,353][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-reports-scheduler]
[2024-11-13T09:18:42,353][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-security]
[2024-11-13T09:18:42,353][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-security-analytics]
[2024-11-13T09:18:42,353][INFO ][o.o.p.PluginsService ] [wazuh-indexer-1] loaded plugin [opensearch-sql]
[2024-11-13T09:18:42,545][INFO ][o.o.s.OpenSearchSecurityPlugin] [wazuh-indexer-1] Disabled https compression by default to mitigate BREACH attacks. You can enable it by setting 'http.compression: true' in opensearch.yml
[2024-11-13T09:18:42,662][INFO ][o.o.e.ExtensionsManager ] [wazuh-indexer-1] ExtensionsManager initialized
[2024-11-13T09:18:42,752][INFO ][o.a.l.s.MemorySegmentIndexInputProvider] [wazuh-indexer-1] Using MemorySegmentIndexInput with Java 21 or later; to disable start with -Dorg.apache.lucene.store.MMapDirectory.enableMemorySegments=false
[2024-11-13T09:18:42,759][INFO ][o.o.e.NodeEnvironment ] [wazuh-indexer-1] using [1] data paths, mounts [[/var/lib/wazuh-indexer (/dev/longhorn/pvc-8a62c1f4-af7b-4554-916a-5cf3ee933d38)]], net usable_space [441.9mb], net total_space [451.9mb], types [ext4]
[2024-11-13T09:18:42,760][INFO ][o.o.e.NodeEnvironment ] [wazuh-indexer-1] heap size [1gb], compressed ordinary object pointers [true]
[2024-11-13T09:18:42,859][INFO ][o.o.n.Node ] [wazuh-indexer-1] node name [wazuh-indexer-1], node ID [r0-Zx0S7ST2kgHB-cC7LAA], cluster name [wazuh], roles [ingest, remote_cluster_client, data, cluster_manager]
[2024-11-13T09:18:52,859][INFO ][o.o.n.p.NeuralSearch ] [wazuh-indexer-1] Registering hybrid query phase searcher with feature flag [plugins.neural_search.hybrid_search_disabled]
[2024-11-13T09:18:54,756][WARN ][o.o.s.c.Salt ] [wazuh-indexer-1] If you plan to use field masking pls configure compliance salt e1ukloTsQlOgPquJ to be a random string of 16 chars length identical on all nodes
[2024-11-13T09:18:54,858][ERROR][o.o.s.a.s.SinkProvider ] [wazuh-indexer-1] Default endpoint could not be created, auditlog will not work properly.
[2024-11-13T09:18:54,859][WARN ][o.o.s.a.r.AuditMessageRouter] [wazuh-indexer-1] No default storage available, audit log may not work properly. Please check configuration.
[2024-11-13T09:18:54,859][INFO ][o.o.s.a.i.AuditLogImpl ] [wazuh-indexer-1] Message routing enabled: false
[2024-11-13T09:18:54,961][INFO ][o.o.s.f.SecurityFilter ] [wazuh-indexer-1] indices are made immutable.
[2024-11-13T09:18:56,161][INFO ][o.o.a.b.ADCircuitBreakerService] [wazuh-indexer-1] Registered memory breaker.
[2024-11-13T09:18:57,563][INFO ][o.o.m.b.MLCircuitBreakerService] [wazuh-indexer-1] Registered ML memory breaker.
[2024-11-13T09:18:57,564][INFO ][o.o.m.b.MLCircuitBreakerService] [wazuh-indexer-1] Registered ML disk breaker.
[2024-11-13T09:18:57,564][INFO ][o.o.m.b.MLCircuitBreakerService] [wazuh-indexer-1] Registered ML native memory breaker.
[2024-11-13T09:18:57,957][INFO ][o.r.Reflections ] [wazuh-indexer-1] Reflections took 201 ms to scan 1 urls, producing 22 keys and 63 values
[2024-11-13T09:19:00,456][INFO ][o.o.t.NettyAllocator ] [wazuh-indexer-1] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=256kb, factors={opensearch.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=1mb, heap_size=1gb}]
[2024-11-13T09:19:00,459][INFO ][o.o.s.s.t.SSLConfig ] [wazuh-indexer-1] SSL dual mode is disabled
[2024-11-13T09:19:00,771][INFO ][o.o.d.DiscoveryModule ] [wazuh-indexer-1] using discovery type [zen] and seed hosts providers [settings]

@praetorianer777
Copy link

as mentioned here: wazuh/wazuh-packages#1511
I also resolved the error
[2024-11-13T09:18:54,858][ERROR][o.o.s.a.s.SinkProvider ] [wazuh-indexer-1] Default endpoint could not be created, auditlog will not work properly.

still same behavior

@praetorianer777
Copy link

Ok found the problem:
in the generated manifests the ressource limits for the indexer are too low (around 1.5Gi RAM).
Increased this to 4Gi and it works now!

@karlschriek
Copy link
Author

karlschriek commented Nov 13, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants