-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncatchable OSError: Permission Denied #75
Comments
This impacts inotify too when it first tries to setup a watch over a directory which happens to contain subdirectories that are not readable / listable. |
I'm also getting this error using inotify to watch a directory that includes a deeply nested sub-directory that I don't have permissions to read:
|
So, uh, this issue has been opened since 2011. Is the owner of this repo no longer maintaining Watchdog? I've just run into this, too. Please comment, @gorakhargosh |
Whoa, this issue is quite old!
For now the best you can do is to schedule a non-recursive watcher. That's something quite scattered in the code, and it's both a watcher creation time handling issue and a emitter handling issue, since the forbidden access might happen at any time (with Perhaps |
This makes basically any use case where there are multiple users unusable. Another event that doesn't work... a user has a directory that is 700 to them, they copy the directory into a watched tree. It won't crash, it just gives an error. chmod 755 so now the watchdog process can read all the files in the tree. it doesn't. |
perhaps just make some sort of os-error an additional event? user can just decide what to do with it. |
Hi,
I use watchdog to monitor for new files in the filesystem and trigger automated processing of them. What happens is that the thread does not have access to certain files and crashes. Is there a way to provide to watchdog an error handler? Or that it continue monitoring for other files?
Below is an example of a traceback.
Hernan
The text was updated successfully, but these errors were encountered: