You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clamonacc from packaged rpm 103.2 up to 104/dev under load (i.e. when beeing deployed by ansible) during start fails to OnAccessIncludePath existing directory claiming it does not exist. this failure is not detected as the process doesn't terminate. this bug is possibly causing clamav on-access to not perform under any Linux for < 5.1 kernel.
ClamInotif: could not watch path - no such file or directory
molecule verify will only work ~ 2 out of 11 times when /usr is watched
said test succeeds under fedora33+4, fails centos7+8 (most likely because kernel <5.1 using inotify)
if /usr is not watched we pass eicar test reliably (much less fileio)
setenforce 0 # no effect
ulimit -n # 100000
happens with --stream and --fdpass
max_user_watches = 500k
symptomes
Jun 29 20:08:24 centos7 clamonacc: ERROR: ClamInotif: could not watch path '/home', No such file or directory
Jun 29 23:18:55 centos8 clamonacc[14434]: ERROR: ClamInotif: could not watch path '/home', No such file or directory
Jun 30 10:40:47 centos8 clamonacc[23644]: ERROR: ClamInotif: could not watch path '/tmp', No such file or directory
this issue does persist after fixing #184 but no reproduction steps have been found. it happens rarely on local infra and is more frequent on shared (cloud) systems. it's more frequent on small 1-cpu systems and can me mitigated by not including /var. on larger systems with plenty of cpu it seems to become less common. also on a idle system it happens rarely but after hammering it happens again more frequent. a major mitigation step is adding ExecStartPre=/bin/sleep 32 or higher to clamonacc.service ... any hints pointing to reproduction on preventing clamonacc to initialize all includes appreciated!
@frank-fegert, I tried your suggestion, but unfortunately I still experience the same issue with v0.105.0. After every boot, it drops my /tmp folder with ERROR: ClamInotif: could not watch path '/tmp', No such file or directory
issue
clamonacc
from packaged rpm 103.2 up to 104/dev under load (i.e. when beeing deployed by ansible) during start fails toOnAccessIncludePath
existing directory claiming it does not exist. this failure is not detected as the process doesn't terminate. this bug is possibly causing clamav on-access to not perform under any Linux for < 5.1 kernel.next steps / brainstorming / todo
clamonacc fatal error
clamonacc fatal error #184proposed fixes to clamonacc
clamonacc
uponERROR: ClamInotif: could not watch path '/home', No such file or directory
observations
systemctl restart clamav-clamonacc.service
will succeed 100% watch /home (cannot reproduce)molecule verify
will only work ~ 2 out of 11 times when /usr is watched/usr
is not watched we pass eicar test reliably (much less fileio)symptomes
/etc/clamd.d/clamd.conf
/etc/systemd/system/clamav-clamonacc.service
Please let me know if there is anything to be tested.
The text was updated successfully, but these errors were encountered: