Hello,
we have a Moodle 2.6 installed on a RHEL 6.6 with clamAV (V. 0.98.3-1.el6) installed. Everything is working fine. Now we would like to "migrate" to Moodle 2.8 on a centos 7 server but we have some problem with the clamAV configuration (V. 0.98.7-1) on our new VM.
I've installed clamAV with globally the same configuration used in our previous installation (RHEL 6.6).. When I try to upload a file on Moodle, I receive this message :
########################################################
Failed to parse reply: "No file descriptor received. ERROR"
----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.000 sec (0 m 0 s)
########################################################
If I try to perform a scan locally on a 777 file and I have following error :
clamdscan /var/tmp/testpdf.pdf
########################################################
/var/tmp/testpdf.pdf: lstat() failed: No such file or directory. ERROR
----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.000 sec (0 m 0 s)
[root@xxxxxx tmp]#
########################################################
We don't have any error when starting the deamon.
########################################################
# systemctl start clamd@scan
# systemctl status clamd@scan
clamd@scan.service - Generic clamav scanner daemon
Loaded: loaded (/usr/lib/systemd/system/clamd@scan.service; enabled)
Active: active (running) since mer 2015-07-01 11:37:27 CEST; 1s ago
Main PID: 10203 (clamd)
CGroup: /system.slice/system-clamd.slice/clamd@scan.service
└─10203 /usr/sbin/clamd -c /etc/clamd.d/scan.conf --nofork=yes
jui 01 11:37:27 xxx.xxx.xx systemd[1]: Started Generic clamav scanner daemon.
########################################################
Of course, selinux is set to "permissive" and we have disabled the firewall in order to perform our tests.
If I set clamscan in stateof clamdscan on Moodle settings, it's working.. but takes a lot of time when scanning files.. (using the deamon, is a way faster)
If someone can help or has an idea, it would be really appreciated !
Regards,
Diego