# Inotify error

**URL:** <https://community.openhab.org/t/inotify-error/16089>\
**Category:** Runtime\
**Created:** [November 2, 2016, 12:04pm UTC](https://community.openhab.org/t/inotify-error/16089 "2016-11-02T12:04:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stef\_coene\_docum](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/c4cdca/32.png) [@stef\_coene\_docum](https://community.openhab.org/u/stef_coene_docum)\
**Post date:** [November 2, 2016, 12:04pm UTC](https://community.openhab.org/t/inotify-error/16089/1 "2016-11-02T12:04:02Z")

</div>

Hi,

I’m running openhab-online-2.0.0-SNAPSHOT, downloaded a few weeks ago.

OpenHAB is not picking up changes in the config files (items, sitemap, …)  
I noticed this error in the logfiles: “User limit of inotify watches reached”  
I think these are related.

Any idea how to fix this?

Stef

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [November 2, 2016, 4:17pm UTC](https://community.openhab.org/t/inotify-error/16089/2 "2016-11-02T16:17:01Z")

</div>

Is OH the only thing running on this machine? If not do the other services use a lot of files?

See the answer at the following link for how to see what processes are using inotify, how many they are using, and how to increase the maximum number.

In the meantime, a reboot of the machine should clear them up but probably only temporarily.

---

<div class="post-metadata">

**Author:** ![stef\_coene\_docum](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/c4cdca/32.png) [@stef\_coene\_docum](https://community.openhab.org/u/stef_coene_docum)\
**Post date:** [November 2, 2016, 8:11pm UTC](https://community.openhab.org/t/inotify-error/16089/3 "2016-11-02T20:11:47Z")

</div>

There is more then OH running on the machine.  
I don’t see a link in your message but I tried this command:  
for foo in /proc/_/fd/_; do readlink -f $foo; done |grep inotify |cut -d/ -f3 |xargs -I ‘{}’ – ps --no-headers -o ‘%p %U %c’ -p ‘{}’ |uniq -c |sort -nr  
Only a few processes with each a few open files were listed.

I rebooted my server and at least OH is picking up the changes in the config files like it should.

Stef

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [November 2, 2016, 9:05pm UTC](https://community.openhab.org/t/inotify-error/16089/4 "2016-11-02T21:05:14Z")

</div>

> [@stef\_coene\_docum](#):
>
> I don’t see a link in your message but I tried this command:

Sorry.

> <https://unix.stackexchange.com/questions/13751/kernel-inotify-watch-limit-reached>

---

<div class="post-metadata">

**Author:** ![stef\_coene\_docum](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/c4cdca/32.png) [@stef\_coene\_docum](https://community.openhab.org/u/stef_coene_docum)\
**Post date:** [November 2, 2016, 9:24pm UTC](https://community.openhab.org/t/inotify-error/16089/5 "2016-11-02T21:24:44Z")

</div>

That was the post I found earlier.  
A reboot fixed it for now.

Stef
