# NullPointerException\[Cannot read field "dynamic" because "this.config" is null

**URL:** <https://forum.opensearch.org/t/nullpointerexception-cannot-read-field-dynamic-because-this-config-is-null/10913>\
**Category:** Open Source Elasticsearch and Kibana\
**Tags:** troubleshoot\
**Created:** [September 14, 2022, 4:55am UTC](https://forum.opensearch.org/t/nullpointerexception-cannot-read-field-dynamic-because-this-config-is-null/10913 "2022-09-14T04:55:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![madura](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@madura](https://forum.opensearch.org/u/madura)\
**Post date:** [September 14, 2022, 4:55am UTC](https://forum.opensearch.org/t/nullpointerexception-cannot-read-field-dynamic-because-this-config-is-null/10913/1 "2022-09-14T04:55:09Z")

</div>

Hi Guys,

Elasticsearch Version: 7.10.2  
Open Distro Security Version: 1.13.1.0

I’m trying to enable internal users in opendistro and getting the following error when I do execute following command,

```auto
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 :

> Will connect to localhost:9300 … done  
> Connected as CN=admin,O=Povo.Jp,ST=Japan,C=JP  
> Elasticsearch Version: 7.10.2  
> Open Distro Security Version: 1.13.1.0  
> Contacting elasticsearch cluster ‘elasticsearch’ and wait for YELLOW clusterstate …  
> Clustername: tjp-elk  
> Clusterstate: GREEN  
> Number of nodes: 4  
> Number of data nodes: 1  
> .opendistro\_security index already exists, so we do not need to create one.  
> Populate config from /root  
> Force type: internalusers  
> Will update ‘\_doc/internalusers’ with /usr/share/elasticsearch/plugins/opendistro\_security/securityconfig/internal\_users.yml  
> SUCC: Configuration for ‘internalusers’ created or updated  
> FAIL: 4 nodes reported failures. First failure is FailedNodeException[Failed node [BFg017RyTHq237fmHwjNfw]]; nested: RemoteTransportException[[tjpaw-elasticsearch-02][10.180.195.164: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];  
> FAIL: Expected 4 nodes to return response, but got 0  
> Done with failures

Can anyone guide me to resolve this issue ?

Thanks.

---

<div class="post-metadata">

**Author:** ![Raki](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/raki/32/3506_2.png) [@Raki](https://forum.opensearch.org/u/Raki)\
**Post date:** [September 28, 2022, 2:58pm UTC](https://forum.opensearch.org/t/nullpointerexception-cannot-read-field-dynamic-because-this-config-is-null/10913/2 "2022-09-28T14:58:54Z")

</div>

I have the same issue. help is appreciated

---

<div class="post-metadata">

**Author:** ![lbornov2](https://avatars.discourse-cdn.com/v4/letter/l/7cd45c/32.png) [@lbornov2](https://forum.opensearch.org/u/lbornov2)\
**Post date:** [November 9, 2023, 9:59am UTC](https://forum.opensearch.org/t/nullpointerexception-cannot-read-field-dynamic-because-this-config-is-null/10913/3 "2023-11-09T09:59:42Z")

</div>

I have the same issue. Surprised that nobody has responded yet.
