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!

clamscan error

Discussion in 'Security' started by NixTree, Jun 16, 2018.

  1. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    407
    Likes Received:
    3
    Trophy Points:
    143
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi

    IS there any fix for this issue ? I need to get clamdscan running and have to load some custom db as well.

    Hi

    Do you have more details of what it took to fix this issue ?

    #########
    [root@latest ~]# /scripts/restartsrv_clamd;

    warn [restartsrv_clamd] [28093] TIME 1529196477 UID 0 clobbered stale lock file “/var/run/restartsrv_clamd.lock” (NAME “/usr/local/cpanel/scripts/restartsrv_clamd”, UID 0) written by PID 28034 at 1529196374

    Service “clamd” is already stopped.

    info [restartsrv_clamd] systemd failed to start the service “clamd” (The “/usr/bin/systemctl” command (process 28098) reported error number 1 when it ended.): Job for clamd.service failed because a timeout was exceeded. See "systemctl status clamd.service" and "journalctl -xe" for details.


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

    Cpanel::Exception::Services::StartError
    Service Status
    Service Error
    (XID m4umwc) The “clamd” service failed to start.
    Startup Log

    Jun 17 00:47:58 latest. systemd[1]: Starting clamd antivirus daemon...
    Jun 17 00:49:28 latest. systemd[1]: clamd.service start operation timed out. Terminating.
    Jun 17 00:49:28 latest.systemd[1]: Failed to start clamd antivirus daemon.
    Jun 17 00:49:28 latest.systemd[1]: Unit clamd.service entered failed state.
    Jun 17 00:49:28 latest. systemd[1]: clamd.service failed.

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

    Do you have more idea on this error

    [root@latest ~]# clamdscan /etc/hosts

    ERROR: Could not lookup : Servname not supported for ai_socktype
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,835
    Likes Received:
    134
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    HI @NixTree

    That really depends on what's causing the issue. Can you show the output of the following:

    Code:
    systemctl status clamd.service
    journactl -xe
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    407
    Likes Received:
    3
    Trophy Points:
    143
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Twitter:
    This is fixed as it was an issue with clamdscan not starting and have to fix the clamd socket file and folder permissions. I have had changed the location to a custom one.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,835
    Likes Received:
    134
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @NixTree


    Thanks for updating us and letting us know how you resolved the issue.
     
    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