Skip to content

OSError: Cannot initialize new instance of inotify, Errno=Too many open files (EMFILE) #23

@MikhailKasimov

Description

@MikhailKasimov

Hello!

Have got such multiple trace in server's log:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 812, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/site-packages/pyinotify.py", line 1511, in run
    self.loop()
  File "/usr/lib/python2.7/site-packages/pyinotify.py", line 1497, in loop
    self.process_events()
  File "/usr/lib/python2.7/site-packages/pyinotify.py", line 1295, in process_events
    self._default_proc_fun(revent)
  File "/usr/lib/python2.7/site-packages/pyinotify.py", line 937, in __call__
    return _ProcessEvent.__call__(self, event)
  File "/usr/lib/python2.7/site-packages/pyinotify.py", line 662, in __call__
    return meth(event)
  File "/root/Watcher/watcher.py", line 247, in process_IN_CREATE
    self.runCommand(event)
  File "/root/Watcher/watcher.py", line 227, in runCommand
    prefix)
  File "/root/Watcher/watcher.py", line 300, in addWatch
    wm = pyinotify.WatchManager()
  File "/usr/lib/python2.7/site-packages/pyinotify.py", line 1747, in __init__
    raise OSError(err % self._inotify_wrapper.str_errno())
OSError: Cannot initialize new instance of inotify, Errno=Too many open files (EMFILE)

Need some hint on further investigation here. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions