NixTree

Well-Known Member
Aug 19, 2010
413
5
143
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 ?

#########
[[email protected] ~]# /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

[[email protected] ~]# clamdscan /etc/hosts

ERROR: Could not lookup : Servname not supported for ai_socktype
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
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.