PaliGap
September 22, 2011, 6:49am
1
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.
lp86
September 24, 2011, 9:05am
2
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.
PaliGap
September 25, 2011, 5:40pm
3
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?
Eric
September 25, 2011, 5:46pm
4
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
lp86
September 25, 2011, 5:47pm
5
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.
PaliGap
September 25, 2011, 5:53pm
7
Thanks again lp86. That worked like a charm!