For reasons I've never understood, doing it with sudo has never worked for me, perhaps because I'm running Ubuntu and already sudo'ing bash to get to the root prompt? Anyway, since it doesn't always fail (but only occasionally) I doubt that the su-vs-sudo could be the issue, and if it were, I'm not sure how I'd verify it since it doesn't fail consistently.
Originally Posted by phoenix
I traded pms with Mike earlier this morning, and he noticed in my clamd.log:
Interestingly, the filename that throws the error doesn't even exist, which leads me to suspect a syntax error, though again why it works some times but not others, I don't know:
Tue Jul 21 22:01:37 2009 -> --- Stopped at Tue Jul 21 22:01:37 2009
Tue Jul 21 22:04:34 2009 -> +++ Started at Tue Jul 21 22:04:34 2009
Tue Jul 21 22:04:34 2009 -> clamd daemon 0.95.1-broken-compiler (OS: linux-gnu, ARCH: i386, CPU: i686)
Tue Jul 21 22:04:34 2009 -> Log file size limited to 20971520 bytes.
Tue Jul 21 22:04:34 2009 -> Reading databases from /opt/zimbra/data/clamav/db
Tue Jul 21 22:04:34 2009 -> Not loading PUA signatures.
LibClamAV Error: cli_load(): Can't open file /opt/zimbra/data/clamav/db/main.cvd
Tue Jul 21 22:05:02 2009 -> ERROR: Can't open file or directory
What the issue is between main.cvd and main.cld as a filename, I don't know either, but methinks that can't be right. . .
root@mail:/opt/zimbra/data/clamav/db# ls -l
-rw-r----- 1 zimbra zimbra 348160 2008-10-26 22:05 clamav-993a64a7d6f0432d89f853e25
-rw-r----- 1 zimbra zimbra 3517440 2009-07-22 09:00 daily.cld
-rw-r----- 1 zimbra zimbra 47079936 2009-07-21 22:04 main.cld
-rw------- 1 zimbra zimbra 780 2009-07-22 09:00 mirrors.dat