gorakhargosh / watchdog

Python library and shell utilities to monitor filesystem events.

Home Page:http://packages.python.org/watchdog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

watchdog Monitor failure

litaojun opened this issue · comments

I encountered a problem when using watchdog 2.1.7 . The problem is described as follows
I deployed the watchdog application on server 1 and listened to a shared directory that was deployed on another server 2. After the watchdog application was enabled, I could normally listen to the newly added folder in the shared directory.
When server 1 is disconnected from the network for a period of time, maybe about half an hour, server 1 cannot access the shared directory. After the network is restored, server 1 can access the shared directory. However, I find that server 1 cannot listen to the newly added folder in the shared directory. Therefore, the listening fails.
Does watch not support this scenario?
Or I misconfigured it

I see this same problem listening a shared directory on a windows-server with watchdog 3.0.0 / python 3.8. I wonder also, if I misconfigured anything or if I have to check for network connection and if it fails to restart any observer?

edit: I found this also true for watchdog 4.0.0.
So my next approach is to check for network connection and if it fails to recreate any observer ...