0
  • Elasticsearch Version: 7.10.2
  • Open Distro Security Version: 1.13.1.0

I'm getting following error when I try to enable opendistro_security in my elasticsearch cluster.

Here is the command I was using :

bash /usr/share/elasticsearch/plugins/opendistro_security/tools/securityadmin.sh -nhnv -nrhn  -icl -cacert /etc/elasticsearch/certs/MyRootCA.pem -cert /etc/elasticsearch/certs/admin.pem -key /etc/elasticsearch/certs/admin.key -t internalusers -f  /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml

Error :

FAIL: 3 nodes reported failures. First failure is FailedNodeException[Failed node [KVAlAHsOTAeSChsoqXqAfw]]; nested: RemoteTransportException[[t-tjpaw-elasticsearch-04][10.180.195.215:9300][cluster:admin/opendistro_security/config/update[n]]]; nested: ElasticsearchException[java.lang.NullPointerException: Cannot read field "dynamic" because "this.config" is null]; nested: NullPointerException[Cannot read field "dynamic" because "this.config" is null];

What would be the issue for that ? I was trying to check where is this [this.config] is available but couldn't find it anywhere.

Getting below error from the other nodes in the ES cluster,

[ERROR][c.a.o.s.c.ConfigurationRepository] [elasticsearch-04] com.amazon.opendistroforelasticsearch.security.securityconf.DynamicConfigFactory@46456a53 listener errored: java.lang.NullPointerException: Cannot read field "dynamic" because "this.config" is null java.lang.NullPointerException: Cannot read field "dynamic" because "this.config" is null at com.amazon.opendistroforelasticsearch.security.securityconf.DynamicConfigModelV6.buildAAA(DynamicConfigModelV6.java:214) ~[opendistro_security-1.13.1.0.jar:1.13.1.0] at com.amazon.opendistroforelasticsearch.security.securityconf.DynamicConfigModelV6.(DynamicConfigModelV6.java:91) ~[opendistro_security-1.13.1.0.jar:1.13.1.0] at com.amazon.opendistroforelasticsearch.security.securityconf.DynamicConfigFactory.onChange(DynamicConfigFactory.java:247) ~[opendistro_security-1.13.1.0.jar:1.13.1.0]

Could anyone help me to resolve this issue ?

Thanks

Madura Dissanayake
  • 8,309
  • 5
  • 25
  • 34

0 Answers0