# Cannot notify file changes listener

**URL:** <https://discuss.elastic.co/t/cannot-notify-file-changes-listener/78879>\
**Category:** Elasticsearch\
**Created:** [March 16, 2017, 2:42pm UTC](https://discuss.elastic.co/t/cannot-notify-file-changes-listener/78879 "2017-03-16T14:42:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilisade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gilisade/32/98740_2.png) [@gilisade](https://discuss.elastic.co/u/gilisade)\
**Post date:** [March 16, 2017, 2:42pm UTC](https://discuss.elastic.co/t/cannot-notify-file-changes-listener/78879/1 "2017-03-16T14:42:19Z")

</div>

Hi  
i have elasticsearch 5.2  
i'm trying to update the /etc/elasticsearch/x-pack/role\_mapping.yml file

when i do that i get the following Warning:

```
[2017-03-16T16:36:51,535][INFO][o.e.x.s.a.s.DnRoleMapper] [elasticsearch_node] role mappings file [/etc/elasticsearch/x-pack/role_mapping.yml] changed for realm [active_directory/active_directory]. updating mappings...
[2017-03-16T16:36:51,537][WARN][o.e.w.FileWatcher] cannot notify file changes listener
java.lang.NullPointerException: null

```

What is the problem?

---

<div class="post-metadata">

**Author:** ![prodrg](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@prodrg](https://discuss.elastic.co/u/prodrg)\
**Post date:** [March 28, 2017, 3:28pm UTC](https://discuss.elastic.co/t/cannot-notify-file-changes-listener/78879/2 "2017-03-28T15:28:10Z")

</div>

Can you post the role\_mapping.yml file? Maybe there is a format error.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [March 29, 2017, 1:09am UTC](https://discuss.elastic.co/t/cannot-notify-file-changes-listener/78879/3 "2017-03-29T01:09:01Z")

</div>

Sorry that we missed this question when it was posted.

This is related to a bug in 5.2, that has been fixed in 5.3.  
It's relatively harmless, but it's a good idea to upgrade if you can.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 26, 2017, 1:09am UTC](https://discuss.elastic.co/t/cannot-notify-file-changes-listener/78879/4 "2017-04-26T01:09:14Z")

</div>

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