Problem with _cat/indices, _cat/nodes, _cat/allocation with Elasticsearch6.0.1

Hello, I have just migrated to elasticsearch 6.0.1 (I was using 5.6.5 before). I have some problem with cat API as when I :

GET /_cat/allocation?v
GET /_cat/indices?v
GET /_cat/nodes

I receive this message

{
  "error": {
    "root_cause": [
      {
        "type": "null_pointer_exception",
        "reason": null
      }
    ],
    "type": "null_pointer_exception",
    "reason": null
  },
  "status": 500
}

and also in powershell :

[WARN ][r.suppressed             ] path: /_cat/indices, params: {v=}
        java.lang.NullPointerException: null
        at org.elasticsearch.common.io.stream.StreamOutput.writeStringList(StreamOutput.java:949) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.cluster.metadata.IndexTemplateMetaData.writeTo(IndexTemplateMetaData.java:248) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.cluster.metadata.MetaData.writeTo(MetaData.java:695) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.cluster.ClusterState.writeTo(ClusterState.java:686) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.discovery.zen.PublishClusterStateAction.serializeFullClusterState(PublishClusterStateAction.java:351) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.action.admin.cluster.state.TransportClusterStateAction.masterOperation(TransportClusterStateAction.java:136) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.action.admin.cluster.state.TransportClusterStateAction.masterOperation(TransportClusterStateAction.java:44) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.action.support.master.TransportMasterNodeAction.masterOperation(TransportMasterNodeAction.java:87) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.doRun(TransportMasterNodeAction.java:166) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.common.util.concurrent.EsExecutors$1.execute(EsExecutors.java:139) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:163) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.start(TransportMasterNodeAction.java:126) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:104) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:54) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:167) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:139) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:81) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:83) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:72) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:405) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.client.support.AbstractClient$ClusterAdmin.execute(AbstractClient.java:712) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.client.support.AbstractClient$ClusterAdmin.state(AbstractClient.java:748) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.rest.action.cat.RestIndicesAction.lambda$doCatRequest$0(RestIndicesAction.java:91) ~[elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:97) [elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:240) [elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:336) [elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:174) [elasticsearch-6.0.1.jar:6.0.1]
                at org.elasticsearch.http.netty4.Netty4HttpServerTransport.dispatchRequest(Netty4HttpServerTransport.java:491) [transport-netty4-6.0.1.jar:6.0.1]
                at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:80) [transport-netty4-6.0.1.jar:6.0.1]

However I have a good answer when I ask GET _cat/recovery for example and index can also be retrieved.

Does anyone have an idea of the problem ?

Thank you

1 Like

Could you open an issue with all those details and a link to this thread?

1 Like

Issue opened here thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.