CLAMD duplicate database?

abdelhost77

Well-Known Member
Apr 25, 2012
116
2
68
Morocco
cPanel Access Level
Root Administrator
In logwatch I am seeing this:

Starting clamd: LibClamAV Warning: Detected duplicate databases /usr/local/cpanel/3rdparty/share/clamav/main.cvd and /usr/local/cpanel/3rdparty/share/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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello,

You could move the duplicate database to another location with commands like this:

Code:
mkdir /root/clamav-backup
mv  /usr/local/cpanel/3rdparty/share/clamav/main.cld  /root/clamav-backup/
Then, check for any error messages when running the following commands:

Code:
/usr/local/cpanel/3rdparty/bin/freshclam
/scripts/restartsrv_clamd
Thank you.
 

abdelhost77

Well-Known Member
Apr 25, 2012
116
2
68
Morocco
cPanel Access Level
Root Administrator
Thanks it seems working fine :



root# /usr/local/cpanel/3rdparty/bin/freshclam
ClamAV update process started at Fri Jan 19 21:37:17 2018
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Downloading daily-24235.cdiff [100%]
Downloading daily-24236.cdiff [100%]
daily.cld updated (version: 24236, sigs: 1829779, f-level: 63, builder: neo)
bytecode.cvd is up to date (version: 319, sigs: 75, f-level: 63, builder: neo)
Database updated (6396103 signatures) from database.clamav.net (IP: 145.58.29.83)

root# /scripts/restartsrv_clamd
Waiting for “clamd” to restart ………waiting for “clamd” to initialize ………finished.

Service Status
clamd (/usr/local/cpanel/3rdparty/bin/clamd) is running as root with PID 22643 (pidfile+/proc check method).

clamd restarted successfully.
 
  • Like
Reactions: cPanelMichael