coco-annotator icon indicating copy to clipboard operation
coco-annotator copied to clipboard

Kubernetes deploymeny fails "OSError("inotify watch limit reached")"

Open guus2006 opened this issue 7 years ago • 2 comments

I have been working on getting coco-annotator to run on Kuberneters. The webserver container fails constantly with "OSError("inotify watch limit reached")"

Looking at the code this is caused by the observer watching folders. This cannot be solved on Kubernetes unless you fix the underlying file watch limit which is at the node level in the cluster.

guus2006 avatar Aug 06 '19 14:08 guus2006

You can disable the File Watcher using environment variables

jsbroks avatar Aug 06 '19 18:08 jsbroks

At tried setting the FILE_WATCH environment variable to false the the deployment yaml file in Kubernetes:

    env:
    - name: FILE_WATCHER
      value: "FALSE"

This results in the same error on the webserver container. The environment variables is set in the container but not recognized by the code for some reason.

Workaround is to not set the FILE_WATCHER env at all in the yaml config and then the webserver boots as expected.

guus2006 avatar Aug 07 '19 06:08 guus2006