[clamav-users] clamav "Can't unlink file ERROR"

An Schall an.schall at gmail.com
Tue May 17 09:06:36 UTC 2022


Hi all,

we are trying to get clamscan / clamdscan functional on a RHEL with
GPFS as a filesystem. We are using clamAV 0.104.2. On a different test
machine everything works like a charm. However, on this specific RHEL
machine, we get the following errors:

# clamdscan -v --config-file=/etc/clamav/clamd.conf --multiscan --fdpass ./
/global/mmds/test/platform/antivirus/antivirus/yes-virus/dissemination-benchmark-file-set-plus-virus.zip:
Can't unlink file ERROR
/global/mmds/test/platform/antivirus/antivirus/yes-virus/dissemination-benchmark-file-set-plus-virus.war:
Can't unlink file ERROR
/global/mmds/test/platform/antivirus/antivirus/yes-virus/dissemination-benchmark-file-set-plus-virus.tar.gz:
Can't unlink file ERROR
/global/mmds/test/platform/antivirus/antivirus/yes-virus/dissemination-benchmark-file-set-plus-virus.tar.bz2:
Can't unlink file ERROR
/global/mmds/test/platform/antivirus/yes-virus/dissemination-benchmark-file-set-plus-virus.zip:
Can't unlink file ERROR
/global/mmds/test/platform/antivirus/yes-virus/dissemination-benchmark-file-set-plus-virus.war:
Can't unlink file ERROR
/global/mmds/test/platform/antivirus/yes-virus/dissemination-benchmark-file-set-plus-virus.tar.gz:
Can't unlink file ERROR
/global/mmds/test/platform/antivirus/yes-virus/dissemination-benchmark-file-set-plus-virus.tar.bz2:
Can't unlink file ERROR

----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 8
Time: 574.555 sec (9 m 34 s)
Start Date: 2022:05:17 07:03:46
End Date:   2022:05:17 07:13:20

libclamav reports something about ""cli_unlink" failure no such file
or directory".

Here is the clamd.conf:

# grep -v '^#' /etc/clamav/clamd.conf  | grep -v '^$'
AlertExceedsMax no
LogFile /var/log/clamav.log
LogTime yes
LogClean yes
LogSyslog yes
LogVerbose yes
LocalSocket /var/run/clamd.scan/clamd.sock
LocalSocketMode 660
MaxDirectoryRecursion 15
User root
MaxScanTime 0
MaxScanSize 4000M
MaxFileSize 4000M
MaxFiles 1000000

What is the underlying reason of this error message?

Thanks,
An


More information about the clamav-users mailing list