ar- / incron

cron-like daemon which handles filesystem events
Other
229 stars 51 forks source link

Recursive watch fails #30

Open applewiskey opened 8 years ago

applewiskey commented 8 years ago

About every time I try to use recursive check:

Events: IN_CLOSE_WRITE,IN_CREATE,IN_DELETE
2015-12-03T19:33:42.939886+00:00 ed-v-pst incrond[46357]: system table hierayaml20151203-48648-1o3n0go created, loading
2015-12-03T19:33:42.940234+00:00 ed-v-pst incrond[47013]: system table hierayaml changed, reloading
2015-12-03T19:33:42.940568+00:00 ed-v-pst incrond[46289]: PATH (/etc/puppet/hiera.yaml) FILE () EVENT (IN_IGNORED)
2015-12-03T19:33:42.940794+00:00 ed-v-pst incrond[46289]: (system::hierayaml) CMD (touch /etc/puppet/rack/tmp/restart.txt)
2015-12-03T19:33:43.030122+00:00 ed-v-pst incrond[46534]: PATH (/etc/puppet/modules/acl/acceptance/scripts) FILE () EVENT (IN_IGNORED)
2015-12-03T19:33:43.030601+00:00 ed-v-pst incrond[46199]: PATH (/etc/puppet/modules/acl/acceptance/tests) FILE () EVENT (IN_IGNORED)
2015-12-03T19:33:43.068804+00:00 ed-v-pst incrond[47013]: PATH (/etc/puppet/modules) FILE () EVENT (IN_IGNORED)
2015-12-03T19:33:43.083613+00:00 ed-v-pst incrond[46534]: (system::hieradata) CMD (touch /etc/puppet/rack/tmp/restart.txt)
2015-12-03T19:33:43.083861+00:00 ed-v-pst incrond[46199]: (system::hieradata) CMD (touch /etc/puppet/rack/tmp/restart.txt)
2015-12-03T19:33:43.084105+00:00 ed-v-pst incrond[47013]: (system::hieradata) CMD (touch /etc/puppet/rack/tmp/restart.txt)
2015-12-03T19:33:43.084367+00:00 ed-v-pst incrond[46507]: PATH (/etc/puppet/modules/acl/acceptance) FILE () EVENT (IN_IGNORED)
2015-12-03T19:33:43.084676+00:00 ed-v-pst incrond[46507]: (system::hieradata) CMD (touch /etc/puppet/rack/tmp/restart.txt)
2015-12-03T19:33:43.084896+00:00 ed-v-pst incrond[46507]: PATH (/etc/puppet/modules/acl/acceptance/tests/access_rights_directory/mask_specific) FILE () EVENT (IN_IGNORED)
2015-12-03T19:33:43.085121+00:00 ed-v-pst incrond[46507]: (system::hieradata) CMD (touch /etc/puppet/rack/tmp/restart.txt)
2015-12-03T19:33:43.085335+00:00 ed-v-pst incrond[46507]: PATH (/etc/puppet/modules/acl/acceptance/tests/access_rights_file) FILE () EVENT (IN_IGNORED)
2015-12-03T19:33:43.085552+00:00 ed-v-pst incrond[46507]: (system::hieradata) CMD (touch /etc/puppet/rack/tmp/restart.txt)
2015-12-03T19:33:43.085772+00:00 ed-v-pst incrond[46507]: PATH (/etc/puppet/modules/acl/acceptance/tests/access_rights_file/mask_specific) FILE () EVENT (IN_IGNORED)
2015-12-03T19:33:43.086018+00:00 ed-v-pst incrond[46421]: PATH (/etc/puppet/modules/acl/acceptance/tests/inheritance) FILE () EVENT (IN_IGNORED)
2015-12-03T19:33:43.094616+00:00 ed-v-pst incrond[46454]: *** unhandled exception occurred ***
2015-12-03T19:33:43.094852+00:00 ed-v-pst incrond[46454]:   void Inotify::Remove(InotifyWatch*): removing watch failed
2015-12-03T19:33:43.095102+00:00 ed-v-pst incrond[46403]: *** unhandled exception occurred ***
2015-12-03T19:33:43.095345+00:00 ed-v-pst incrond[46403]:   void Inotify::Remove(InotifyWatch*): removing watch failed
2015-12-03T19:33:43.095572+00:00 ed-v-pst incrond[46539]: PATH (/etc/puppet/modules/postfix/tests) FILE () EVENT (IN_IGNORED)
2015-12-03T19:33:43.095872+00:00 ed-v-pst incrond[46403]:   error: (22) Invalid argument

Then resources ends and we have

2015-12-03T19:38:07.364494+00:00 ed-v-pst incrond[44293]: cannot fork process: Cannot allocate memory
2015-12-03T19:38:07.364571+00:00 ed-v-pst incrond[44293]: PATH (/etc/puppet/modules/postgresql/lib) FILE () EVENT (IN_IGNORED)
2015-12-03T19:38:07.364638+00:00 ed-v-pst incrond[44293]: (system::hieradata) CMD (touch /etc/puppet/rack/tmp/restart.txt)
2015-12-03T19:38:07.364705+00:00 ed-v-pst incrond[29948]: *** unhandled exception occurred ***
2015-12-03T19:38:07.364787+00:00 ed-v-pst incrond[29948]:   void Inotify::Remove(InotifyWatch*): removing watch failed
2015-12-03T19:38:07.364859+00:00 ed-v-pst incrond[29948]:   error: (22) Invalid argument
2015-12-03T19:38:07.365343+00:00 ed-v-pst incrond[29948]: stopping service
2015-12-03T19:38:07.365415+00:00 ed-v-pst incrond[46971]: cannot fork process: Cannot allocate memory
# killall -9 incrond
-bash: fork: Cannot allocate memory

Update: have issues with one file watch only as well

/etc/puppet/.git/refs/heads/master IN_MODIFY touch /etc/puppet/rack/tmp/restart.txt
2015-12-03T20:25:10.814489+00:00 ed-v-pst incrond[57428]: PATH (/etc/puppet/.git/refs/heads/master) FILE () EVENT (IN_IGNORED)
2015-12-03T20:25:10.814956+00:00 ed-v-pst incrond[57428]: (system::master) CMD (touch /etc/puppet/rack/tmp/restart.txt)

and after this it fork one more process and does not do anything more (next events ignored)

OS: CentOS7