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!

Clamav Malformed database

Discussion in 'E-mail Discussion' started by dubweb, May 16, 2017.

  1. dubweb

    dubweb Registered

    Joined:
    May 16, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Hi,

    /etc/redhat-release:CloudLinux Server release 6.9 (Igor Volk)
    /usr/local/cpanel/version:11.64.0.20
    /var/cpanel/envtype:standard
    CPANEL=release

    I had to cleanup the temp file this morning to make space and following that started to received error about clamsv service not starting:


    Then got to the log and uninstalled and reinstalled clamav Version: 0.99.2-1.cp1164.
    But now getting this error at startup:

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

    Startup Log
    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.
    LibClamAV Warning: cli_loadyara: empty database file
    LibClamAV Error: cli_loadhash: Problem parsing database at line 15688
    LibClamAV Error: Can't load /usr/local/cpanel/3rdparty/share/clamav/rfxn.hdb: Malformed database
    LibClamAV Error: cli_loaddbdir(): error loading database /usr/local/cpanel/3rdparty/share/clamav/rfxn.hdb
    ERROR: Malformed database

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

    dubweb Registered

    Joined:
    May 16, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Once I edited the rfxn.hdb and removed the last line (that was malformed) and started a fresh update using:
    /usr/local/cpanel/3rdparty/bin/freshclam

    Got a new error remaining:
    LibClamAV Warning: cli_loadyara: empty database file
     
  3. cPanelJasonT

    cPanelJasonT Level 2 Technical Analyst
    Staff Member

    Joined:
    Oct 21, 2014
    Messages:
    54
    Likes Received:
    6
    Trophy Points:
    83
    cPanel Access Level:
    Root Administrator
    Hello,
    I would recommend reinstalling the cPanel clamav rpm when this last error occurs. One way to do this is to run these commands:
    Code:
    rpm -e --nodeps --justdb cpanel-clamav-0.99.2-1.cp1164.x86_64 cpanel-perl-524-File-Scan-ClamAV-1.95-1.cp1162.x86_64 cpanel-clamav-virusdefs-0.99.2-1.cp1164.x86_64 ; /scripts/check_cpanel_rpms --fix
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice