pyinotify ERROR] add_watch: cannot watch

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pyinotify ERROR] add_watch: cannot watch相关的知识,希望对你有一定的参考价值。

[2017-11-10 17:14:40,612 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/he/LC_MESSAGES/djangojs.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,612 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/he/LC_MESSAGES/django.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,612 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/sq/LC_MESSAGES/djangojs.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,612 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/sq/LC_MESSAGES/django.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,612 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/udm/LC_MESSAGES/djangojs.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,621 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/udm/LC_MESSAGES/django.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,621 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/sr_Latn/LC_MESSAGES/djangojs.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,621 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/sr_Latn/LC_MESSAGES/django.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,621 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/fy/LC_MESSAGES/djangojs.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,621 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/fy/LC_MESSAGES/django.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,622 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/af/LC_MESSAGES/djangojs.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,622 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/af/LC_MESSAGES/django.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,622 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/et/LC_MESSAGES/djangojs.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,622 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/et/LC_MESSAGES/django.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,622 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/bg/LC_MESSAGES/djangojs.mo WD=-1, Errno=No space left on device (ENOSPC)

[2017-11-10 17:14:40,622 pyinotify ERROR] add_watch: cannot watch /usr/local/lib/python2.7/dist-packages/django/contrib/admin/locale/bg/LC_MESSAGES/django.mo WD=-1, Errno=No space left on device (ENOSPC)

System check identified no issues (0 silenced).



解决办法:



sysctl fs.inotify.max_user_watches=16384 

以上是关于pyinotify ERROR] add_watch: cannot watch的主要内容,如果未能解决你的问题,请参考以下文章

pyinotify.ThreadedNotifier,process_* 未调用

Python日志监控系统处理日志(pyinotify)

慢 pyinotify.ThreadedNotifier.stop()

pyinotify 的可疑线程问题

Pyinotify -- 目录重命名后从原始路径引发的事件

pyinotify:处理 IN_MODIFY 触发器