gregghz / Watcher

Watcher is a daemon that watches specified files/folders for changes and fires commands in response to those changes. It is similar to incron, however, configuration uses a simpler to read yaml file instead of a plain text file. It's also written in Python, making it easier to hack.
MIT License
245 stars 128 forks source link

pyinotify ERROR with watched Directory #19

Closed kingfisher77 closed 6 years ago

kingfisher77 commented 9 years ago

We experience this error while moving a directory from one directory to another inside a watched directory: [2015-02-28 17:14:47,643 pyinotify ERROR] The pathname '/data/folder/New Folder' of this watch <Watch wd=1 path=/data/folder/New Folder mask=2496 proc_fun=None auto_add=False exclude_filter=<pyinotify.ExcludeFilter object at 0x13c3ed0> dir=True > has probably changed and couldn't be updated, so it cannot be trusted anymore. To fix this error move directories/files only between watched parents directories, in this case e.g. put a watch on '/data/folder'.

Events are: events: ['create', 'self_move', 'move']

The folder moves correctly, so no direct problem occurs. Should we accept the message? Some ideas?

gregghz commented 6 years ago

That error comes from the underlying inotify subsystem. I don't think there is much that can be done at the watcher level. I'm going to close for now.