Your message dated Sat, 22 Oct 2022 13:06:21 +0000
with message-id <e1omecj-00fbhy...@fasolo.debian.org>
and subject line Bug#947425: fixed in incron 0.5.12-3
has caused the Debian Bug report #947425,
regarding Incron crash with an "*** unhandled exception occurred ***" 
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
947425: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947425
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: incron
Version: 0.5.10-3+b2

Severity: heavy

Problem:
-----------
Incron crash with an "*** unhandled exception occurred ***"  if directories are 
deleted while Incron is monitoring them.
Error is reproducible.

# rm -Rf 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test1/*


If command to erase of pathes and/or files is moved to an own script (no 'rm') 
and the handling is smoother (via "sleep") and after the erase immediately an 
"service intron reload" take place, then intron crashes after (her max.) 3 to 4 
pathes.
Sometimes I received only „service incrond stopped“ in syslog.


Solution:
-----------
I have not found a workaround.


Side effect:
--------------
After executing commands „rm …“ and then  „service incron reload“ in own script 
I see following messages in syslog:
Jun  4 22:43:34 systemd[1]: Starting file system events scheduler...
Jun  4 22:43:34 ncrond[3623]: loading system tables
Jun  4 22:43:34 systemd[1]: incron.service: PID file /run/incrond.pid not 
readable (yet?) after start: No such file or directory

and then
Jun  4 22:43:34 systemd[1]: Started file system events scheduler.
Jun  4 22:43:34 incrond[3623]: loading table Auser.conf
Jun  4 22:43:34 incrond[3623]: loading table Buser.conf
Jun  4 22:43:34 incrond[3623]: loading table example.conf
Jun  4 22:43:34 incrond[3623]: cannot create watch for system table 
example.conf: (2) No such file or directory
Jun  4 22:43:34 incrond[3623]: cannot create watch for system table 
example.conf: (2) No such file or directory
Jun  4 22:43:34 incrond[3623]: cannot create watch for system table 
example.conf: (2) No such file or directory
Jun  4 22:43:34 incrond[3623]: cannot create watch for system table 
example.conf: (2) No such file or directory
...
Jun  4 22:43:34 incrond[3623]: loading table nextA.conf
...


---------
Syslog:
---------
Jun 04 22:57:48 incrond[18195]: (system::example.conf) CMD 
(/opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/mycloud/data/mycloud-data 
/var/lib/univention-appcenter/apps/mycloud/data/mycloud-data/user
Jun 04 22:57:49 incrond[18195]: *** unhandled exception occurred ***
Jun 04 22:57:49 incrond[18195]:   void InotifyWatch::SetEnabled(bool): enabling 
watch failed
Jun 04 22:57:49 incrond[18195]:   error: (2) No such file or directory
Jun 04 22:57:49 incrond[18195]: stopping service
Jun 04 22:57:49  systemd[1]:incron.service: Main process exited, code=exited, 
status=1/FAILURE
Jun 04 22:57:49  systemd[1]:incron.service: Unit entered failed state.
Jun 04 22:57:49  systemd[1]:incron.service: Failed with result 'exit-code'.


-----------
Debian
---------
# uname -v
#1 SMP Debian 4.9.210-1 (2020-01-20)
-------------
Conf-files:
-------------
# ls -lah /etc/incron.d/example.conf 
-rw-r--r-- 1 root root 8,3K Jun  4 22:57 /etc/incron.d/example.conf


etc/incond.d/example.conf (there are various other conf files in this incron 
directory, which all monitor other directories. There are no directory 
duplicates)
----------------------
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test1/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test1/subfolder1/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test1/Subfolder2/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test1/subfolder3/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test2/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test2/Subfolder1/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test3/Subfolder2/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test4/Subfolder3/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test5/Subfolder4/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test6/subfolder5/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test7/subfolder6/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test8/Subfolder7/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test9/subfolder8/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test3/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%
/var/lib/univention-appcenter/apps/myloud/data/myloud-data/user/files/Folder\ 
Test3/subfolder1/ 
IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_ONLYDIR,IN_NO_LOOP
 /opt/scripts/incron_del_cron.sh 
/var/lib/univention-appcenter/apps/myloud/data/myloud-data $@ $# $%


Remarks:
-------
No difference whether the incron config files are saved individually in 
"../incron.d/..." or via crontab in "/ var / spool "incron/...".
Access as root on same machine as incron is installed.


-----------
Debian
---------
# uname -v
#1 SMP Debian 4.9.210-1 (2020-01-20)


-------------------
# dpkg --listincron
-------------------
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name                                   Version                  Architektur 
             Beschreibung
+++-======================================-========================-========================-=================================================================================
ii  incron                                 0.5.10-3+b2              amd64       
             cron-like daemon which handles filesystem events


----------------------
# dpkg --status incron
----------------------
Package: incron
Status: install ok installed
Priority: extra
Section: admin
Installed-Size: 264
Maintainer: Emmanuel Bouthenot <kol...@debian.org>
Architecture: amd64
Source: incron (0.5.10-3)
Version: 0.5.10-3+b2
Depends: libc6 (>= 2.14), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2), 
init-system-helpers (>= 1.18~), lsb-base (>= 3.2-14), adduser
Conffiles:
 /etc/incron.allow d41d8cd98f00b204e9800998ecf8427e
 /etc/incron.conf 986c3059ed88a5d5f2758e453acd5cb7
 /etc/incron.deny d41d8cd98f00b204e9800998ecf8427e
 /etc/init.d/incron 036332db6583b63a3d1f19265f107c55
Description: cron-like daemon which handles filesystem events
 incron is an "inotify cron" system. It works like the regular cron but is
 driven by filesystem events instead of time events. This package provides two
 programs, a daemon called "incrond" (analogous to crond) and a table
 manipulator "incrontab" (like "crontab").
 .
 incron uses the Linux Kernel inotify syscalls.
 .
 like cron, each user can edit its own incron tables.
 .
 incron can be used to :
  - notifying programs (e.g. server daemons) about changes in configuration
  - guarding changes in critical files (with their eventual recovery)
  - file usage monitoring, statistics
  - automatic on-crash cleanup
  - automatic on-change backup or versioning
  - new mail notification (for maildir)
  - server upload notification
  - installation management (outside packaging systems)
  - ... and many others
Homepage: http://inotify.aiken.cz/


Regards TS.
Th. Schütt, debian @ e-schuett.dde







--- End Message ---
--- Begin Message ---
Source: incron
Source-Version: 0.5.12-3
Done: Emmanuel Bouthenot <kol...@debian.org>

We believe that the bug you reported is fixed in the latest version of
incron, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 947...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Bouthenot <kol...@debian.org> (supplier of updated incron package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 18 Oct 2022 16:38:29 +0000
Source: incron
Architecture: source
Version: 0.5.12-3
Distribution: unstable
Urgency: medium
Maintainer: Emmanuel Bouthenot <kol...@debian.org>
Changed-By: Emmanuel Bouthenot <kol...@debian.org>
Closes: 947425 1021850
Changes:
 incron (0.5.12-3) unstable; urgency=medium
 .
   * Bump Standards-Version to 4.6.1.0
   * Switch debian/watch version to 4
   * Add a patch to fix FTBFS with gcc 11 (Closes: #1021850)
   * Add a patch to fix a segfault while using $@ in command to execute
     (Closes: #947425)
Checksums-Sha1:
 9a870492bd4a9ce61c348e0358946c4aa72ee96d 1831 incron_0.5.12-3.dsc
 8d53dfd41221099c59fbf7fceabb25ad6d12e296 102104 incron_0.5.12-3.debian.tar.xz
 099a8a099f90c1e319070b03eea0f4f6cdf327f8 6807 incron_0.5.12-3_source.buildinfo
Checksums-Sha256:
 b67ef6cf324b948a060ce9d12856acefa3b1b95b483c9ec7482ffda4f48c5d76 1831 
incron_0.5.12-3.dsc
 81664c71213fa603022c504b450a0bab9faf129513bd2575c9b0bbd190ffa0f8 102104 
incron_0.5.12-3.debian.tar.xz
 9b9e39b4fc0ec5fefbca79f74dc372d5b7f04191d1b492d731e9e58027643f67 6807 
incron_0.5.12-3_source.buildinfo
Files:
 c133e609e0b90a052c71b15a75d6b8f8 1831 admin optional incron_0.5.12-3.dsc
 a15e98e650271575afeff96262ec878f 102104 admin optional 
incron_0.5.12-3.debian.tar.xz
 dc161b5887345b99378246a27d844fde 6807 admin optional 
incron_0.5.12-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETQ1Tfow3vJnf8QuHSwd3I5KdQsMFAmNT4q4ACgkQSwd3I5Kd
QsMzGQ/+JXDYpQluoZv3aa2NOU1lO7cUbN/o7QbCaJKixdXARg+H+2NvJeK1n0qB
QLiLN4nLk5wpP7KkrRssJAc0eoMmWI0ScIT6QH7an21AHQSD+1Vm/yIY7ar9Mww2
kqqSBlo+TuGFS5BINboGYGh+ar7/kbEHYj83QsGm2Pjwb+zAHk/di7r3068znVu4
b/FOFT+5GluxlIC851PlzCnommrmAsnkFgS8i9HmR1S8SaJR4FmvrK1jIpX/AY7r
oo/tbt7/ZCRTTBhyTBHnxeE6XVRsieTp5nE3QUym/iPemsowLN36USKVrE1VeblN
OhGaqMr99p4Aq+/KAXylIqDBWd884geC+DJUW+gYwoh/tuK3LnqAWyNx/yoDMZhj
Am9z4otduZ6U7w5fLCprNEoi53Ms1aHuDHrTGL3dhCWfTKOX/EOaaELXdiMOy2yj
3W4kpzbL9AD4/ai7brV+RWTziXmmd4rY2pTv322BQS1aHQv2pTLud+3GKtedRANG
ErxXnZAAGcFWeDjwAvI6ItBvOCqevYhaORs3GEANMREe1fMS7BjFSPKucNsDc9y4
95oLnMTBRipaUisqJE7WkiyHAkxdpNbKt40moTYLc/XrbG38BsP3NVbrRWLUtmRg
rjzwNoXQDQ5IT554wbCrIsjcOqB9Ul5zd17jS1XvXhAZHj3CS6s=
=1xO1
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to