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 crashes a lot

Discussion in 'General Discussion' started by Jinesh Thacker, Apr 8, 2015.

  1. Jinesh Thacker

    Jinesh Thacker Registered

    Joined:
    Apr 7, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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: 15
    Service Check Raw Output:
    clamd is not running or is crashed.
    Startup Log:
    No startup log

    Memory Information:
    • Used: 661 MB
    • Available: 328 MB
    • Installed: 990 MB
    Load Information: 1.82 1.45 1.33
    Uptime: 10 days, 17 hours, 15 minutes, and 12 seconds
    IOStat Information:
    avg-cpu: %user %nice %system %iowait %steal %idle
    9.06 0.08 2.59 10.02 0.00 78.24
    Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
    xvda 117.33 2709.69 698.46 2509474342 646850936
    ChkServd Version: 15.9

    I get this email about 3-4 times a day. How can I fix this?

    Thanks!
     
  2. madmanmachines

    madmanmachines Well-Known Member

    Joined:
    Nov 28, 2014
    Messages:
    94
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi,

    I this a VPS? Have you ensured your server is not exhausting it's RAM? You can check `/var/log/messages' for "OOM" errors; however, depending on the virtualization used, this may differ. You may want to check with your host as well to see if this is the case.

    Thanks,
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    650
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you notice any error messages when attempting to restart it manually when this happens? EX:

    Code:
    /usr/local/cpanel/scripts/restartsrv_clamd
    Also, do you see any noticeable entries in /var/log/exim_mainlog or /var/log/exim_paniclog at the time of the failures?

    Thank you.
     
  4. craigedmonds

    craigedmonds Well-Known Member

    Joined:
    Oct 29, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Europe
    cPanel Access Level:
    Root Administrator
    Twitter:
    I get this error when I run /usr/local/cpanel/scripts/restartsrv_clamd


    Service Error
    The system could not find the “/usr/local/cpanel/3rdparty/bin/clamd” binary.
    clamd has failed. Contact your system administrator if the service does not automagically recover.
     
  5. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    As per the logs, I can see clamd binary is not present in /usr/local/cpanel/3rdparty/bin directory and due to that you are getting this issues, Can you please try to reinstall clamav on your server through WHM OR use following command to install clamav

    Code:
    /scripts/update_local_rpm_versions --edit target_settings.clamav installed
    /scripts/check_cpanel_rpms --fix --targets=clamav 
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    650
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can also try uninstalling and reinstalling ClamAV via:

    "WHM Home » cPanel » Manage Plugins"

    Thank you.
     
Loading...

Share This Page