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.

The service “clamd” appears to be down.

Discussion in 'General Discussion' started by rjsnyder, Feb 27, 2018.

Tags:
  1. rjsnyder

    rjsnyder Registered

    Joined:
    Feb 26, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    I'm getting emails about this non stop.


    Service Name clamd
    Service Status failed
    Notification The service “clamd” appears to be down.
    Service Check Method The system’s command to check or to restart this service failed.
    Number of Restart Attempts 167
    Service Check Raw Output (XID a25nrv) The “clamd” service is down.

    The subprocess “/usr/local/cpanel/scripts/restartsrv_clamd” reported error number 255 when it ended.
    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.


    I've tried restarted the entire server gracefully.

    I've tried restarted the ClamAV service.

    This is my first experience with WHM and i have minor experience with cPanel. Any help would be appreciated. Thanks!
     
    #1 rjsnyder, Feb 27, 2018
    Last edited by a moderator: Feb 27, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    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/bytecode.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. rjsnyder

    rjsnyder Registered

    Joined:
    Feb 26, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    I moved the backup and did both of those commands. Here's what I got.


    /usr/local/cpanel/3rdparty/bin/freshclam

    ClamAV update process started at Fri Mar 2 08:33:35 2018

    WARNING: Your ClamAV installation is OUTDATED!

    WARNING: Local version: 0.99.2 Recommended version: 0.99.4

    DON'T PANIC! Read ClamavNet

    main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)

    daily.cld is up to date (version: 24356, sigs: 1864910, f-level: 63, builder: neo)

    bytecode.cvd is up to date (version: 319, sigs: 75, f-level: 63, builder: neo)

    [root@XXX clamav-backup]# /scripts/restartsrv_clamd

    Waiting for “clamd” to start ………failed.

    Cpanel::Exception::Services::StartError

    Service Status


    Service Error

    (XID z8yw3s) The “clamd” service failed to start.


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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know of any output related to ClamAV in /var/log/exim_mainlog or /var/log/chkservd.log when a restart is attempted?

    Thank you.
     
  5. rjsnyder

    rjsnyder Registered

    Joined:
    Feb 26, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    /var/log/chkservd.log
    _________

    The subprocess “/usr/local/cpanel/scripts/restartsrv_clamd” reported error number 255 when it ended.][socket connect:N/A][fail count:943]Restarting clamd....

    [notify:failed service:clamd]]...

    apache_php_fpm [[check command:+][socket connect:N/A]]...Done

    Service Check Finished

    Service Check Started

    Loading



    [Removed due to the inclusion of real domain names]


    Your help is appreciated. Thank you[/I]
     
    #5 rjsnyder, Mar 2, 2018
    Last edited by a moderator: Mar 2, 2018
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look?

    Thank you.
     
Loading...

Share This Page