Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CLAMD duplicate database?

Discussion in 'Database Discussions' started by abdelhost77, Jan 19, 2018.

Tags:
  1. abdelhost77

    abdelhost77 Well-Known Member

    Joined:
    Apr 25, 2012
    Messages:
    98
    Likes Received:
    2
    Trophy Points:
    58
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,494
    Likes Received:
    1,612
    Trophy Points:
    363
    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
    Thank you.
     
  3. abdelhost77

    abdelhost77 Well-Known Member

    Joined:
    Apr 25, 2012
    Messages:
    98
    Likes Received:
    2
    Trophy Points:
    58
    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.
     
    cPanelMichael likes this.
Loading...

Share This Page