ClamAV duplicate database Warning

Peter Smith

Member
Jul 1, 2018
5
0
1
United Kingdom
cPanel Access Level
Root Administrator
Hi,

I have just got the following warning using clamav?
Code:
LibClamAV Warning: Detected duplicate databases /usr/local/cpanel/3rdparty/share/clamav/bytecode.cld and /usr/local/cpanel/3rdparty/share/clamav/bytecode.cvd. The /usr/local/cpanel/3rdparty/share/clamav/bytecode.cld database is older and will not be loaded, you should manually remove it from the database directory.
Running clamav 0.100.0-1.cp1170 on Centos 7 cpanel 74.0.6.

Do I just do rm /usr/local/cpanel/3rdparty/share/clamav/bytecode.cld?

Thanks
Peter
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

Instead of removing it, just move it to some other location for time being. You can use the below command to do so.
# mv /usr/local/cpanel/3rdparty/share/clamav/bytecode.cld /root/
 
  • Like
Reactions: Peter Smith

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
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
If no errors persist upon running those commands, you can then remove the /root/clamav-backup directory.

Thank you.
 

tomswarts

Registered
Feb 7, 2019
1
0
1
California
cPanel Access Level
Root Administrator
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
If no errors persist upon running those commands, you can then remove the /root/clamav-backup directory.

Thank you.
I ran into this same issue. I removed the duplicate database file and then ran into the following error:

[email protected] [/usr/local/cpanel/3rdparty/share/clamav]# /usr/local/cpanel/3rdparty/bin/freshclam
ClamAV update process started at Thu Feb 7 12:45:03 2019
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.100.2 Recommended version: 0.101.1
DON'T PANIC! Read ClamavNet
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
daily.cvd is up to date (version: 25353, sigs: 2241188, f-level: 63, builder: raynman)
bytecode.cvd is up to date (version: 328, sigs: 94, f-level: 63, builder: neo)
[email protected] [/usr/local/cpanel/3rdparty/share/clamav]# /scripts/restartsrv_clamd
Service “clamd” is already stopped.

Waiting for “clamd” to start ……warn [restartsrv_clamd] The 'clamd' service's PID file '/var/run/clamd.pid' did not appear after 10 seconds.

…failed.

Cpanel::Exception::Services::StartError
Service Status

Service Error
(XID dcgcwe) The “clamd” service failed to start.

clamd has failed. Contact your system administrator if the service does not automagically recover.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hi @tomswarts,

Can you open a support ticket so we can take a closer look at the affected system? You can post the ticket number here and we'll update this thread with the outcome.

Thank you.