ClamAV Duplicate Databases

7 posts / 0 new
Last post
#1 Thu, 09/22/2011 - 01:49
PaliGap

ClamAV Duplicate Databases

In logwatch I am seeing this:

"[LibClamAV] Detected duplicate databases /var/lib/clamav/main.cvd and /var/lib/clamav/main.cld, please manually remove one of them"

Is there a recommended solution for this? i.e. Which is best to remove? Is it as simple as deleting the files? Or do I need to edit a .conf somewhere?

Thanks.

Sat, 09/24/2011 - 04:05
lp86

go to the /var/lib/clamav/ directory and delete the oldest file. Do not delete both files. I had this happen to me and my main.cld file was older, but double check yours.

Sun, 09/25/2011 - 12:40
PaliGap

Thanks lp86.

I deleted the older file (main.cld).

I'd like to restart ClamAV from the command line to see if there are any complaints. I'm used to this on a Plesk server; /sbin/service clamd restart

Do you know how to do that on a VM server?

Sun, 09/25/2011 - 12:46
andreychek

Howdy,

You can see which init scripts are available by looking in /etc/init.d... so you can run this command to see which are relasted to clam:

ls /etc/init.d | grep clam

I forget the exact name, but that should show which clam scripts are available :-)

-Eric

Sun, 09/25/2011 - 12:47
lp86

The version of clamav included with virtualmin is custom compiled, so the name of the service is a little different.

"/sbin/service clamd-virtualmin restart"

after you have restarted, run "/usr/bin/freshclam", it should no longer complain about duplicate databases.

Sun, 09/25/2011 - 12:49
lp86

duplicate post :/

Sun, 09/25/2011 - 12:53
PaliGap

Thanks again lp86. That worked like a charm!

Topic locked