[ERROR][com.floragunn.searchguard.filter.SearchGuardActionFilter] Error while apply() due to java.lang.NullPointerException for action indices:monitor/stats

This is my ElasticSearch version:

curl --cacert /etc/elasticsearch/secret/admin-ca --key /etc/elasticsearch/secret/admin-key --cert /etc/elasticsearch/secret/admin-cert https://localhost:9200/
{
  "status" : 200,
  "name" : "Human Robot",
  "cluster_name" : "logging-es",
  "version" : {
    "number" : "1.5.2",
    "build_hash" : "62ff9868b4c8a0c45860bebb259e21980778ab1c",
    "build_timestamp" : "2015-04-27T09:21:06Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}

Cluster status is green:

bash-4.2$ curl --cacert /etc/elasticsearch/secret/admin-ca --key /etc/elasticsearch/secret/admin-key --cert /etc/elasticsearch/secret/admin-cert https://localhost:9200/_cat/health?v
epoch      timestamp cluster    status node.total node.data shards pri relo init unassign pending_tasks
1487601133 14:32:13  logging-es green           1         1      2   2    0    0        0             0

If I try to list indices and I have one error:

bash-4.2$ curl --cacert /etc/elasticsearch/secret/admin-ca --key /etc/elasticsearch/secret/admin-key --cert /etc/elasticsearch/secret/admin-cert https://localhost:9200/_cat/indices/
{"error":"RuntimeException[java.lang.NullPointerException]; nested: NullPointerException; ","status":500}bash-4.2$

This ElasticSearch log content:

[2017-02-20 13:55:28,765][ERROR][com.floragunn.searchguard.filter.SearchGuardActionFilter] Error while apply() due to java.lang.NullPointerException for action indices:monitor/stats
java.lang.NullPointerException
    at java.util.Objects.requireNonNull(Objects.java:203)
    at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
    at java.util.Arrays.asList(Arrays.java:3800)
    at com.floragunn.searchguard.filter.SearchGuardActionFilter.apply0(SearchGuardActionFilter.java:191)
    at com.floragunn.searchguard.filter.SearchGuardActionFilter.apply(SearchGuardActionFilter.java:90)
    at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:165)
    at com.floragunn.searchguard.filter.FLSActionFilter.applySecure(FLSActionFilter.java:76)
    at com.floragunn.searchguard.filter.AbstractActionFilter.apply(AbstractActionFilter.java:97)
    at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:165)
    at com.floragunn.searchguard.filter.DLSActionFilter.applySecure(DLSActionFilter.java:73)
    at com.floragunn.searchguard.filter.AbstractActionFilter.apply(AbstractActionFilter.java:97)
    at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:165)
    at com.floragunn.searchguard.filter.RequestActionFilter.applySecure(RequestActionFilter.java:94)
    at com.floragunn.searchguard.filter.AbstractActionFilter.apply(AbstractActionFilter.java:97)
    at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:165)
    at org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:64)
    at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:165)
    at io.fabric8.elasticsearch.plugin.ActionForbiddenActionFilter.apply(ActionForbiddenActionFilter.java:48)
    at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:165)
    at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:82)
    at org.elasticsearch.client.node.NodeIndicesAdminClient.execute(NodeIndicesAdminClient.java:77)
    at org.elasticsearch.client.FilterClient$IndicesAdmin.execute(FilterClient.java:120)
    at org.elasticsearch.rest.BaseRestHandler$HeadersAndContextCopyClient$IndicesAdmin.execute(BaseRestHandler.java:149)
    at org.elasticsearch.client.support.AbstractIndicesAdminClient.stats(AbstractIndicesAdminClient.java:524)
    at org.elasticsearch.rest.action.cat.RestIndicesAction$1$1.processResponse(RestIndicesAction.java:83)
    at org.elasticsearch.rest.action.cat.RestIndicesAction$1$1.processResponse(RestIndicesAction.java:78)
    at org.elasticsearch.rest.action.support.RestActionListener.onResponse(RestActionListener.java:49)
    at org.elasticsearch.action.support.TransportAction$ThreadedActionListener$1.run(TransportAction.java:113)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

What is my mistake ?

Best regards,
Stéphane

Looks like a problem with searchguard, you will need to approach the author of that plugin directly.

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