Hi hi, I am facing this error constantly. I changed from Elastic Search 7.10.2 to Open Search because of the same error! Can you help me?
1. Describe your incident:
This messages is appearing on my Graylog:
OpenSearch exception [type=null_pointer_exception, reason=Cannot invoke “org.opensearch.search.aggregations.InternalAggregations.getSerializedSize()” because “reducePhase.aggregations” is null
Service logs, configurations, and environment variables:
ERROR [EventProcessorExecutionJob] Event processor <aggregation-v1/65d5f5c5ec9d485ded1caa03> failed to execute: OpenSearch exception [type=null_pointer_exception, reason=Cannot invoke “org.opensearch.search.aggregations.InternalAggregations.getSerializedSize()” because “reducePhase.aggregations” is null]. (retry in 5000 ms)
org.graylog.events.processor.EventProcessorException: OpenSearch exception [type=null_pointer_exception, reason=Cannot invoke “org.opensearch.search.aggregations.InternalAggregations.getSerializedSize()” because “reducePhase.aggregations” is null].
{
“error” : {
“root_cause” : [
{
“type” : “illegal_argument_exception”,
“reason” : “unable to find any unassigned shards to explain [ClusterAllocationExplainRequest[useAnyUnassignedShard=true,includeYesDecisions?=false]”
}
],
“type” : “illegal_argument_exception”,
“reason” : “unable to find any unassigned shards to explain [ClusterAllocationExplainRequest[useAnyUnassignedShard=true,includeYesDecisions?=false]”
},
“status” : 400
}
3. What steps have you already taken to try and solve the problem?
I tried to go from Elasticsearch to Opensearch, but didn’t work.
Everything seems to work correctly, except for this error…
But I have one more question: why am I still seeing this if my cluster is green and there are no error messages in the web interface or the in logs anymore?
curl -XGET http://localhost:9200/_cluster/allocation/explain?pretty
{
“error” : {
“root_cause” : [
{
“type” : “illegal_argument_exception”,
“reason” : “unable to find any unassigned shards to explain [ClusterAllocationExplainRequest[useAnyUnassignedShard=true,includeYesDecisions?=false]”
}
],
“type” : “illegal_argument_exception”,
“reason” : “unable to find any unassigned shards to explain [ClusterAllocationExplainRequest[useAnyUnassignedShard=true,includeYesDecisions?=false]”
},
“status” : 400
}
After the update from Opensearch (OS) 2.5 to 2.9, the GL webpage wasn’t reachable.
I needed to restart all the processes (GL,OS and MongoDB) to make it work.
Then the status of the OS was yellow. I rotated the indices.
After this, I used the commands:
And everything was green again.
The only problem is still that error message