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.

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.

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?

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 :slight_smile:

-Eric

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.

duplicate post :confused:

Thanks again lp86. That worked like a charm!