CentOS 5, Clam installed from RPMForge repo.

Was running 0.95.1 when this happened yesterday, upgrading to 0.95.2 
didn't change anything.

[r...@snafu kdeugau]# /etc/init.d/clamd restart
Stopping Clam AntiVirus Daemon:                            [FAILED]
Starting Clam AntiVirus Daemon: LibClamAV Error: cli_loaddbdir(): Can't 
open directory /var/clamav/
ERROR: Can't open file or directory
Closing the main socket.
                                                            [FAILED]

Package is in 3 parts:  clamd, clamav, clamav-db

Database directory is /var/clamav by default.

Clam running as clamav:clamav

Clam called from MIMEDefang - since this is a private server with 2 
fully live accounts on it, I've just set things to accept the mail 
anyway with a complaint in the log for now.

Permissions are not obviously broken:

[r...@snafu kdeugau]# ls -l / |grep var
drwxr-xr-x  27 root root  4096 Jun  2 22:47 var
[r...@snafu kdeugau]# ls -l /var |grep clam
drwxr-xr-x  2 clamav clamav  4096 Jun 17 19:09 clamav
[r...@snafu kdeugau]# ls -l /var/clamav/
total 21608
-rw-r--r-- 1 clamav clamav   820584 Jun 24 21:13 daily.cvd
-rw-r--r-- 1 clamav clamav 21253696 Jun 24 21:13 main.cvd
-rw-r--r-- 1 clamav clamav      156 Jun 25 04:02 mirrors.dat

I have a sinking feeling this is related to SELinux... but nothing has 
changed on this machine between "working" and "not working".

clamscan seems to be able to read the database files just fine.

Any suggestions on what to poke to get more detail on what's actually 
broken?

-kgd
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to