After the update to 4.9.0 there are constant cluster errors

1,922 views
Skip to first unread message

Dmitry Mikheev

unread,
Sep 10, 2024, 2:57:34 AM9/10/24
to Wazuh | Mailing List
After the update there are constant cluster errors and red indexes

# grep -iE "error|crit|fatal|warn" /var/log/wazuh-indexer/wazuh-cluster.log 
[2024-09-10T06:37:25,259][WARN ][o.o.p.c.u.JsonConverter  ] [node-1] Json Mapping Error: Cannot invoke "java.lang.Long.longValue()" because "this.cacheMaxSize" is null (through reference chain: org.opensearch.performanceanalyzer.collectors.CacheConfigMetricsCollector$CacheMaxSizeStatus["Cache_MaxSize"])
[2024-09-10T06:37:30,261][WARN ][o.o.p.c.u.JsonConverter  ] [node-1] Json Mapping Error: Cannot invoke "java.lang.Long.longValue()" because "this.cacheMaxSize" is null (through reference chain: org.opensearch.performanceanalyzer.collectors.CacheConfigMetricsCollector$CacheMaxSizeStatus["Cache_MaxSize"])
[2024-09-10T06:37:35,261][WARN ][o.o.p.c.u.JsonConverter  ] [node-1] Json Mapping Error: Cannot invoke "java.lang.Long.longValue()" because "this.cacheMaxSize" is null (through reference chain: org.opensearch.performanceanalyzer.collectors.CacheConfigMetricsCollector$CacheMaxSizeStatus["Cache_MaxSize"])

The error occurs every 5 minutes!
Where is this cache set?
/etc/wazuh-indexer/opensearch-performance-analyzer/performance-analyzer.properties - not found

Infosec homelab

unread,
Sep 11, 2024, 11:37:21 PM9/11/24
to Wazuh | Mailing List

I have the same error, can't find any solution for it.

Gonzalo Membrillo Solbes

unread,
Sep 12, 2024, 2:42:21 AM9/12/24
to Wazuh | Mailing List
Hello,

This is a known problem that happens when upgrading to Opensearch version 2.13, which is what the indexer uses on 4.9.0:

To solve this, you will need to disable the performance analyzer plugin that comes built into Opensearch.
https://opensearch.org/docs/2.13/monitoring-your-cluster/pa/index/#disable-performance-analyzer

Regards,
Gonzalo

Tismofied

unread,
Sep 19, 2024, 12:57:16 AM9/19/24
to Wazuh | Mailing List
The proposed solution didn't work.
when running the first command, I get no reply from server
also, running the last cmd returned : no directory found 

Simo Suomi

unread,
Dec 27, 2024, 4:21:50 AM12/27/24
to Wazuh | Mailing List
In my case /etc/wazuh-indexer/jvm.options was overwritten by a package manager. Renaming an old conf file jvm.options-dpkg.old as jvm.options fixed the issue.
Reply all
Reply to author
Forward
0 new messages